hashbrown

structuredCompletionResource

Creates a structured completion resource.

API

declare function structuredCompletionResource<
  Input,
  Schema extends  s.SchemaOutput ,
  Output extends  s.InferSchemaOutput <Schema> =
     s.InferSchemaOutput <Schema>,
  State = unknown,
>(
  options:  StructuredCompletionResourceOptions <
    Input,
    Schema,
    State
  >,
):  StructuredCompletionResourceRef <Output, State>;
structuredCompletionResource
StructuredCompletionResourceRef<Output, State>
@paramoptions:
StructuredCompletionResourceOptions<Input, Schema, State>

The options for the structured completion resource.

@typeInput
@typeSchema
s.SchemaOutput
@typeOutput
s.InferSchemaOutput<Schema>
@typeState
@returns
StructuredCompletionResourceRef<Output, State>