Interface AgentRequestContext<AC>

Contextual information about the request.

interface AgentRequestContext<AC> {
    appConfig: AC;
    conversationId: string;
    isNewConversation: boolean;
    requestId: string;
}

Type Parameters

Hierarchy

  • AgentRequestContext

    Properties

    appConfig: AC

    Additional configuration that can be passed from the client to the agent. This can be used to pass feature-flags or other configuration values. E.g. { model: 'gpt-3.5-turbo-0125', promptVersion: "chain-of-thought", }

    conversationId: string

    Conversation ID associated with the request. For conversational applications, multiple requests can be associated with the same conversation.

    isNewConversation: boolean

    Flag to indicate if the current request is a new conversation.

    requestId: string

    Unique request ID associated with the request.