MCPcopy Create free account
hub / github.com/Effect-TS/effect / annotate

Function annotate

packages/effect/src/unstable/ai/Tool.ts:1065–1067  ·  view source on GitHub ↗
(this: Any, tag: Context.Key<I, S>, value: S)

Source from the content-addressed store, hash-verified

1063 return clone(this, { needsApproval })
1064 },
1065 annotate<I, S>(this: Any, tag: Context.Key<I, S>, value: S) {
1066 return clone(this, { annotations: Context.add(this.annotations, tag, value) })
1067 },
1068 annotateMerge<I>(this: Any, context: Context.Context<I>) {
1069 return clone(this, { annotations: Context.merge(this.annotations, context) })
1070 }

Callers

nothing calls this directly

Calls 2

cloneFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected