Skip to main content

Crate dk_agent_sdk

Crate dk_agent_sdk 

Source
Expand description

§dk-agent-sdk

Typed Rust client for the dkod Agent Protocol.

This crate wraps the tonic-generated gRPC client from dk-protocol and provides a clean, session-oriented API for AI agents to interact with a dkod server.

§Quick start

use dk_agent_sdk::{AgentClient, Change, Depth};

let mut client = AgentClient::connect("http://localhost:50051", "my-token").await?;
let mut session = client.init("my-repo", "fix auth bug").await?;

let ctx = session.context("auth middleware", Depth::Full, 4000).await?;
session.submit(vec![Change::modify("src/auth.rs", "// fixed")]).await?;
let steps = session.verify().await?;
let result = session.merge("fix: auth bypass").await?;

Re-exports§

pub use client::AgentClient;
pub use error::Result;
pub use error::SdkError;
pub use session::Session;
pub use types::*;

Modules§

client
error
session
tools
Programmatic Tool Calling interface for the dkod Agent Protocol.
types