Skip to content

Conversation

@codefromthecrypt
Copy link

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
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
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
Contributor

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

@codefromthecrypt
Copy link
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
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
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