"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Responses = exports.CreateAcceptEnum = void 0;
const agentsResponsesCreate_js_1 = require("../funcs/agentsResponsesCreate.js");
const agentsResponsesGet_js_1 = require("../funcs/agentsResponsesGet.js");
const sdks_js_1 = require("../lib/sdks.js");
const fp_js_1 = require("../types/fp.js");
var agentsResponsesCreate_js_2 = require("../funcs/agentsResponsesCreate.js");
Object.defineProperty(exports, "CreateAcceptEnum", { enumerable: true, get: function () { return agentsResponsesCreate_js_2.CreateAcceptEnum; } });
class Responses extends sdks_js_1.ClientSDK {
    /**
     * Create response
     *
     * @remarks
     * Initiates an agent conversation and returns a complete response. This endpoint manages the full lifecycle of an agent interaction, from receiving the initial message through all processing steps until completion. Supports synchronous execution (waits for completion) and asynchronous execution (returns immediately with task ID). The response includes all messages exchanged, tool calls made, and token usage statistics. Ideal for request-response patterns where you need the complete interaction result.
     */
    async create(requestBody, agentKey, options) {
        return (0, fp_js_1.unwrapAsync)((0, agentsResponsesCreate_js_1.agentsResponsesCreate)(this, requestBody, agentKey, options));
    }
    /**
     * Get response
     *
     * @remarks
     * Retrieves the current state of an agent response by task ID. Returns the response output, model information, token usage, and execution status. When the agent is still processing, the output array will be empty and status will be `in_progress`. Once completed, the response includes the full output, usage statistics, and finish reason.
     */
    async get(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, agentsResponsesGet_js_1.agentsResponsesGet)(this, request, options));
    }
}
exports.Responses = Responses;
//# sourceMappingURL=responses.js.map