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

Function clone

packages/effect/src/unstable/ai/Tool.ts:1042–1043  ·  view source on GitHub ↗
(self: Any, overrides?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

1040// user-defined vs. provider-defined vs. dynamic) and its own properties such
1041// as `id`. Optional `overrides` replace individual fields on the clone.
1042const clone = (self: Any, overrides?: Record<string, unknown>): any =>
1043 Object.assign(Object.create(Object.getPrototypeOf(self)), self, overrides)
1044
1045const Proto = {
1046 [TypeId]: { _Requirements: identity },

Callers 7

addDependencyFunction · 0.85
setParametersFunction · 0.85
setSuccessFunction · 0.85
setFailureFunction · 0.85
setNeedsApprovalFunction · 0.85
annotateFunction · 0.85
annotateMergeFunction · 0.85

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected