@granular-software/sdk 0.4.71 → 0.4.72
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/agent-evals.d.mts
CHANGED
|
@@ -415,6 +415,7 @@ declare function createOpenAIChatTurnGenerator(options: {
|
|
|
415
415
|
model?: string;
|
|
416
416
|
baseUrl?: string;
|
|
417
417
|
temperature?: number;
|
|
418
|
+
reasoningEffort?: "low" | "medium" | "high";
|
|
418
419
|
headers?: Record<string, string>;
|
|
419
420
|
usageContext?: GranularSpendContext;
|
|
420
421
|
onUsage?: (usage: AgentEvalOpenAIUsageEvent) => void | Promise<void>;
|
|
@@ -470,6 +471,7 @@ interface AgentTesterOptions {
|
|
|
470
471
|
model?: string;
|
|
471
472
|
baseUrl?: string;
|
|
472
473
|
temperature?: number;
|
|
474
|
+
reasoningEffort?: "low" | "medium" | "high";
|
|
473
475
|
headers?: Record<string, string>;
|
|
474
476
|
};
|
|
475
477
|
model?: string;
|
package/dist/agent-evals.d.ts
CHANGED
|
@@ -415,6 +415,7 @@ declare function createOpenAIChatTurnGenerator(options: {
|
|
|
415
415
|
model?: string;
|
|
416
416
|
baseUrl?: string;
|
|
417
417
|
temperature?: number;
|
|
418
|
+
reasoningEffort?: "low" | "medium" | "high";
|
|
418
419
|
headers?: Record<string, string>;
|
|
419
420
|
usageContext?: GranularSpendContext;
|
|
420
421
|
onUsage?: (usage: AgentEvalOpenAIUsageEvent) => void | Promise<void>;
|
|
@@ -470,6 +471,7 @@ interface AgentTesterOptions {
|
|
|
470
471
|
model?: string;
|
|
471
472
|
baseUrl?: string;
|
|
472
473
|
temperature?: number;
|
|
474
|
+
reasoningEffort?: "low" | "medium" | "high";
|
|
473
475
|
headers?: Record<string, string>;
|
|
474
476
|
};
|
|
475
477
|
model?: string;
|
package/dist/agent-evals.js
CHANGED
|
@@ -24097,6 +24097,9 @@ ${modelOutputInstruction()}`
|
|
|
24097
24097
|
if (typeof options.temperature === "number") {
|
|
24098
24098
|
payload.temperature = options.temperature;
|
|
24099
24099
|
}
|
|
24100
|
+
if (options.reasoningEffort) {
|
|
24101
|
+
payload.reasoning_effort = options.reasoningEffort;
|
|
24102
|
+
}
|
|
24100
24103
|
let lastError = null;
|
|
24101
24104
|
for (let attempt = 1; attempt <= 3; attempt += 1) {
|
|
24102
24105
|
try {
|
|
@@ -26422,6 +26425,7 @@ function createAgentTester(options) {
|
|
|
26422
26425
|
model: options.openai?.model || options.model,
|
|
26423
26426
|
baseUrl: options.openai?.baseUrl,
|
|
26424
26427
|
temperature: options.openai?.temperature,
|
|
26428
|
+
reasoningEffort: options.openai?.reasoningEffort,
|
|
26425
26429
|
headers: options.openai?.headers,
|
|
26426
26430
|
onUsage: async (usage) => {
|
|
26427
26431
|
await granular.recordOpenAIUsageSpend(usage, usage.usageContext);
|