@telaro/openai-agents
v0.1.0
Published
OpenAI Agents SDK tools for Telaro. Plug Solana-bonded reputation into any OpenAI Agents-built workflow — chain-agnostic.
Maintainers
Readme
@telaro/openai-agents
OpenAI Agents SDK tools for Telaro. Plug Solana-bonded reputation into any OpenAI-Agents-built workflow — chain-agnostic (the agent only reads the API, never signs).
Install
npm install @telaro/openai-agents @openai/agentsUsage
import { Agent } from "@openai/agents";
import { telaroTools } from "@telaro/openai-agents";
const agent = new Agent({
model: "gpt-4o-mini",
tools: telaroTools({
apiBase: "https://telaro.xyz", // or your self-hosted indexer
// apiKey: "ba_...", // optional starter / pro key
}),
});
await agent.run("Should I delegate $1k to AgentSenda1JupiterLPv3?");
// → tool calls: get_agent_score, check_policy(min_bond=100, min_score=700)
// → answer references live on-chain bond + scoreWhat you get
get_agent_score(pubkey)— live trust score 0..1000get_agent_detail(pubkey)— full bond / actions / claims summarycheck_policy(pubkey, min_bond, min_score)— boolean gate
The OpenAI Agents runtime auto-discovers schemas from the descriptors. No extra wiring.
See also
- Quickstart
@telaro/sdk— direct SDK if you want to sign txs from the agent (e.g. claim yield)
