This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@mistralai/mistralai/sdk/agents.js
T

29 lines
1.3 KiB
JavaScript

"use strict";
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Agents = void 0;
const agentsComplete_js_1 = require("../funcs/agentsComplete.js");
const agentsStream_js_1 = require("../funcs/agentsStream.js");
const sdks_js_1 = require("../lib/sdks.js");
const fp_js_1 = require("../types/fp.js");
class Agents extends sdks_js_1.ClientSDK {
/**
* Agents Completion
*/
async complete(request, options) {
return (0, fp_js_1.unwrapAsync)((0, agentsComplete_js_1.agentsComplete)(this, request, options));
}
/**
* Stream Agents completion
*
* @remarks
* Mistral AI provides the ability to stream responses back to a client in order to allow partial results for certain requests. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Otherwise, the server will hold the request open until the timeout or until completion, with the response containing the full result as JSON.
*/
async stream(request, options) {
return (0, fp_js_1.unwrapAsync)((0, agentsStream_js_1.agentsStream)(this, request, options));
}
}
exports.Agents = Agents;
//# sourceMappingURL=agents.js.map