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.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: run_agents"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffSignature
async def run_agents(agent_file: str, framework: str) -> AnyParameters
ParamField
strNo description available.
ParamField
strNo description available.
Returns
ResponseField
AnyThe result of the operation.
Uses
AgentsGeneratorStringIOredirect_stdoutagents_generator.generate_crew_and_kickoffstdout_buffer.getvaluecl.Stepsplitlinesstep.stream_tokenoutputcl.step
Source
View on GitHubpraisonai/chainlit_ui.py at line 186