Skip to content

Add WebSocket /invocations support for realtime scenarios #20

Description

@shibayan

Priority

P3 by default; raise to P1 if realtime or voice becomes a product objective.

Goal

Support duplex Hosted Agent invocations over WebSocket for realtime and streaming workloads.

Scope

  • Define connection establishment and invocation message handling.
  • Support duplex streaming, cancellation, backpressure, and disconnect cleanup.
  • Integrate identity and tracing with the hosted execution context.
  • Add protocol tests using an in-process WebSocket client and server.

Acceptance criteria

  • Multiple invocation messages can be exchanged over one connection.
  • Cancellation and client disconnects stop active work.
  • Backpressure has bounded memory behavior.
  • Authentication and execution context match HTTP invocation behavior.
  • A realtime reference sample demonstrates the supported lifecycle.

Dependency

Blocked by the HTTP Invocations protocol and its shared contracts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    foundryUsage: [Issues, PRs], Target: Microsoft Foundry integrationshostingUsage: [Issues, PRs], Target: agent hosting protocols and runtime

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions