Skip to main content

run_agents

AsyncFunction
This function is defined in the chainlit_ui module.
Runs the agents and returns the result.

Signature

async def run_agents(agent_file: str, framework: str) -> Any

Parameters

agent_file
str
required
No description available.
framework
str
required
No description available.

Returns

Returns
Any
The result of the operation.

Uses

  • AgentsGenerator
  • StringIO
  • redirect_stdout
  • agents_generator.generate_crew_and_kickoff
  • stdout_buffer.getvalue
  • cl.Step
  • splitlines
  • step.stream_token
  • output
  • cl.step

Source

View on GitHub

praisonai/chainlit_ui.py at line 186