Dagger.LLMMessageOrigin (dagger v1.0.0-beta.15)

Copy Markdown View Source

EXPERIMENTAL: Agent APIs are likely to change.

The recorded provenance of a message that arrived through an agent mailbox.

Summary

Functions

The display name of the sending agent (for AGENT origins) or the observed agent (for EVENT origins).

A unique identifier for this LLMMessageOrigin.

Who put this message on the record.

The message's short ref within the receiving agent's runtime, e.g. "#3": the deterministic token replies name (send's replyTo) and the message lookup takes.

The ref of the message this one answers, in the sender's own runtime, if any.

Types

t()

@type t() :: %Dagger.LLMMessageOrigin{client: term(), query_builder: term()}

Functions

agent_name(llm_message_origin)

@spec agent_name(t()) :: {:ok, String.t()} | {:error, term()}

The display name of the sending agent (for AGENT origins) or the observed agent (for EVENT origins).

Experimental

"Agent APIs are likely to change."

id(llm_message_origin)

@spec id(t()) :: {:ok, String.t()} | {:error, term()}

A unique identifier for this LLMMessageOrigin.

kind(llm_message_origin)

@spec kind(t()) :: {:ok, Dagger.LLMMessageOriginKind.t()} | {:error, term()}

Who put this message on the record.

Experimental

"Agent APIs are likely to change."

ref(llm_message_origin)

@spec ref(t()) :: {:ok, String.t()} | {:error, term()}

The message's short ref within the receiving agent's runtime, e.g. "#3": the deterministic token replies name (send's replyTo) and the message lookup takes.

Experimental

"Agent APIs are likely to change."

reply_to(llm_message_origin)

@spec reply_to(t()) :: {:ok, String.t()} | {:error, term()}

The ref of the message this one answers, in the sender's own runtime, if any.

Experimental

"Agent APIs are likely to change."