MCPcopy Index your code
hub / github.com/anomalyco/opencode / llmLayerWithExecutor

Function llmLayerWithExecutor

packages/opencode/test/session/llm.test.ts:76–86  ·  view source on GitHub ↗
(
  options: {
    executor?: Layer.Layer<RequestExecutor.Service>
    flags?: Partial<RuntimeFlags.Info>
  } = {},
)

Source from the content-addressed store, hash-verified

74 })
75
76function 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
88describe("session.llm.hasToolCalls", () => {
89 test("returns false for empty messages array", () => {

Callers 1

llm.test.tsFile · 0.85

Calls 1

layerMethod · 0.45

Tested by

no test coverage detected