Skip to content

Enforce single tool output type in codex handlers#14157

Merged
pakrym-oai merged 12 commits intomainfrom
pakrym/force-single-output-type-for
Mar 10, 2026
Merged

Enforce single tool output type in codex handlers#14157
pakrym-oai merged 12 commits intomainfrom
pakrym/force-single-output-type-for

Conversation

@pakrym-oai
Copy link
Collaborator

@pakrym-oai pakrym-oai commented Mar 10, 2026

We'll need to associate output schema with each tool. Each tool can only have on output type.


pub struct McpHandler;

pub enum McpHandlerOutput {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This can be simplified and I'll do it as a followup.

}

#[async_trait]
trait AnyToolHandler: Send + Sync {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is so registry can store non-generic handlers.

@pakrym-oai pakrym-oai merged commit d71e042 into main Mar 10, 2026
33 of 35 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/force-single-output-type-for branch March 10, 2026 04:49
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants