Files
baibot-withmcp/src/agent/provider/mod.rs
Slavi Pantaleev 2a5a2d6a4d Add support for prompt variables (bot name, date/time, model id)
Fixes https://github.com/etkecc/baibot/issues/10

This also includes them in the default prompts (for newly-created agents),
so that people can get a better experience out of the box.
2024-09-21 14:28:38 +00:00

26 lines
573 B
Rust

pub mod anthropic;
mod config;
mod controller;
mod entity;
pub(super) mod groq;
pub mod localai;
pub(super) mod mistral;
pub mod ollama;
pub mod openai;
pub mod openai_compat;
pub(super) mod openrouter;
pub(super) mod togetherai;
fn default_temperature() -> f32 {
1.0
}
pub use controller::{ControllerTrait, ControllerType};
pub use config::ConfigTrait;
pub use entity::{
AgentProvider, AgentProviderInfo, ImageGenerationParams, PingResult, SpeechToTextParams,
SpeechToTextResult, TextGenerationParams, TextGenerationPromptVariables, TextToSpeechParams,
};