feat: chatagent callbacks and context clone#3950
Conversation
There was a problem hiding this comment.
Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit in Settings → Usage.
Once credits are available, reopen this pull request to trigger a review.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ub.com/camel-ai/camel into feat/chatagent-callbacks-context-clone
…ub.com/camel-ai/camel into feat/chatagent-callbacks-context-clone
There was a problem hiding this comment.
Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit in Settings → Usage.
Once credits are available, reopen this pull request to trigger a review.
Related Issue
Closes #
Description
AgentCallback/AgentEventinterface with 6 lifecycle events (step_started,step_completed,step_failed,tool_started,tool_completed,tool_failed), fired across all execution paths (non-streaming, streaming sync, streaming async)execution_context(static dict) andexecution_context_provider(dynamic callable) toChatAgent, merged into every event's metadatacontextvarscontext when sync tools are dispatched to thread pools — coversFunctionTool.async_call,_aexecute_tool,_aexecute_tool_from_stream_data, andstep()timeout pathclone()to acceptCloneContext(session_id, execution_context), preserve full runtime config, deep-copy statefulresponse_terminators, and forwardsession_idto toolkitclone_for_new_session()What is the purpose of this pull request?
Checklist
pyproject.tomland runuv lockIf you are unsure about any of these, don't hesitate to ask. We are here to help!