JavaScript, Rust, and Go SDKs are under development
import { RunAgentClient } from '@runagent/sdk'; const client = new RunAgentClient({ agentId: 'your-agent-id', apiKey: process.env.RUNAGENT_API_KEY }); // Async/await const result = await client.runGeneric({ query: 'Hello, agent!' }); // Streaming const stream = client.streamGeneric({ query: 'Tell me a story' }); for await (const chunk of stream) { console.log(chunk); }
package main import ( "context" "fmt" "github.com/runagent-dev/runagent-go" ) func main() { client := runagent.NewClient("your-agent-id"). WithAPIKey("your-api-key") ctx := context.Background() resp, err := client.RunGeneric(ctx, runagent.Input{ Query: "Hello, agent!", }) if err != nil { panic(err) } fmt.Printf("Response: %v\n", resp) }
Join Beta
Get Access
Provide Feedback