@restnfeel/agentc-starter-kit
Version:
한국어 기업용 CMS 모듈 - Task Master AI와 함께 빠르게 웹사이트를 구현할 수 있는 재사용 가능한 컴포넌트 시스템
27 lines (24 loc) • 910 B
JavaScript
import { APIResource } from '../../../resource.js';
import { PromptCachingBetaMessageStream } from '../../../lib/PromptCachingBetaMessageStream.js';
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
class Messages extends APIResource {
create(body, options) {
return this._client.post('/v1/messages?beta=prompt_caching', {
body,
timeout: this._client._options.timeout ?? 600000,
...options,
headers: { 'anthropic-beta': 'prompt-caching-2024-07-31', ...options?.headers },
stream: body.stream ?? false,
});
}
/**
* Create a Message stream
*/
stream(body, options) {
return PromptCachingBetaMessageStream.createMessage(this, body, options);
}
}
(function (Messages) {
})(Messages || (Messages = {}));
export { Messages };
//# sourceMappingURL=messages.js.map