Skip to content

User Agent

The User Agent acts as an intemediary between the real user and the rest of the agent flow. It is responsible for sending user messages into the system and, optionally, simulating replies when human input is not available.

User Agent - preview

General Settings

In the User tab:

  • Name: Set a label to identify this agent (e.g., "User", "Researcher").
  • Max Consecutive Auto Reply: Define how many automatic replies the agent can send before waiting for human input.
  • Default Auto Reply: Provide a fallback message that will be used if no input is received (e.g., "Okay", "Continue").

This configuration helps control how the agent behaves in cases where no user is actively participating.

User Agent - Basic setup preview

Code Execution Settings

In the Code Execution tab:

  • Enable Code Execution: Allows the Agent to execute Python snippets (for testing flows or simulating dynamic behavior).
  • Working Directory: Specify where any temporary code files should be executed.
  • Last N Messages: Determines how many previous messages should be included as context. Auto will use all available.
  • Timeout: Optional timeout to prevent long-running code.

This is useful for simulating scenarios where a user performs code-based tasks or replies with dynamically computed results.