Expand description
Common types shared across multiple xAI API endpoints.
Structs§
- Annotation
- Annotation on text output.
- ApiKey
- API key information.
- Complete
Request - (Legacy) Anthropic compatible complete request on
/v1/completeendpoint. - Complete
Response - (Legacy) Anthropic compatible complete response on
/v1/completeendpoint. - Content
Part - A part of content in a message.
- Debug
Output - Debug output. Only available to trusted testers.
- Documents
Source DocumentsSourcedefines the source of documents to search over.- FileRef
- File reference for file attachments.
- Image
Url - Image URL object of image prompt.
- Incomplete
Details - Details about why a response is incomplete.
- Message
Metadata - Message metadata.
- Sample
Choice - A choice in a sample response.
- Sample
Request - (Legacy) Request for
/v1/completionsendpoint. - Sample
Response - (Legacy) Response for
/v1/completionsendpoint. - Start
Deferred Chat Response - A unique request ID for deferred chat response.
- Stream
Options - Options available when using streaming response.
- System
Message Part - A part of system message content.
Enums§
- Content
- Content of each chat message.
- Ranking
Metric - Deprecated: Metric now comes from collection creation.
- Response
Format - Response format parameter for structured outputs.
- Sample
Content - Sample content input.
- System
Message Content - System message content.