📚 API ReferenceLoops
<ChatLoop>
Autonomously execute chat interactions.
Import
Usage
Add the component to your agent to initiate a chat loop that responds to "say" and "nudge" events:
The agent will evaluate and respond when it receives "say" events or targeted "nudge" events.
Props
hint?: string
- Optional hint to guide the agent's responsesactOpts?: object
- Optional configuration for action behaviorevaluator?: Evaluator
- Optional custom evaluator (mutually exclusive with hint/actOpts)
Note: You cannot provide both an evaluator
and hint
/actOpts
at the same time - this will throw an error.