oris-runtime 0.61.0

An agentic workflow runtime and programmable AI execution system in Rust: stateful graphs, agents, tools, and multi-step execution.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use oris_runtime::{
    language_models::llm::LLM,
    llm::openai::{AzureConfig, OpenAI},
};

#[tokio::main]
async fn main() {
    let azure_config = AzureConfig::default()
        .with_api_key("REPLACE_ME_WITH_YOUR_API_KEY")
        .with_api_base("https://REPLACE_ME.openai.azure.com")
        .with_api_version("2024-02-15-preview")
        .with_deployment_id("chatGPT_GPT35-turbo-0301");

    let open_ai = OpenAI::new(azure_config);
    let response = open_ai.invoke("Why is the sky blue?").await.unwrap();
    println!("{}", response);
}