infinity6i6 Builders Platform
Documentation

Getting started

First call

Run your first agent and read the decision response.

1 min read

With the SDK installed, make your first call to an agent.

Using the SDK

typescript
import { Infinity6 } from "@infinity6/sdk";

const i6 = new Infinity6({ apiKey: process.env.INFINITY6_API_KEY });

const response = await i6.agents.run({
  agent: "decision-analyst",
  input: "Qual canal priorizar no próximo trimestre?",
});

console.log(response.output);

Using HTTP

bash
curl https://api.infinity6.ai/v1/agents/run \
  -H "Authorization: Bearer $INFINITY6_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agent": "decision-analyst", "input": "..."}'

Understanding the response

The response contains the final text in output and the run identifier in id.

json
{ "id": "run_123", "status": "completed", "output": "..." }