mirror of https://github.com/0xplaygrounds/rig
style: clippy fmt
This commit is contained in:
parent
44aa8e9f13
commit
fd3c4f89b7
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue