@anthropic-ai/sdk
Advanced tools
Comparing version 0.25.2 to 0.26.0
@@ -88,2 +88,3 @@ import * as Errors from "./error.js"; | ||
messages: API.Messages; | ||
beta: API.Beta; | ||
protected defaultQuery(): Core.DefaultQuery | undefined; | ||
@@ -160,4 +161,5 @@ protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers; | ||
export import MessageStreamParams = API.MessageStreamParams; | ||
export import Beta = API.Beta; | ||
} | ||
export default Anthropic; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -69,2 +69,3 @@ "use strict"; | ||
this.messages = new API.Messages(this); | ||
this.beta = new API.Beta(this); | ||
this._options = options; | ||
@@ -151,2 +152,3 @@ this.apiKey = apiKey; | ||
Anthropic.Messages = API.Messages; | ||
Anthropic.Beta = API.Beta; | ||
})(Anthropic = exports.Anthropic || (exports.Anthropic = {})); | ||
@@ -153,0 +155,0 @@ exports = module.exports = Anthropic; |
{ | ||
"name": "@anthropic-ai/sdk", | ||
"version": "0.25.2", | ||
"version": "0.26.0", | ||
"description": "The official TypeScript library for the Anthropic API", | ||
@@ -5,0 +5,0 @@ "author": "Anthropic <support@anthropic.com>", |
@@ -0,3 +1,4 @@ | ||
export { Beta } from "./beta/beta.js"; | ||
export { Completion, CompletionCreateParams, CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming, Completions, } from "./completions.js"; | ||
export { ContentBlock, ContentBlockDeltaEvent, ContentBlockStartEvent, ContentBlockStopEvent, ImageBlockParam, InputJsonDelta, InputJSONDelta, Message, MessageDeltaEvent, MessageDeltaUsage, MessageParam, MessageStartEvent, MessageStopEvent, MessageStreamEvent, Model, RawContentBlockDeltaEvent, RawContentBlockStartEvent, RawContentBlockStopEvent, RawMessageDeltaEvent, RawMessageStartEvent, RawMessageStopEvent, RawMessageStreamEvent, TextBlock, TextBlockParam, TextDelta, Tool, ToolResultBlockParam, ToolUseBlock, ToolUseBlockParam, Usage, MessageCreateParams, MessageCreateParamsNonStreaming, MessageCreateParamsStreaming, MessageStreamParams, Messages, } from "./messages.js"; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Messages = exports.Completions = void 0; | ||
exports.Messages = exports.Completions = exports.Beta = void 0; | ||
var beta_1 = require("./beta/beta.js"); | ||
Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } }); | ||
var completions_1 = require("./completions.js"); | ||
@@ -6,0 +8,0 @@ Object.defineProperty(exports, "Completions", { enumerable: true, get: function () { return completions_1.Completions; } }); |
@@ -373,4 +373,4 @@ import { APIResource } from "../resource.js"; | ||
* | ||
* See [examples](https://docs.anthropic.com/en/api/messages-examples) for more | ||
* input examples. | ||
* See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for | ||
* more input examples. | ||
* | ||
@@ -377,0 +377,0 @@ * Note that if you want to include a |
@@ -134,2 +134,3 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
messages: API.Messages = new API.Messages(this); | ||
beta: API.Beta = new API.Beta(this); | ||
@@ -283,4 +284,6 @@ protected override defaultQuery(): Core.DefaultQuery | undefined { | ||
export import MessageStreamParams = API.MessageStreamParams; | ||
export import Beta = API.Beta; | ||
} | ||
export default Anthropic; |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
export { Beta } from "./beta/beta.js"; | ||
export { | ||
@@ -4,0 +5,0 @@ Completion, |
@@ -484,4 +484,4 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
* | ||
* See [examples](https://docs.anthropic.com/en/api/messages-examples) for more | ||
* input examples. | ||
* See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for | ||
* more input examples. | ||
* | ||
@@ -488,0 +488,0 @@ * Note that if you want to include a |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.25.2'; // x-release-please-version | ||
export const VERSION = '0.26.0'; // x-release-please-version |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.25.2"; | ||
export declare const VERSION = "0.26.0"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.25.2'; // x-release-please-version | ||
exports.VERSION = '0.26.0'; // x-release-please-version | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
936424
250
14697