macro_rules! core_state_fields {
() => { ... };
}Expand description
Embeds the standard CoreState fields into a state struct.
These fields are required for any state that implements CoreState.
The #[core] attribute signals to #[derive(State)] that it should
generate the CoreState trait impl.
§Usage
ⓘ
use pe_core::core_state_fields;
#[derive(State, Clone, Debug, Serialize, Deserialize)]
struct MyAgentState {
core_state_fields!(),
// Your custom fields here
topic: String,
}§Expands to
ⓘ
#[core]
messages: Vec<Message>,
#[core]
iterations: u32,
#[core]
thread_id: String,
#[core]
context: ExecutionContext,