lellm-core 0.1.0

Core types for LeLLM — Message, ChatRequest, LlmError
Documentation
  • Coverage
  • 33.33%
    33 out of 99 items documented0 out of 27 items with examples
  • Size
  • Source code size: 16.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • penghcn

lellm-core — 协议对象,零运行时依赖。

定义 LLM 交互的核心数据结构:Message, ContentBlock, ChatRequest, ChatResponse, ToolCall, ToolDefinition, TokenUsage, LlmError 等。

本 crate 是纯粹的协议层(Protocol Crate),类似 openai-types / anthropic-types 的统一抽象。Provider、Agent、Graph 都依赖于此,但它不依赖任何运行时。