Readables
Share app specific context with your agent.
One of the most common use cases for CopilotKit is to register app state and context using useAgentContext.
This way, you can notify CopilotKit of what is going in your app in real time.
Some examples might be: the current user, the current page, etc.
This context can then be shared with your AG2 backend.
Implementation#
Info
Check out the Frontend Data documentation to understand what this is and how to use it.
Info
CopilotKit consumes AG-UI protocol events streamed by AG2 over
/chat. See the
AG2 AG-UI integration docs
.
