Skip to content

fix: drift in BaseAgentExecutor and uses it in examples - #3

Closed
codefromthecrypt wants to merge 2 commits into
a2aproject:mainfrom
codefromthecrypt:BaseAgentExecutor
Closed

codefromthecrypt wants to merge 2 commits into
a2aproject:mainfrom
codefromthecrypt:BaseAgentExecutor

Conversation

@codefromthecrypt

Copy link
Copy Markdown

This fixes drift in BaseAgentExecutor and uses it in examples. Ideally, this can centralize how cancel is to be marked unimplemented in a consistent way.

@codefromthecrypt
codefromthecrypt requested a review from a team as a code owner May 14, 2025 19:03
@codefromthecrypt

Copy link
Copy Markdown
Author

@holtskinner this has your change in #2, but has some lint fail unrelated. do you want to correct that in main? or should I add a commit to do that here?

Signed-off-by: Adrian Cole <[email protected]>
@holtskinner

Copy link
Copy Markdown
Member

I'll fix the lint issues in main. Don't worry about them here.

@holtskinner this has your change in #2, but has some lint fail unrelated. do you want to correct that in main? or should I add a commit to do that here?

@kthota-g

Copy link
Copy Markdown
Contributor

BaseAgentExecutor is a leftover class from previous iterations, this class will be removed.

@codefromthecrypt

Copy link
Copy Markdown
Author

Thanks for the tips

@codefromthecrypt
codefromthecrypt deleted the BaseAgentExecutor branch May 15, 2025 01:10

async def cancel(self, context: RequestContext, event_queue: EventQueue):
# Ideally: kill any ongoing tasks.
raise ServerError(error=UnsupportedOperationError())

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@kthota-g is this the correct way to handle UnsupportedOperationError vs the event_queue?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes, the latest version would handle throwing exceptions from agent executor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants