OptionalfilterFilter the files used for retrieval by metadata, such as { category: 'returns' }.
OptionalincludeIf image-related context snippets are returned, this field determines whether or not they should include base64 image data. If false, only the image captions are returned. Only available when multimodal=true.
OptionalmessagesThe list of messages to use for generating the context. Exactly one of query or messages should be provided.
OptionalmultimodalWhether or not to retrieve image-related context snippets. If false, only text snippets are returned.
OptionalqueryThe query that is used to generate the context. Exactly one of query or messages should be provided.
OptionalsnippetThe maximum size of each context snippet, in tokens; omit to use the service default.
OptionaltopThe maximum number of context snippets to return; omit to use the service default.
Parameters to retrieve context from an assistant.
Example