style: clippy fmt

This commit is contained in:
0xMochan 2025-04-10 18:30:57 -07:00
parent 44aa8e9f13
commit fd3c4f89b7
4 changed files with 10 additions and 5 deletions

View File

@ -90,11 +90,13 @@ async fn main() -> anyhow::Result<()> {
.tool(Subtract) .tool(Subtract)
.tool(Multiply) .tool(Multiply)
.tool(Divide) .tool(Divide)
.build(), .build(),
}; };
// Prompt the agent and print the response // Prompt the agent and print the response
let result = agent.prompt("Calculate x for the equation: `20x + 23 = 400x / (1 - x)`").await?; let result = agent
.prompt("Calculate x for the equation: `20x + 23 = 400x / (1 - x)`")
.await?;
println!("\n\nReasoning Agent: {}", result); println!("\n\nReasoning Agent: {}", result);

View File

@ -107,10 +107,10 @@
//! .expect("Failed to prompt the agent"); //! .expect("Failed to prompt the agent");
//! ``` //! ```
mod agent;
mod builder; mod builder;
mod completion;
mod prompt_request; mod prompt_request;
pub use agent::Agent;
pub use builder::AgentBuilder; pub use builder::AgentBuilder;
pub use completion::Agent;
pub use prompt_request::PromptRequest; pub use prompt_request::PromptRequest;

View File

@ -1,7 +1,10 @@
use std::future::IntoFuture; use std::future::IntoFuture;
use crate::{ use crate::{
completion::{self, CompletionModel}, extractor::{ExtractionError, Extractor}, message::Message, vector_store completion::{self, CompletionModel},
extractor::{ExtractionError, Extractor},
message::Message,
vector_store,
}; };
use super::Op; use super::Op;