Skip to main content

Module shared

Module shared 

Source
Expand description

Shared wire-format types used across all provider modules.

These types are not tied to any specific provider. They live here so that request.rs (the provider-agnostic request layer) and each provider’s raw/ module can all reference them without creating circular dependencies or leaking DeepSeek-specific internals.

Structs§

FunctionDefinition
The function definition inside a ToolDefinition.
FunctionName
ResponseFormat
OpenAI-style response_format field.
ToolChoiceFunction
Object form: { "type": "function", "function": { "name": "..." } }.
ToolDefinition
A tool (function) that the model may call.

Enums§

ResponseFormatKind
ToolChoice
OpenAI-style tool_choice field (serialised as either a string or an object).
ToolChoiceMode
String variants of tool_choice.
ToolKind
The kind of a tool. Only function is currently defined.