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

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

    interface VersionsRequestBuilder {
        get(
            requestConfiguration?: RequestConfiguration<
                VersionsRequestBuilderGetQueryParameters,
            >,
        ): Promise<undefined | ApiListAgentVersionsOutput>;
        put(
            body: ApiRollbackToAgentVersionInputPublic,
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | ApiRollbackToAgentVersionOutput>;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<
                VersionsRequestBuilderGetQueryParameters,
            >,
        ): RequestInformation;
        toPutRequestInformation(
            body: ApiRollbackToAgentVersionInputPublic,
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): VersionsRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • To list all agent versions, send a GET request to /v2/gen-ai/agents/{uuid}/versions.

      Parameters

      Returns Promise<undefined | ApiListAgentVersionsOutput>

      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 update to a specific agent version, send a PUT request to /v2/gen-ai/agents/{uuid}/versions.

      Parameters

      • body: ApiRollbackToAgentVersionInputPublic

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns Promise<undefined | ApiRollbackToAgentVersionOutput>

      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 update to a specific agent version, send a PUT request to /v2/gen-ai/agents/{uuid}/versions.

      Parameters

      • body: ApiRollbackToAgentVersionInputPublic

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns VersionsRequestBuilder