25 lines
853 B
TypeScript
25 lines
853 B
TypeScript
import assert from "node:assert/strict";
|
|
import { test } from "bun:test";
|
|
|
|
import { buildAgentRunCommandInput } from "./code-agent-agentrun-adapter.ts";
|
|
|
|
test("AgentRun command mapper forwards model and reasoning effort on the original turn path", () => {
|
|
const command = buildAgentRunCommandInput({
|
|
params: {
|
|
message: "verify model selection",
|
|
sessionId: "ses_model_selection",
|
|
model: "gpt-5.6",
|
|
reasoningEffort: "high"
|
|
},
|
|
traceId: "trc_model_selection",
|
|
backendProfile: "gpt-pika",
|
|
sessionId: "ses_agentrun_model_selection"
|
|
});
|
|
|
|
assert.equal(command.type, "turn");
|
|
assert.equal(command.payload.providerProfile, "gpt-pika");
|
|
assert.equal(command.payload.model, "gpt-5.6");
|
|
assert.equal(command.payload.reasoningEffort, "high");
|
|
assert.equal(command.payload.traceId, "trc_model_selection");
|
|
});
|