MCPcopy Create free account
hub / github.com/ShipSecAI/studio / createMetadata

Function createMetadata

packages/component-sdk/src/context.ts:219–231  ·  view source on GitHub ↗
(
  runId: string,
  componentRef: string,
  metadata?: Partial<Omit<ExecutionContextMetadata, 'runId' | 'componentRef'>>,
)

Source from the content-addressed store, hash-verified

217}
218
219function createMetadata(
220 runId: string,
221 componentRef: string,
222 metadata?: Partial<Omit<ExecutionContextMetadata, 'runId' | 'componentRef'>>,
223): ExecutionContextMetadata {
224 const scoped: ExecutionContextMetadata = {
225 ...metadata,
226 runId,
227 componentRef,
228 };
229
230 return Object.freeze(scoped);
231}
232
233function createScopedTrace(
234 trace: ITraceService,

Callers 1

createExecutionContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected