hashbrown

StructuredChatResourceOptions

Options for the structured chat resource.

API

interface StructuredChatResourceOptions<Schema extends s.HashbrownType, Tools extends Chat.AnyTool, Output extends s.Infer<Schema> = s.Infer<Schema>>  {
}
StructuredChatResourceOptions
@typeSchema
s.HashbrownType
@typeTools
Chat.AnyTool
@typeOutput
s.Infer<Schema>
apiUrl
string

The API URL to use for the structured chat resource.

debounce
number

The debounce time for the structured chat resource.

debugName
string

The debug name for the structured chat resource.

messages
Chat.Message<Output, Tools>[]

The initial messages for the structured chat resource.

model
KnownModelIds | Signal<KnownModelIds>

The model to use for the structured chat resource.

retries
number

The number of retries for the structured chat resource.

schema
Schema

The schema to use for the structured chat resource.

system
string | Signal<string>

The system prompt to use for the structured chat resource.

tools
Tools[]

The tools to use for the structured chat resource.