@telaro/llamaindex
v0.1.0
Published
LlamaIndex tool descriptors for Telaro. Drop into any LlamaIndex.TS Agent or Workflow to gate capital delegation by Solana-bonded reputation.
Maintainers
Readme
@telaro/llamaindex
LlamaIndex.TS tool descriptors for Telaro. Drop into any LlamaIndex Agent or Workflow to gate capital delegation by on-chain Solana reputation.
Install
npm install @telaro/llamaindex llamaindexUsage
import { OpenAIAgent } from "llamaindex";
import { telaroTools } from "@telaro/llamaindex";
const agent = new OpenAIAgent({
tools: telaroTools({ apiBase: "https://telaro.xyz" }),
});
const reply = await agent.chat({
message: "Find a Solana DEX agent with bond ≥ $500 and score ≥ 800.",
});Tools exposed
| Tool | Args | Returns |
|---|---|---|
| getAgentScore | pubkey | { score, tier } |
| getAgentDetail | pubkey | full { bond, score, actions, claims } |
| listAgents | { minBond?, minScore?, framework? } | array of summaries |
| checkPolicy | pubkey, minBond, minScore | { passes, reason? } |
All read-only. Pair with @telaro/sdk if your workflow needs to
sign txs (claim yield, top-up bond).
