A2UI Launched: Full CopilotKit support at launch!

A2UI Launched: CopilotKit has partnered with Google to deliver full support in both CopilotKit and AG-UI!

Check it out
LogoLogo
  • Overview
  • Integrations
  • API Reference
  • Copilot Cloud
Slanted end borderSlanted end border
Slanted start borderSlanted start border
Select integration...

Please select an integration to view the sidebar content.

Advanced

Exiting the agent loop

After your agent has finished running a crew, it will automatically exit the agent loop

Exiting the agent has different effects depending on mode:

  • Router Mode: Exiting the agent hands responsibility for handling input back to the router, which can initiate chat, call actions, other agents, etc. The router can return to this agent later (starting a new loop) to satisfy a user request.

  • Agent Lock Mode: Exiting the agent restarts the workflow loop for the current agent.

PREV
Frontend Actions
Slanted end borderSlanted end border
Slanted start borderSlanted start border
NEXT
CopilotKit Premium