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

Function agentLayer

packages/opencode/test/agent/agent.test.ts:19–23  ·  view source on GitHub ↗
(flags: Partial<RuntimeFlags.Info> = {})

Source from the content-addressed store, hash-verified

17import { Truncate } from "../../src/tool/truncate"
18
19const agentLayer = (flags: Partial<RuntimeFlags.Info> = {}) =>
20 LayerNode.compile(
21 LayerNode.group([Agent.node, Plugin.node, Provider.node, Auth.node, Config.node, Skill.node, RuntimeFlags.node]),
22 [[RuntimeFlags.node, RuntimeFlags.layer(flags)]],
23 )
24
25const it = testEffect(agentLayer())
26

Callers 1

agent.test.tsFile · 0.85

Calls 1

layerMethod · 0.45

Tested by

no test coverage detected