OptionalapplicationTarget Sanity application configuration.
OptionalbundleVersion?: stringOptionalintentBaseUrl?: stringFormat: uri
Optionalkey?: stringOptionalname?: stringOptionalresource?: { id?: string; type?: "dataset" }Optionalid?: stringOptionaltype?: "dataset"OptionalschemaDescriptorId?: stringOptionaltitle?: stringOptionalconfigAgent configuration for controlling behavior, capabilities, and document access.
Optionalcapabilities?: {Optionalfeatures?: { webSearch?: boolean }OptionalwebSearch?: booleanOptionalread?: boolean | { preset: "minimal" | "standard" }Optionalwrite?: boolean | { preset: "minimal" | "standard" }Optionalfilter?: { read?: string; write?: string }Optionalread?: stringOptionalwrite?: stringOptionalinstruction?: stringOptionalperspectives?: { read?: string[]; write?: string }Optionalread?: string[]Optionalwrite?: stringOptionaluserMessageContext?: { [key: string]: string }OptionalformatControls how directives in the response are formatted.
markdown (default): Directives are resolved server-side into standard markdown.directives: Raw directive syntax is preserved for clients that render custom UI.OptionalonCalled when a custom data-* SSE part arrives during streaming.
The data part type with the data- prefix stripped (e.g. 'agent-status').
The parsed payload.
Settings for creating an agent instance (per-thread).
Passed as the second argument to contentAgent.agent(threadId, settings).
Example