Skip to main content

Gets a paginated list of agent instances for a given agent

GET 

/api/v2/AgentInstance/:agentCode

Gets a paginated list of agent instances for a given agent

Request

Path Parameters

    agentCode stringrequired

    The unique code identifying the agent.

Query Parameters

    userIdentifier string

    Optional user identifier to filter by.

    groupIdentifier string

    Optional group identifier to filter by.

    term string

    Optional search term to filter by name.

    sortDirection string

    Default value: desc

    Sort direction by start date: "asc" or "desc". Default is "desc".

    page int32

    Default value: 1

    The page number to retrieve. Default is 1.

    pageSize int32

    Default value: 20

    The number of items per page. Default is 20.

    culture string

    Use this param to override the culture of the response. Options: - en (default) - es

Responses

OK

Schema

    items

    object[]

    nullable

  • Array [

  • links

    object[]

    nullable

  • Array [

  • method stringnullable
    url stringnullable
    rel stringnullable
  • ]

  • id stringnullable
    name stringnullable
    agentVersion int32nullable
    startDate date-time
    endDate date-time
    timeToFirstToken int64nullable
    channel stringnullable
    userIdentifier stringnullable
    groupIdentifier stringnullable
    ipAddress stringnullable
    userAgent stringnullable
    origin stringnullable
    referer stringnullable

    usage

    object

    promptTokens int32
    completionTokens int32
    totalTokens int32

    costs

    object

    prompt double
    completion double
    services double
    total double
    currency stringnullable

    citations

    object[]

    nullable

  • Array [

  • citationIndex int32
    startIndex int32
    endIndex int32
    relevance double

    source

    object

    nullable

    oneOf

    fileName stringnullable
    knowledgeFileVersionId uuid
    sectionId stringnullable
    pageRange stringnullable
  • ]

  • type stringnullable
    request stringnullable
    response stringnullable

    input

    object[]

    nullable

    The full set of inputs the instance received during its execution, as key/value parameters.

    Populated only when include=input is requested.

  • Array [

  • key stringnullable
    value nullable
  • ]

  • skills

    object[]

    nullable

    The skills (plugins) executed during the instance.

    Populated only when include=skills is requested.

  • Array [

  • name stringnullable
    tool stringnullable

    input

    object[]

    nullable

  • Array [

  • key stringnullable
    value nullable
  • ]

  • output stringnullable

    usage

    object

    promptTokens int32
    completionTokens int32
    totalTokens int32
    success boolean
    error stringnullable
    iteration int32nullable
    durationMs int64nullable
    startDate date-time
  • ]

  • knowledge

    object[]

    nullable

    The knowledge retrieved during the instance.

    Populated only when include=knowledge is requested.

  • Array [

  • fileId stringnullable
    fileName stringnullable
    content stringnullable
    relevance double
    pageFrom int32
    pageTo int32
    position int32
    totalTokenCount int32
  • ]

  • ]

  • total int64
    pageSize int32
    page int32

    links

    object[]

    nullable

  • Array [

  • method stringnullable
    url stringnullable
    rel stringnullable
  • ]

Loading...