fix(opencode): teach Kit's test what an ID is (#17745)
parent
c2ca1494e5
commit
59c530cc6c
|
|
@ -368,8 +368,8 @@ describe("session.llm.stream", () => {
|
||||||
await Instance.provide({
|
await Instance.provide({
|
||||||
directory: tmp.path,
|
directory: tmp.path,
|
||||||
fn: async () => {
|
fn: async () => {
|
||||||
const resolved = await Provider.getModel(providerID, model.id)
|
const resolved = await Provider.getModel(ProviderID.make(providerID), ModelID.make(model.id))
|
||||||
const sessionID = "session-test-tools"
|
const sessionID = SessionID.make("session-test-tools")
|
||||||
const agent = {
|
const agent = {
|
||||||
name: "test",
|
name: "test",
|
||||||
mode: "primary",
|
mode: "primary",
|
||||||
|
|
@ -378,12 +378,12 @@ describe("session.llm.stream", () => {
|
||||||
} satisfies Agent.Info
|
} satisfies Agent.Info
|
||||||
|
|
||||||
const user = {
|
const user = {
|
||||||
id: "user-tools",
|
id: MessageID.make("user-tools"),
|
||||||
sessionID,
|
sessionID,
|
||||||
role: "user",
|
role: "user",
|
||||||
time: { created: Date.now() },
|
time: { created: Date.now() },
|
||||||
agent: agent.name,
|
agent: agent.name,
|
||||||
model: { providerID, modelID: resolved.id },
|
model: { providerID: ProviderID.make(providerID), modelID: resolved.id },
|
||||||
tools: { question: true },
|
tools: { question: true },
|
||||||
} satisfies MessageV2.User
|
} satisfies MessageV2.User
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue