Skip to content

Commit cb5815e

Browse files
authored
Merge pull request #29 from githubnext/rig-sampler/09-classify-issue-9c2dbdd1fbcf5396
2 parents 7318254 + 2152e85 commit cb5815e

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎skills/rig/rig.ts‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* s.object(props,desc?) ObjectSchema; s.optional(inner) marks field optional; use for fixed-key shapes
3232
* s.record(valSchema,desc?) RecordSchema keyed by string; use for open-ended key→value maps
3333
* s.enum(...values|values,desc) EnumSchema
34-
* s.unknown() unconstrained JSON
34+
* s.unknown unconstrained JSON; call as value or s.unknown("description")
3535
* p`...` PromptBuilder template tag; interpolates PromptIntent|string|PromptBuilder
3636
* p.bash(cmd,opts?) PromptIntent bash execution declaration (not run in-process)
3737
* p.read(path,opts?) PromptIntent file read declaration
@@ -200,7 +200,14 @@ export const s = {
200200
boolean: createTypedPrimitiveSchema<BooleanSchema>("boolean"),
201201
/** Schema for the JSON `null` literal. Call as `s.null` or `s.null("description")`. */
202202
null: createTypedPrimitiveSchema<NullSchema>("null"),
203-
/** Schema for an unconstrained JSON value. Serializes to an empty schema object. */
203+
/**
204+
* Schema for an unconstrained JSON value. Serializes to an empty schema object.
205+
* Call as `s.unknown` or `s.unknown("description")`.
206+
*
207+
* @example
208+
* s.unknown // any JSON value
209+
* s.unknown("raw API payload") // any JSON value with description
210+
*/
204211
unknown: createUnknownSchema(),
205212
/**
206213
* Schema for a homogeneous array.

0 commit comments

Comments
 (0)