Member Junction
    Preparing search index...

    Interface AgentToolContext<P>

    What an agent tool sees when it runs.

    interface AgentToolContext<P = object> {
        ContextUser: UserInfo;
        CurrentPayload: P;
        Params: ExecuteAgentParams;
    }

    Type Parameters

    • P = object
    Index

    Properties

    ContextUser: UserInfo
    CurrentPayload: P

    A copy of the payload as it stands when this call runs — after every earlier call on the turn. Changing it changes nothing: return the change as AgentToolResult.PayloadChange.