codex-sdk-rs 0.1.0

Rust SDK for the OpenAI Codex app server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use codex_sdk_rs::{AsyncCodex, CodexConfig, Result};

#[tokio::main]
async fn main() -> Result<()> {
    let codex = AsyncCodex::connect(CodexConfig::default()).await?;
    let thread = codex.thread_start().await?;
    let result = thread
        .run("Explain this repository in three bullets.")
        .await?;
    println!("{}", result.final_response.unwrap_or_default());
    codex.close().await
}