mirror of https://github.com/0xplaygrounds/rig
Update agent_with_huggingface.rs
This commit is contained in:
parent
f4214540a5
commit
cab39b3067
|
@ -10,7 +10,7 @@ use rig::{
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::json;
|
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]
|
#[tokio::main]
|
||||||
async fn main() -> Result<(), anyhow::Error> {
|
async fn main() -> Result<(), anyhow::Error> {
|
||||||
println!("Running basic agent with deepseek R1");
|
println!("Running basic agent with deepseek R1");
|
||||||
|
@ -117,7 +117,7 @@ async fn context() -> Result<(), anyhow::Error> {
|
||||||
// Create an agent with multiple context documents
|
// Create an agent with multiple context documents
|
||||||
let agent = AgentBuilder::new(model)
|
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 *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.")
|
.context("Definition of a *linglingdong*: A term used by inhabitants of the far side of the moon to describe humans.")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue