Agent

User Guide

NLU

Core

Conversation Design

API Reference

Migrate from (beta)

Reference


Versions

viewing: 1.10.16


Agent

classrasa.core.agent. Agent( domain=None, policies=None, interpreter=None, generator=None, tracker_store=None, lock_store=None, action_endpoint=None, fingerprint=None, model_directory=None, model_server=None, remote_storage=None, path_to_model_archive=None)

The Agent class provides a convenient interface for the most important Rasa functionality.

This includes training, handling messages, loading a dialogue model, getting the next action, and handling a channel.

create_processor( preprocessor=None)

Instantiates a processor based on the set state of the agent.

Return type

MessageProcessor

_async_ execute_action( sender_id, action, output_channel, policy, confidence)

Handle a single message.

Return type

DialogueStateTracker

handle_channels( channels, http_port=5005, route='/webhooks/', cors=None)

Start a webserver attaching the input channels and handling msgs.

Return type

Sanic

persist( model_path)

Persists this agent into a directory for later loading and usage.

Return type

None


👋 I can help you get started with Rasa and answer your technical questions.