Skip to main content

start

Method
This is a method of the AgentTeam class in the agents module.
Start agent execution with verbose output (beginner-friendly). Shows Rich panels with workflow progress when in TTY. Use .run() for silent execution in production/scripts.

Signature

def start(content: Any, return_dict: Any, output: Any) -> Any

Parameters

content
Any
Optional content to add to all tasks’ context
return_dict
Any
default:"False"
If True, returns the full results dictionary
output
Any
Output preset - “silent”, “verbose”, “normal”, etc. Default in TTY: “verbose” (shows progress) Default non-TTY: “silent” **kwargs: Additional arguments

Returns

Returns
Any
The result of the operation.

Usage

# Interactive - shows Rich panels
    agents = AgentManager(agents=[agent1, agent2])
    result = agents.start()  # Verbose output by default

    # Force silent mode
    result = agents.start(output="silent")

Uses

  • track_agent_execution
  • isatty
  • Console
  • Panel
  • time_module.time
  • Panel.fit
  • console.status
  • run_task
  • get_task_result
  • Markdown

Used By

Source

View on GitHub

praisonaiagents/agents/agents.py at line 1223