Skip to content

feat(spec): add input and output content types #161

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matoushavlena
Copy link
Contributor

@matoushavlena matoushavlena commented May 22, 2025

Refs #162

This PR extends the Agent Detail schema by adding two optional array fields:

  • input_content_types: Specifies supported MIME types for incoming message content.
  • output_content_types: Specifies supported MIME types for outgoing message content.

Both fields default to ["text/plain"] when unspecified, aligning with the existing ACP message communication design. This addition clearly documents agent capabilities, promoting better interoperability and integration between agents.

Motivation

Agents communicate via messages containing parts, each explicitly specifying their MIME content_type. This change explicitly captures supported content types at the agent definition level, allowing clients and other agents to understand and correctly interact with each agent's inputs and outputs.

Backward compatibility

Fully backward compatible. Agents not specifying these fields default to "text/plain" as before.

Next actions

  • Update SDKs
  • Update existing examples
  • Update docs

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.

2 participants