Table of Contents

Constructor AgentToolCalled

Namespace
MailFathom.Application.Agent.Conversations
Assembly
MailFathom.Application.dll

AgentToolCalled(AgentMessageId, string, string, string)

The model asked for a tool while composing an answer, and this is what it asked for.

public AgentToolCalled(AgentMessageId MessageId, string CallId, string ToolName, string Arguments)

Parameters

MessageId AgentMessageId

The answer being composed.

CallId string

What the model named the call, which the tool's answer is written against.

ToolName string

The tool it asked for.

Arguments string

The arguments it passed, as the JSON document the model sent.

Remarks

It belongs to the technical history alone. A person sees what a run did through its status line and what it composed; the call itself was written to compose the model's next input, and it is recorded so that input can be rebuilt from the record rather than inferred from it. Together with AgentToolAnswered it is every step a run's tool loop took, in the order it took them.

The arguments are the model's own and routinely name a thread, a person, or a search a person asked for, so they are sensitive exactly as the rest of the record is.

Exceptions

ArgumentException

Thrown when CallId or ToolName is empty.

ArgumentNullException

Thrown when Arguments is null.