Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[1/n] Break Agent into AgentBase+Agent #1068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2025
Merged

[1/n] Break Agent into AgentBase+Agent #1068

merged 1 commit into from
Jul 11, 2025

Conversation

rm-openai
Copy link
Collaborator

@rm-openai rm-openai commented Jul 11, 2025

This allows base agent stuff to be shared with the realtime agent


@@ -28,16 +30,16 @@ async def on_agent_end(
async def on_handoff(
self,
context: RunContextWrapper[TContext],
from_agent: Agent[TContext],
to_agent: Agent[TContext],
from_agent: TAgent,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this cause type checking errors for customers that relied on the type of context?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess not if TAgent is well typed

@rm-openai rm-openai merged commit e5d3ad7 into main Jul 11, 2025
10 checks passed
@rm-openai rm-openai deleted the rm/pr1067 branch July 11, 2025 16:11
rm-openai added a commit that referenced this pull request Jul 11, 2025
Similar to the TS version. 



---
[//]: # (BEGIN SAPLING FOOTER)
* __->__ #1069
* #1068
rm-openai added a commit that referenced this pull request Jul 11, 2025
Similar to the TS version.
- Config is the things you can set on the session
- Items are similar to responses items. I'm using an abstraction instead
of reusing the ones in the openai SDK, to reduce the amount of work for
other providers



---
[//]: # (BEGIN SAPLING FOOTER)
* #1074
* #1073
* #1072
* #1071
* __->__ #1070
* #1069
* #1068
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants