first commit
This commit is contained in:
commit
91b44fcc16
27 files changed
+4104
No files matched your search
@@ -0,0 +1,27 @@
|
||||
mod agent;
|
||||
mod error;
|
||||
mod event;
|
||||
mod message;
|
||||
mod provider;
|
||||
mod tool;
|
||||
|
||||
pub use agent::{ReActAgent, ReActAgentBuilder};
|
||||
pub use error::AgentError;
|
||||
pub use message::{Message, Role, ToolCall};
|
||||
pub use provider::{ChatRequest, ChatResponse, LlmProvider};
|
||||
pub use tool::Tool;
|
||||
|
||||
pub fn add(left: u64, right: u64) -> u64 {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user