Apprentice-lib is a library that allows to create agent applications. It allows to create a chat with an LLM and use tools/functions.
Features
- several providers
- light-weight
- configurable
- extensible
Providers
- Anthropic (Claude models)
- OpeanAI (GPT models)
- Google Cloud Platform (Gemini)
Examples
use ;
use ToolChoice;
use get_reqwest_client;
use ModelProvider;
use Config;
let config = new;
let reqwest_client = get_reqwest_client.expect;
let mut chat = get_llm_chat.expect;
chat.set_system_prompt;
let user_message = text;
let response = chat.get_inference.expect;
for message in response.iter