Update agent_with_huggingface.rs (#401)

This commit is contained in:
Skylar Ray 2025-04-16 16:34:51 +03:00 committed by GitHub
parent f4214540a5
commit 522d3f6ba1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ use rig::{
use serde::{Deserialize, Serialize};
use serde_json::json;
/// Runs 4 agents based on deepseek R1 (dervived from the other examples)
/// Runs 4 agents based on deepseek R1 (derived from the other examples)
#[tokio::main]
async fn main() -> Result<(), anyhow::Error> {
println!("Running basic agent with deepseek R1");
@ -117,7 +117,7 @@ async fn context() -> Result<(), anyhow::Error> {
// Create an agent with multiple context documents
let agent = AgentBuilder::new(model)
.context("Definition of a *flurbo*: A flurbo is a green alien that lives on cold planets")
.context("Definition of a *glarb-glarb*: A glarb-glarb is a ancient tool used by the ancestors of the inhabitants of planet Jiro to farm the land.")
.context("Definition of a *glarb-glarb*: A glarb-glarb is an ancient tool used by the ancestors of the inhabitants of planet Jiro to farm the land.")
.context("Definition of a *linglingdong*: A term used by inhabitants of the far side of the moon to describe humans.")
.build();