Skip to content

docs(examples): agents-of-all-shapes — any framework → one Tangle Intelligence pipe (no sandbox)#72

Merged
tangletools merged 2 commits into
mainfrom
examples/agents-of-all-shapes
May 28, 2026
Merged

docs(examples): agents-of-all-shapes — any framework → one Tangle Intelligence pipe (no sandbox)#72
tangletools merged 2 commits into
mainfrom
examples/agents-of-all-shapes

Conversation

@tangletools
Copy link
Copy Markdown
Contributor

Summary

A QA-verified showcase proving Tangle Intelligence works with any agent, not just our sandbox. Five shapes — Tangle runtime, OpenAI-compatible router (tcloud / OpenRouter), Mastra, Claude Agent SDK, Python agno — all converge on the same canonical OTel GenAI spans and the same in-process engine:

agent → OTel GenAI spans → fromOtelSpans → analyzeRuns → InsightReport

No sandbox, no deploy, no ingest server — the analysis runs in-process.

What's here

  • shared/intelligence.ts — the entire integration surface: toInsightReport(spans) (in-process QA path) + shipToTangleOtlp(spans) (optional hosted path), over standard gen_ai.* OTel attributes + score.
  • shapes.ts — 4 TypeScript shapes as deterministic batches (verifiable in CI with no LLM key) with the exact live wiring documented per framework.
  • python-agno/agno_to_intelligence.py — runnable agno → OTLP/HTTP script.
  • run.ts — merges all shapes → fleet InsightReport + per-shape breakdown.
  • tests/agents-of-all-shapes.test.ts — proves each shape → a real InsightReport, cross-framework fleet aggregation, and real cost derived from gen_ai.usage.cost_usd.

Why

The integration point is the OTel wire, not the Tangle SDK or sandbox. Any team with agent traces gets the full decision packet without adopting our execution stack — exactly the pilot customer's "we won't use your sandbox but will use the libraries" path.

Test plan

  • pnpm test -- tests/agents-of-all-shapes.test.ts (3/3); full suite 377/377
  • pnpm typecheck clean
  • biome check src tests examples clean
  • Live runs (Mastra / Claude SDK / agno) need their dep + an LLM key — the wiring is documented; the intelligence path is what's verified here.

drewstone added 2 commits May 28, 2026 09:08
…elligence pipe (no sandbox)

A QA-verified showcase that Tangle Intelligence works with ANY agent, not just
our sandbox. Tangle runtime, OpenAI-compatible router (tcloud/OpenRouter),
Mastra, Claude Agent SDK, and a Python agno agent all converge on the same
canonical OTel GenAI spans → fromOtelSpans → analyzeRuns → InsightReport,
computed in-process (no sandbox, no deploy, no server).

- shared/intelligence.ts: the one contract — toInsightReport(spans) +
  shipToTangleOtlp(spans) over standard gen_ai.* OTel attributes + score
- shapes.ts: 4 TS shapes as deterministic batches (CI-verifiable, no key) with
  the exact live wiring documented per framework
- python-agno/: runnable agno → OTLP script
- run.ts: merges all shapes → fleet InsightReport + per-shape breakdown
- tests/agents-of-all-shapes.test.ts: proves each shape → real InsightReport +
  cross-framework fleet aggregation + real cost from gen_ai.usage.cost_usd

377/377, typecheck + biome clean.
@tangletools tangletools merged commit 65a21b0 into main May 28, 2026
1 check passed
@tangletools tangletools deleted the examples/agents-of-all-shapes branch May 28, 2026 15:12
tangletools pushed a commit that referenced this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants