Run Agents • AI Agents Framework

run_agents: Runs the agents and returns the result.

run_agents

Async

Function

</div>

This function is defined in the chainlit_ui module.

Runs the agents and returns the result.

Diagram

Input Data

Agent: run_agents

Output Result

Signature

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

Parameters

ParamField str

No description available.

ParamField str

No description available.

Returns

ResponseField 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


Related Documentation