Expand description
Provider-neutral JSON wire codecs and configuration builders shared across
foreign-language bindings (merry-py, merry-uniffi).
Enums§
- Binding
Provider Build Error - Distinguishes configuration validation failures, disabled optional features, and provider construction failures when constructing providers across FFI.
Functions§
- build_
anthropic_ provider - Fail-closed stub when the
anthropicfeature is disabled. - build_
compaction_ policy - Builds a validated
CitationCompactionPolicyfrom optional overrides. - build_
openai_ compatible_ provider - Builds an OpenAI-compatible
ConfiguredModelProvider, failing closed when theopenai-compatiblefeature is disabled. - compaction_
outcome_ to_ json - Serializes a
CompactionOutcomeinto JSON. - interactive_
input_ item_ to_ json - Serializes an
InteractiveInputIteminto JSON. - interactive_
input_ snapshot_ to_ json - Serializes an
InteractiveInputSnapshotinto JSON. - message_
to_ json - Serializes an
OwnedAgentRunMessageinto the tagged JSON envelope used bymerry-py. - parse_
batch_ id - Validates and parses a
ToolCallBatchIdfrom FFI input. - parse_
compaction_ config - Parses a JSON
CompactionConfigpayload. - parse_
compaction_ policy - Parses a JSON
CitationCompactionPolicyoverride payload. - parse_
hook_ decision - Parses and validates a JSON
HookDecisionpayload. - parse_
hook_ invocation_ id - Parses a
HookInvocationIdfrom FFI input. - parse_
hook_ subscriptions - Parses a JSON
HookSubscriptionspayload. - parse_
input_ schema - Validates and parses a JSON Schema string into a
ToolInputSchema. - parse_
interactive_ settings_ update - Parses a tri-state JSON
InteractiveSettingsUpdatepayload. - parse_
tool_ results - Parses a JSON array of tool invocation results submitted across FFI.
- run_
result_ to_ json - Serializes a terminal
RunResultinto the shared provider-neutral wire JSON format. - submission_
to_ json - Serializes a
ToolInvocationSubmissioninto JSON.