(
options: {
executor?: Layer.Layer<RequestExecutor.Service>
flags?: Partial<RuntimeFlags.Info>
} = {},
)
| 74 | }) |
| 75 | |
| 76 | function llmLayerWithExecutor( |
| 77 | options: { |
| 78 | executor?: Layer.Layer<RequestExecutor.Service> |
| 79 | flags?: Partial<RuntimeFlags.Info> |
| 80 | } = {}, |
| 81 | ) { |
| 82 | return AppNodeBuilder.build(LLM.node, [ |
| 83 | [RuntimeFlags.node, RuntimeFlags.layer(options.flags)], |
| 84 | ...(options.executor ? ([[LayerNodePlatform.requestExecutor, options.executor]] as const) : []), |
| 85 | ]) |
| 86 | } |
| 87 | |
| 88 | describe("session.llm.hasToolCalls", () => { |
| 89 | test("returns false for empty messages array", () => { |