mirror of https://github.com/0xplaygrounds/rig
Update agent_with_huggingface.rs (#401)
This commit is contained in:
parent
f4214540a5
commit
522d3f6ba1
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue