chore: generate
This commit is contained in:
@@ -26,11 +26,7 @@ function createReasoningPart(text: string): SessionV1.Part {
|
||||
}
|
||||
}
|
||||
|
||||
function createToolPart(
|
||||
tool: string,
|
||||
title: string,
|
||||
status: "completed" | "running" = "completed",
|
||||
): SessionV1.Part {
|
||||
function createToolPart(tool: string, title: string, status: "completed" | "running" = "completed"): SessionV1.Part {
|
||||
if (status === "completed") {
|
||||
return {
|
||||
id: PartID.ascending(),
|
||||
|
||||
@@ -330,9 +330,7 @@ it.live("session.processor effect tests preserve text start time", () =>
|
||||
gate.resolve()
|
||||
|
||||
const exit = yield* Fiber.await(run)
|
||||
const text = (yield* MessageV2.parts(msg.id)).find(
|
||||
(part): part is SessionV1.TextPart => part.type === "text",
|
||||
)
|
||||
const text = (yield* MessageV2.parts(msg.id)).find((part): part is SessionV1.TextPart => part.type === "text")
|
||||
|
||||
expect(Exit.isSuccess(exit)).toBe(true)
|
||||
expect(text?.text).toBe("hello")
|
||||
|
||||
Reference in New Issue
Block a user