Docs.rs
lellm-graph-0.3.0
lellm-graph 0.3.0
Docs.rs crate page
MIT
18 June 2026
Links
Repository
crates.io
Source
Owners
penghcn
Dependencies
async-trait ^0.1
normal
indexmap ^2
normal
lellm-core ^0.3
normal
serde ^1
normal
serde_json ^1
normal
thiserror ^2
normal
tokio ^1
normal
tracing ^0.1
normal
uuid ^1
normal
Versions
51.17%
of the crate is documented
Go to latest version
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
State
lellm_
graph
0.3.0
State
Aliased Type
Trait Implementations
StateExt
StateKeyExt
In lellm_
graph::
state
lellm_graph
::
state
Type Alias
State
Copy item path
Source
pub type State =
HashMap
<
String
,
Value
>;
Expand description
Graph 共享状态。
Aliased Type
§
pub struct State {
/* private fields */
}
Trait Implementations
§
Source
§
impl
StateExt
for
State
Source
§
fn
get_str
(&self, key: &
str
) ->
Option
<&
str
>
Source
§
fn
get_bool
(&self, key: &
str
) ->
Option
<
bool
>
Source
§
fn
get_u64
(&self, key: &
str
) ->
Option
<
u64
>
Source
§
fn
get_i64
(&self, key: &
str
) ->
Option
<
i64
>
Source
§
fn
get_f64
(&self, key: &
str
) ->
Option
<
f64
>
Source
§
fn
get_json
<T>(&self, key: &
str
) ->
Result
<T,
StateError
>
where T:
DeserializeOwned
,
Source
§
fn
require
<T>(&self, key: &
str
) ->
Result
<T,
StateError
>
where T:
DeserializeOwned
,
Source
§
fn
set
<T>(&mut self, key: impl
Into
<
String
>, value: T)
where T:
Serialize
,
Source
§
fn
remove
(&mut self, key: &
str
) ->
Option
<
Value
>
Source
§
fn
contains
(&self, key: &
str
) ->
bool
Source
§
fn
reduce
( &mut self, key: &
str
, value:
Value
, reducer: &
StateReducer
, ) ->
Result
<
()
,
String
>
Source
§
fn
append_array
(&mut self, key: &
str
, items:
Value
) ->
Result
<
()
,
String
>
Source
§
impl
StateKeyExt
for
State
Source
§
fn
set_sk
<T>(&mut self, key: &
StateKey
<T>, value: T)
where T:
Serialize
,
Source
§
fn
get_sk
<T>(&self, key: &
StateKey
<T>) ->
Option
<T>
where T:
DeserializeOwned
,
Source
§
fn
require_sk
<T>(&self, key: &
StateKey
<T>) ->
Result
<T,
StateError
>
where T:
DeserializeOwned
,
Source
§
fn
contains_sk
<T>(&self, key: &
StateKey
<T>) ->
bool
Source
§
fn
remove_sk
<T>(&mut self, key: &
StateKey
<T>) ->
Option
<
Value
>