MCPcopy
hub / github.com/anomalyco/opencode / agentInfo

Function agentInfo

packages/core/test/plugin/host.ts:263–270  ·  view source on GitHub ↗
(value: AgentV2.Info)

Source from the content-addressed store, hash-verified

261}
262
263function agentInfo(value: AgentV2.Info) {
264 return {
265 ...value,
266 model: value.model && { ...value.model },
267 request: { headers: { ...value.request.headers }, body: { ...value.request.body } },
268 permissions: value.permissions.map((permission) => ({ ...permission })),
269 }
270}
271
272function providerInfo(value: ProviderV2.MutableInfo) {
273 return {

Callers 1

agentHostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected