Creates a structured completion resource.
API
declare function structuredCompletionResource<
Input,
Schema extends s.HashbrownType ,
Output extends
s.Infer <Schema> = s.Infer <Schema>,
>(
options: StructuredCompletionResourceOptions <
Input,
Schema
>,
): StructuredCompletionResourceRef <Output>;structuredCompletionResource
StructuredCompletionResourceRef<Output>@paramoptions:StructuredCompletionResourceOptions<Input, Schema>The options for the structured completion resource.
@typeInput@typeSchemas.HashbrownType@typeOutputs.Infer<Schema>@returnsStructuredCompletionResourceRef<Output>