MCPcopy Create free account
hub / github.com/apache/maka / withoutPromptProviderOptions

Function withoutPromptProviderOptions

packages/runtime/src/request-shape.ts:323–333  ·  view source on GitHub ↗
(
  value: unknown,
  identities: ProtocolIndependentRequestIdentities,
)

Source from the content-addressed store, hash-verified

321}
322
323function withoutPromptProviderOptions(
324 value: unknown,
325 identities: ProtocolIndependentRequestIdentities,
326): unknown {
327 const message = withoutObjectProviderOptions(value);
328 if (!isObjectLike(message) || !Array.isArray(message.content)) return message;
329 return {
330 ...message,
331 content: message.content.map((part) => withoutPromptPartProviderOptions(part, identities)),
332 };
333}
334
335function withoutPromptPartProviderOptions(
336 value: unknown,

Callers 1

Calls 3

isObjectLikeFunction · 0.85

Tested by

no test coverage detected