Expand description
The Messages API implementations.
Structs§
- The content block delta chunk.
- The content block start chunk.
- The content block stop chunk.
- The delta usage of the stream.
- The image content block.
- The image content source.
- The maximum number of tokens.
- The message.
- The error type for parsing message chunk type.
- The message delta chunk.
- The message start chunk.
- The message stop chunk.
- The request body for the Messages API.
- A builder for the
MessagesRequestBody
. - The response body for the Messages API.
- An object describing metadata about the request.
- The ping chunk.
- The stop sequence.
- The stream stop information.
- System prompt.
- Amount of randomness injected into the response.
- The text content block.
- The text delta content block.
- A tool definition that can be used by assistant.
- A list of tools that can be called by the assistant.
- A result of a tool.
- The tool result content block.
- A tool use request.
- The tool use content block.
- Only sample from the top K options for each subsequent token.
- Use nucleus sampling.
- Billing and rate-limit usage.
- An external identifier for the user who is associated with the request.
Enums§
- The model that will complete your prompt.
- The content of the message.
- The content block of the message.
- The error type for the content flattening.
- The content type of the message.
- The media type of the image.
- The error type for parsing the image media type from an extension in a path.
- The source type of the image.
- The stream chunk of messages.
- The type of message chunk.
- The object type for message.
- The error type for the messages API.
- The role of the message.
- The reason that we stopped.
- The error type for the streaming messages.
- Whether to incrementally stream the response using server-sent events.
- The error type for the tool call.
Traits§
- An asynchronous tool that can be used by assistant.
- A tool that can be used by assistant.