Docs.rs
llm-core-0.11.0
llm-core 0.11.0
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
tlkahn
Dependencies
async-trait ^0.1
normal
chrono ^0.4
normal
fastrand ^2
normal
futures ^0.3
normal
serde ^1
normal
serde_json ^1
normal
thiserror ^2
normal
toml ^0.8
normal
temp-env ^0.3
dev
tempfile ^3
dev
tokio ^1
dev
Versions
36.77%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
collect_usage
llm_
core
0.11.0
In llm_
core::
stream
llm_core
::
stream
Function
collect_
usage
Copy item path
Source
pub fn collect_usage(chunks: &[
Chunk
]) ->
Option
<
Usage
>
Expand description
Extract the last Usage chunk, if any.