Whenever an agent is interested in getting human-in-the-loop style feedback/approval, this type is used

Constructors

Properties

agent: string

The name of the agent that made the request

agentId: string

The unique identifier for the agent that made the request

comments: string

Internal comments that are not intended to be shared with the AI Agent

createdAt: Date

The date and time the request record was created in the database

id: string

The unique identifier for the request

request: string

Text body of the request the AI Agent is making

requestForUser?: string

Only populated if the request was made for a user, the name of the user that the request was made for

requestForUserId?: string

Optional, the unique identifier for the user that the request was made for by the Agent

requestedAt: Date

The date and time the request was made

respondedAt: Date

The date and time the user responded to the request

response: string

Text body of the response that is being sent back to the AI Agent

responseByUser: string

The name of the user that responded to the request

responseByUserId: string

The unique identifier for the user that responded to the request

status: "Approved" | "Rejected" | "Requested" | "Canceled"

Status of the request: 'Requested' | 'Approved' | 'Rejected' | 'Canceled'

updatedAt: Date

The date and time the request record was last updated in the database