| Crates.io | praxis-types |
| lib.rs | praxis-types |
| version | 0.1.0 |
| created_at | 2025-11-09 00:20:44.401868+00 |
| updated_at | 2025-11-09 00:20:44.401868+00 |
| description | Core types and event model for Praxis AI agent framework |
| homepage | https://github.com/matheussilva/praxis |
| repository | https://github.com/matheussilva/praxis |
| max_upload_size | |
| id | 1923425 |
| size | 54,432 |
Core types and event model for the Praxis AI agent framework.
This crate provides the foundational types used across all Praxis crates:
StreamEvent enum for real-time streamingStreamEvent[dependencies]
praxis-types = "0.1"
The core event type for streaming AI agent responses:
use praxis_types::StreamEvent;
match event {
StreamEvent::Message { content, .. } => {
println!("Message: {}", content);
}
StreamEvent::Reasoning { content, .. } => {
println!("Reasoning: {}", content);
}
StreamEvent::ToolCall { name, arguments, .. } => {
println!("Calling tool: {} with {}", name, arguments);
}
StreamEvent::ToolResult { result, .. } => {
println!("Tool result: {}", result);
}
StreamEvent::Done { .. } => {
println!("Stream complete");
}
}
use praxis_types::Config;
let config = Config {
model: "gpt-4o".to_string(),
temperature: 0.7,
max_tokens: Some(1000),
};
Praxis uses a canonical event model for streaming:
This unified event model works across all components (LLM, Graph, API).
This crate is part of the Praxis AI Agent Framework:
MIT