komrad

forward_last_turns

Send an agent's latest turns to another agent as mail, without the text passing through the caller.

writesnot idempotentMCP toolAgent

Mail holds at most 10000 characters.

Calling it#

curl -X POST http://127.0.0.1:8787/komrad.agent.v1.AgentService/ForwardLastTurns \
  -H 'Content-Type: application/json' \
  -d '{
  "from_agent_id": "<from_agent_id>",
  "to_agent_id": "<to_agent_id>"
}'

Request#

ForwardLastTurnsRequest#

FieldTypeDescription
from_agent_iduuid*

The agent whose newest turns to forward, by id.

to_agent_iduuid*

The agent to forward them to, by id.

turnsint32

between 1 and 20

How many of the newest agent turns to forward, with the prompts between them. Unset forwards the last turn only.

notestring

not empty

at most 10000 characters

A note to the recipient, which comes before the turns.

max_bytesint32

at least 0

The most bytes to forward for each turn. A longer turn loses its start, so its end stays. Unset uses the default.

Response#

ForwardLastTurnsResponse#

FieldTypeDescription
mail_iduuid*

The id of the mail sent. Pass it as reply_to to answer.

to_agent_iduuid*

The id of the agent the mail is for.

created_attimestamp

When the mail was sent.

turnsint32

How many turns the mail carries, prompts included.

charactersint32

How many characters the mail's text runs to.

warningstring

Why the recipient will not read the mail soon. Unset when the recipient is running.