@digitalocean/dots - v1.0.1
    Preparing search index...

    Builds and executes requests for operations under /v2/gen-ai/agents/{agent_uu-id}/knowledge_bases

    interface Knowledge_basesRequestBuilder {
        byKnowledge_base_uuid(
            knowledge_base_uuid: string,
        ): WithKnowledge_base_uuItemRequestBuilder;
        post(
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | ApiLinkKnowledgeBaseOutput>;
        toPostRequestInformation(
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): Knowledge_basesRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    post

    • post(
          requestConfiguration?: RequestConfiguration<object>,
      ): Promise<undefined | ApiLinkKnowledgeBaseOutput>

      To attach knowledge bases to an agent, send a POST request to /v2/gen-ai/agents/{agent_uuid}/knowledge_bases

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns Promise<undefined | ApiLinkKnowledgeBaseOutput>

      error when the service returns a 401 status code

      error when the service returns a 404 status code

      error when the service returns a 429 status code

      error when the service returns a 500 status code

      error when the service returns a 4XX or 5XX status code

    • To attach knowledge bases to an agent, send a POST request to /v2/gen-ai/agents/{agent_uuid}/knowledge_bases

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns RequestInformation