Saltar al contenido principal

List datasets available to link

GET 

/api/v2/AgentVersion/:agentCode/:agentVersion/knowledge/dataset/available

Only shared datasets from the version's subtenant or the one shared across all of them: an agent's default dataset, an unconfirmed draft and a dataset being deleted can't be linked. The datasets the version already links are listed in its knowledge configuration, not here.

A page or page size out of range answers 400, and a missing agent or version answers 404 agent_version_not_found. The version does not need to be a draft.

Request​

Path Parameters

    agentCode stringrequired

    The code of the agent.

    agentVersion int32required

    The version number of the agent.

Query Parameters

    page int32

    Default value: 1

    The page number to retrieve. Maximum 2000000.

    pageSize int32

    Default value: 20

    Number of items per page. Maximum 1000.

    term string

    Optional search term to filter datasets by name, display name or description.

    culture string

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

Responses​

Returns a paginated list of the datasets available for the agent version to link.

Schema

    items

    object[]

    nullable

  • Array [

  • links

    object[]

    nullable

  • Array [

  • method stringnullable
    url stringnullable
    rel stringnullable
  • ]

  • id uuid

    Identifier of the dataset, which goes in the knowledge's dataset sources to link it.

    name stringnullable

    Identifier the dataset was created with.

    displayName stringnullable

    Name the dataset is shown with.

    description stringnullable

    What the dataset holds, as written by whoever created it.

    status DatasetStatusEnum (string)

    Possible values: [Pending, Processing, Completed, CompletedWithErrors, Error, Delete, Draft]

    Processing state of a dataset. An agent queries it only once it is Completed. Serialised as a string.

    tableCount int32

    How many tables the dataset holds.

  • ]

  • total int64
    pageSize int32
    page int32

    links

    object[]

    nullable

  • Array [

  • method stringnullable
    url stringnullable
    rel stringnullable
  • ]

Loading...