Files

1 line
1.5 KiB
JSON

{"repo": "bridgetxie/hypermind-ai", "files": {"alith-main/crates/alith/examples/agent_deepseek.rs": {"5532ac01b023f7676f507b3cf415f86d77bd6ce6": {"t": 1785746239.8378608, "n": 563, "h": "443bf7528ee5003e", "c": "use alith::{Agent, Chat, LLM};\n\n#[tokio::main]\nasync fn main() -> Result<(), anyhow::Error> {\n let model = LLM::openai_compatible_model(\n \"<Your API Key>\", // Replace with your api key or read it from env.\n \"api.deepseek.com\",\n \"deepseek-chat\", // or `deepseek-reasoner` for DeepSeek R1\n )?;\n let agent = Agent::new(\"simple agent\", model)\n .preamble(\"You are a comedian here to entertain the user using humour and jokes.\");\n let response = agent.prompt(\"Entertain me!\").await?;\n\n println!(\"{}\", response);\n\n Ok(())\n}\n"}, "c8c080a1c85be2637d59393cd81d6698d54f92d9": {"t": 1785760968.2155504, "n": 563, "h": "443bf7528ee5003e", "c": "use alith::{Agent, Chat, LLM};\n\n#[tokio::main]\nasync fn main() -> Result<(), anyhow::Error> {\n let model = LLM::openai_compatible_model(\n \"<Your API Key>\", // Replace with your api key or read it from env.\n \"api.deepseek.com\",\n \"deepseek-chat\", // or `deepseek-reasoner` for DeepSeek R1\n )?;\n let agent = Agent::new(\"simple agent\", model)\n .preamble(\"You are a comedian here to entertain the user using humour and jokes.\");\n let response = agent.prompt(\"Entertain me!\").await?;\n\n println!(\"{}\", response);\n\n Ok(())\n}\n"}}}}