Skip to main content

Crate decompute_core

Crate decompute_core 

Source
Expand description

Transport-neutral model, chat, and tool-call types shared by Decompute runtimes.

Structs§

ChatMessage
FunctionCall
FunctionDefinition
HardwareInfo
ModelFile
ModelManifest
SessionCacheConfig
Configuration shared by the worker and the in-process inference runtime. Durations are represented as milliseconds so this type remains transport and runtime neutral.
SessionCacheStats
Process-local cumulative cache counters. The runtime updates these without retaining session identifiers, prompts, or token contents.
ToolCall
ToolDefinition

Enums§

Acceleration
ChatRole
FinishReason
SessionCacheMiss
ToolHistoryError
ToolType

Functions§

validate_tool_history
Validates the assistant/tool message protocol before a message history is rendered into a model prompt. Tool implementations remain outside the worker; this only checks that client-supplied results match model requests.