Skip to content

Draft Proposal: Adding agentserver library#49572

Draft
johnoliver wants to merge 5 commits into
Azure:mainfrom
johnoliver:agentserver
Draft

Draft Proposal: Adding agentserver library#49572
johnoliver wants to merge 5 commits into
Azure:mainfrom
johnoliver:agentserver

Conversation

@johnoliver

Copy link
Copy Markdown

Description

This pull request introduces the initial implementation of the Azure Agent Server API module for Java, providing the foundational API and data structures for building agent servers compatible with the OpenAI Responses API and Azure AI Foundry. The changes include a new Maven module with its dependencies, key protocol data types, and a comprehensive README for the Java Agent Server Adapter.

Key changes:

Documentation and Developer Experience

  • Added a detailed README.md for the Java Agent Server Adapter, including project structure, build instructions, sample usage, Docker integration, Azure AI Foundry deployment, and TLS proxy certificate handling for the Azure hosting environment.

New Maven Module and Dependencies

  • Created the azure-agentserver-api Maven module with a pom.xml that declares dependencies on SLF4J, Jackson, OpenAI Java SDK, Azure SDKs, Netty (for networking), OpenTelemetry, and test libraries. This sets up the foundational library for agent server development.

Core API Data Types

  • Added AgentReference and AgentReferenceType records/enums to represent agent identity and reference types in the Foundry protocol, with Jackson annotations for robust JSON serialization/deserialization. [1] [2]
  • Introduced AgentServerCreateResponse, a record representing incoming create-response requests, including custom Jackson deserialization logic to handle both standard and legacy Foundry request formats, and to inject missing type discriminators for input items. This ensures compatibility and resilience when parsing requests from various clients.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@github-actions github-actions Bot added Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Jun 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution @johnoliver! We will review the pull request and get back to you soon.

@johnoliver johnoliver closed this Jun 19, 2026
@johnoliver johnoliver reopened this Jul 2, 2026
johnoliver and others added 2 commits July 7, 2026 18:30
…lient

Add two new Agent Server samples and supporting API changes:

- azure-agentserver-translator-sample: an Agent Server that translates
  input text to Italian via Azure OpenAI, demonstrating both the
  synchronous completions path and a token-by-token streaming path.
- azure-ai-agents-sdk-client-sample: end-to-end client sample that
  deploys a hosted agent to Azure AI Foundry and invokes it through the
  com.azure:azure-ai-agents SDK, with idempotent deployment and printed
  managed-identity RBAC guidance.

azure-agentserver-api changes supporting the translator sample:
- AgentServerCreateResponse.inputText() now handles the structured
  input[] message shape (Foundry chat playground / multi-turn), not just
  a plain text input, returning the most recent user message.
- ResponseEventStream gains streamChatCompletion / streamDeltas helpers
  that forward chat-completion chunks as output_text delta events.
- Added serialization tests for the new inputText shapes.

Register both modules in the agentserver parent pom.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant