package a2a-client

  1. Overview
  2. Docs
A2A (Agent2Agent) protocol client for OCaml 5 / Eio (v1.0, v0.3 compatible)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.3.0.tar.gz
md5=7bf58c1e200b0edbe84dc0f5d305dd2c
sha512=6c4f24e96ddea9a9c8664916323f1f8f3f970cf7714de2182cf849c8c0a983539b0364d019daf3648f42b1d90c357f69993b68c9df8117319709e2f415832c12

doc/a2a-client.testing/A2a_client_testing/Reply/index.html

Module A2a_client_testing.ReplySource

How the agent answers one request.

Sourcetype t
Sourceval stream : Step.t list -> t

200 with text/event-stream. The agent closes the stream after the last step, unless that is Step.drop or Step.hang.

Sourceval send_message_response : A2a_client.Send_message_response.t -> t

The result of SendMessage.

The result of GetTask or CancelTask, or a non-streamed answer to a streaming request.

Sourceval error : ?status:int -> A2a_client.Error.Code.t -> string -> t

An agent error: a JSON-RPC error response, or with the REST binding a google.rpc.Status body with HTTP status (default 400).

Sourceval http : status:int -> ?content_type:string -> string -> t

Any HTTP response, e.g. http ~status:500 "boom" from a proxy. Default content type text/plain.

Sourceval refuse : t

No response: the transport raises, as when a connection is refused.

Sourceval after : float -> t -> t

The same reply, sent after that many seconds.