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
MessageIdAgentMessageIdThe answer being composed.
CallIdstringWhat the model named the call, which the tool's answer is written against.
ToolNamestringThe tool it asked for.
ArgumentsstringThe 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
CallIdorToolNameis empty.- ArgumentNullException
Thrown when
Argumentsis null.