@anthropic-ai/sdk
Advanced tools
Comparing version 0.24.0 to 0.24.1
@@ -1,5 +0,5 @@ | ||
import * as Core from "./core.js"; | ||
import * as Errors from "./error.js"; | ||
import * as Uploads from "./uploads.js"; | ||
import { type Agent } from "./_shims/index.js"; | ||
import * as Uploads from "./uploads.js"; | ||
import * as Core from '@anthropic-ai/sdk/core'; | ||
import * as API from '@anthropic-ai/sdk/resources/index'; | ||
@@ -65,3 +65,5 @@ export interface ClientOptions { | ||
} | ||
/** API Client for interfacing with the Anthropic API. */ | ||
/** | ||
* API Client for interfacing with the Anthropic API. | ||
*/ | ||
export declare class Anthropic extends Core.APIClient { | ||
@@ -68,0 +70,0 @@ apiKey: string | null; |
@@ -29,7 +29,9 @@ "use strict"; | ||
exports.fileFromPath = exports.toFile = exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.AnthropicError = exports.AI_PROMPT = exports.HUMAN_PROMPT = exports.Anthropic = void 0; | ||
const Core = __importStar(require("./core.js")); | ||
const Errors = __importStar(require("./error.js")); | ||
const Uploads = __importStar(require("./uploads.js")); | ||
const Core = __importStar(require("@anthropic-ai/sdk/core")); | ||
const API = __importStar(require("@anthropic-ai/sdk/resources/index")); | ||
/** API Client for interfacing with the Anthropic API. */ | ||
/** | ||
* API Client for interfacing with the Anthropic API. | ||
*/ | ||
class Anthropic extends Core.APIClient { | ||
@@ -36,0 +38,0 @@ /** |
{ | ||
"name": "@anthropic-ai/sdk", | ||
"version": "0.24.0", | ||
"version": "0.24.1", | ||
"description": "The official TypeScript library for the Anthropic API", | ||
@@ -5,0 +5,0 @@ "author": "Anthropic <support@anthropic.com>", |
@@ -0,4 +1,4 @@ | ||
import { APIResource } from '@anthropic-ai/sdk/resource'; | ||
import { APIPromise } from '@anthropic-ai/sdk/core'; | ||
import * as Core from '@anthropic-ai/sdk/core'; | ||
import { APIPromise } from '@anthropic-ai/sdk/core'; | ||
import { APIResource } from '@anthropic-ai/sdk/resource'; | ||
import * as CompletionsAPI from '@anthropic-ai/sdk/resources/completions'; | ||
@@ -5,0 +5,0 @@ import { Stream } from '@anthropic-ai/sdk/streaming'; |
@@ -0,8 +1,8 @@ | ||
import { APIResource } from '@anthropic-ai/sdk/resource'; | ||
import { APIPromise } from '@anthropic-ai/sdk/core'; | ||
import * as Core from '@anthropic-ai/sdk/core'; | ||
import { APIPromise } from '@anthropic-ai/sdk/core'; | ||
import { APIResource } from '@anthropic-ai/sdk/resource'; | ||
import { MessageStream } from '@anthropic-ai/sdk/lib/MessageStream'; | ||
export { MessageStream } from '@anthropic-ai/sdk/lib/MessageStream'; | ||
import * as MessagesAPI from '@anthropic-ai/sdk/resources/messages'; | ||
import { Stream } from '@anthropic-ai/sdk/streaming'; | ||
export { MessageStream } from '@anthropic-ai/sdk/lib/MessageStream'; | ||
export declare class Messages extends APIResource { | ||
@@ -248,3 +248,3 @@ /** | ||
type: 'tool_result'; | ||
content?: Array<TextBlockParam | ImageBlockParam>; | ||
content?: string | Array<TextBlockParam | ImageBlockParam>; | ||
is_error?: boolean; | ||
@@ -251,0 +251,0 @@ } |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import * as Core from "./core.js"; | ||
import * as Errors from "./error.js"; | ||
import * as Uploads from "./uploads.js"; | ||
import { type Agent } from "./_shims/index.js"; | ||
import * as Uploads from "./uploads.js"; | ||
import * as Core from "./core.js"; | ||
import * as API from "./resources/index.js"; | ||
@@ -77,3 +77,5 @@ | ||
/** API Client for interfacing with the Anthropic API. */ | ||
/** | ||
* API Client for interfacing with the Anthropic API. | ||
*/ | ||
export class Anthropic extends Core.APIClient { | ||
@@ -118,2 +120,3 @@ apiKey: string | null; | ||
}); | ||
this._options = options; | ||
@@ -120,0 +123,0 @@ |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../resource.js"; | ||
import { APIPromise } from "../core.js"; | ||
import * as Core from "../core.js"; | ||
import { APIPromise } from "../core.js"; | ||
import { APIResource } from "../resource.js"; | ||
import * as CompletionsAPI from "./completions.js"; | ||
@@ -7,0 +7,0 @@ import { Stream } from "../streaming.js"; |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../resource.js"; | ||
import { APIPromise } from "../core.js"; | ||
import * as Core from "../core.js"; | ||
import { APIPromise } from "../core.js"; | ||
import { APIResource } from "../resource.js"; | ||
import { MessageStream } from "../lib/MessageStream.js"; | ||
export { MessageStream } from "../lib/MessageStream.js"; | ||
import * as MessagesAPI from "./messages.js"; | ||
import { Stream } from "../streaming.js"; | ||
export { MessageStream } from "../lib/MessageStream.js"; | ||
export class Messages extends APIResource { | ||
@@ -334,3 +335,3 @@ /** | ||
content?: Array<TextBlockParam | ImageBlockParam>; | ||
content?: string | Array<TextBlockParam | ImageBlockParam>; | ||
@@ -337,0 +338,0 @@ is_error?: boolean; |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.24.0'; // x-release-please-version | ||
export const VERSION = '0.24.1'; // x-release-please-version |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.24.0"; | ||
export declare const VERSION = "0.24.1"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.24.0'; // x-release-please-version | ||
exports.VERSION = '0.24.1'; // 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
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
750772
11713