@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 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
@@ -1488,6 +1488,7 @@ var Agent = class extends Think {
1488
1488
  }
1489
1489
  }
1490
1490
  workspaceBash = false;
1491
+ sendReasoning = false;
1491
1492
  getSkillScriptRunner() {
1492
1493
  if (!("LOADER" in this.env)) return null;
1493
1494
  return skills.runner({ loader: this.env.LOADER });
@@ -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
@@ -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/`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/agents",
3
- "version": "2.15.0",
3
+ "version": "2.15.1",
4
4
  "description": "A starter for creating a TypeScript package.",
5
5
  "license": "MIT",
6
6
  "files": [