@economic/agents 2.15.0 → 2.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/providers.d.mts +5 -0
- package/dist/providers.mjs +5 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -348,6 +348,7 @@ declare abstract class Agent<RequestContext extends Record<string, unknown> = Re
|
|
|
348
348
|
userContext?: UserContext;
|
|
349
349
|
}): Promise<TurnSnapshot>;
|
|
350
350
|
workspaceBash: boolean;
|
|
351
|
+
sendReasoning: boolean;
|
|
351
352
|
getSkillScriptRunner(): skills.SkillScriptRunner | null;
|
|
352
353
|
protected pruneTurnMessages(messages: ModelMessage[]): ModelMessage[];
|
|
353
354
|
private _prepareTools;
|
package/dist/index.mjs
CHANGED
package/dist/providers.d.mts
CHANGED
|
@@ -18,6 +18,11 @@ interface AnthropicVertexProviderOptions {
|
|
|
18
18
|
/** Custom metadata included on every request. `agentId` is injected by the SDK. */
|
|
19
19
|
metadata?: AiGatewayMetadata;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Models are returned without per-model defaults. Set `effort` yourself via
|
|
23
|
+
* `providerOptions.anthropic` where it matters — Sonnet 5 otherwise runs at
|
|
24
|
+
* its default effort, which is slower and spends more tokens thinking.
|
|
25
|
+
*/
|
|
21
26
|
declare function createAnthropicProvider(options: AnthropicVertexProviderOptions): (modelId: AnthropicVertexModelId, metadata?: AiGatewayMetadata) => AnthropicMessagesLanguageModel;
|
|
22
27
|
//#endregion
|
|
23
28
|
//#region src/providers/gemini.d.ts
|
package/dist/providers.mjs
CHANGED
|
@@ -30,6 +30,11 @@ function createAiGatewayFetch(cloudflareApiToken, defaultMetadata, requestMetada
|
|
|
30
30
|
}
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/providers/anthropic.ts
|
|
33
|
+
/**
|
|
34
|
+
* Models are returned without per-model defaults. Set `effort` yourself via
|
|
35
|
+
* `providerOptions.anthropic` where it matters — Sonnet 5 otherwise runs at
|
|
36
|
+
* its default effort, which is slower and spends more tokens thinking.
|
|
37
|
+
*/
|
|
33
38
|
function createAnthropicProvider(options) {
|
|
34
39
|
const { anthropicVersion = "vertex-2023-10-16", cloudflareAccountId, cloudflareAiGatewayId, cloudflareApiToken, googleCloudProjectId, location = "europe-west1", metadata: defaultMetadata } = options;
|
|
35
40
|
const anthropicBaseURL = `${`${`https://gateway.ai.cloudflare.com/v1/${cloudflareAccountId}/${cloudflareAiGatewayId}/`}google-vertex-ai/v1/projects/${googleCloudProjectId}/locations/${location}/publishers/`}anthropic/models/`;
|