MCPcopy Create free account
hub / github.com/anomalyco/opencode / optionalNull

Function optionalNull

packages/llm/src/protocols/shared.ts:25–25  ·  view source on GitHub ↗
(schema: S)

Source from the content-addressed store, hash-verified

23export const JsonObject = Schema.Record(Schema.String, Schema.Unknown)
24export const optionalArray = <const S extends Schema.Top>(schema: S) => Schema.optional(Schema.Array(schema))
25export const optionalNull = <const S extends Schema.Top>(schema: S) => Schema.optional(Schema.NullOr(schema))
26
27/**
28 * Streaming tool-call accumulator. Adapters that build a tool call across

Callers 3

openai-chat.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected