Sycophant.ParamDefs (sycophant v0.4.2)

Copy Markdown

Shared Zoi schema fragments for LLM parameters.

Returns a map of common parameter definitions suitable for composing into Zoi.object/1 schemas. Wire protocol adapters can merge these with protocol-specific params before building their validation schema.

Summary

Functions

Returns a map of shared parameter Zoi schemas keyed by atom name.

Functions

shared()

@spec shared() :: map()

Returns a map of shared parameter Zoi schemas keyed by atom name.

All params are optional. The map can be passed directly to Zoi.object/1 or merged with wire-specific extras via Map.merge/2.