| Crates.io | radkit_cloud |
| lib.rs | radkit_cloud |
| version | 0.0.2 |
| created_at | 2025-12-13 18:31:11.21283+00 |
| updated_at | 2025-12-15 02:12:59.668503+00 |
| description | Radkit paid runtime |
| homepage | https://radkit.rs |
| repository | https://github.com/agents-sh/radkit |
| max_upload_size | |
| id | 1983279 |
| size | 59,807 |
This crate is a minimal stub that compiles in place of the paid agents.sh cloud runtime.
PaidRuntime type that matches the public API surface expected by consumers.radkit when you depend on the runtime feature.serve() is called outside the agents.sh cloud environment, it immediately returns an error: ServerStartFailed("This runtime only runs inside the agents.sh cloud environment").Add the stub to your workspace or pull it in as a dependency while developing locally against the public API of the paid runtime. Calls to serve() will fail fast, making it clear that cloud-only functionality is not available here.
use radkit::agent::{Agent, AgentDefinition};
use radkit::models::providers::AnthropicLlm;
use radkit_cloud::PaidRuntime;
fn agent() -> AgentDefinition {
Agent::builder().with_name("HR Agent").build()
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Use whatever LLM your project expects; it is never called by this stub.
let llm = AnthropicLlm::from_env("claude-3-5-sonnet")?;
// Running locally will fail immediately with the cloud-only error.
PaidRuntime::new(agent(), llm).serve().await?;
Ok(())
}
cargo check
serve() is not built (matches the upstream radkit conditional).***