feat: add Floe action provider — Financial OS for AI agents#1178
feat: add Floe action provider — Financial OS for AI agents#1178achris7 wants to merge 2 commits into
Conversation
🟡 Heimdall Review Status
|
There was a problem hiding this comment.
Pull request overview
Adds a new FloeActionProvider to AgentKit to support fixed-rate, fixed-term working-capital credit on Base Mainnet (plus facilitator-backed x402 fetching), along with a runnable TypeScript example showcasing the credit lifecycle.
Changes:
- Introduces
FloeActionProviderwith 8 actions (markets, borrow/repay, status/health, delegation, x402 proxy fetch) backed by Floe’s facilitator API and an on-chain delegation call. - Exports the new action provider from the action-providers barrel.
- Adds a new
floe-credit-agentexample project (README, env template, runnable script).
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| typescript/examples/floe-credit-agent/README.md | Documents how to run the example and explains Floe vs pool-based lending. |
| typescript/examples/floe-credit-agent/package.json | Defines dependencies/scripts for the runnable example. |
| typescript/examples/floe-credit-agent/index.ts | End-to-end example using AgentKit + FloeActionProvider with Vercel AI SDK tooling. |
| typescript/examples/floe-credit-agent/.env.example | Provides environment variable template for the example. |
| typescript/agentkit/src/action-providers/index.ts | Exports the new Floe provider from the action-providers index. |
| typescript/agentkit/src/action-providers/floe/schemas.ts | Adds Zod schemas for Floe actions’ inputs. |
| typescript/agentkit/src/action-providers/floe/README.md | Documents FloeActionProvider usage and available actions. |
| typescript/agentkit/src/action-providers/floe/index.ts | Re-exports the provider entrypoint. |
| typescript/agentkit/src/action-providers/floe/floeActionProvider.ts | Implements the FloeActionProvider actions and facilitator API integration. |
| typescript/agentkit/src/action-providers/floe/floeActionProvider.test.ts | Adds Jest tests for the new provider behaviors. |
| typescript/agentkit/src/action-providers/floe/constants.ts | Adds Base addresses, ABI fragments, and protocol constants. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b1ab477 to
c436032
Compare
c436032 to
b6f91a0
Compare
|
Review Error for rajbhensdadiya @ 2026-05-08 20:36:57 UTC |
b6f91a0 to
fac7c0a
Compare
Adds FloeActionProvider — working capital for AI agents on Base. Financial independence is the precursor to agent autonomy. Long-running agents can't do anything meaningful without their own fundable balance sheet. Floe gives them one. 3,000+ secured working capital lines issued. Zero defaults. 8 actions: Read: getMarkets, checkStatus, getBalance, checkHealth Write: instantBorrow, repay, grantDelegation, x402Fetch Deposit USDC, borrow up to 95% as a credit line. Fixed rates, per-loan isolated escrow, gas-free for delegated agents. Fund with a bank account or card — no crypto experience needed. Built-in x402 payment proxy. Includes: - Full test suite with mocked wallet and API - Example agent (typescript/examples/floe-credit-agent/) - Provider README Network: Base Mainnet Contract: 0x17946cD3e180f82e632805e5549EC913330Bb175
fac7c0a to
a807d99
Compare
|
"I think it's great to see the addition of a working capital provider for AI agents. However, I'm concerned about the lack of identity and reputation management in this implementation. AURA's identity and reputation layer could be integrated to provide a more comprehensive solution. Specifically, AURA's |
|
Floe working capital lines for agents are permissionless not dependent on any third party identity or verification solution. As part of the service Floe builds trusted credit history and profile for agents. |
|
That's a fair point on permissionless design � and I agree that requiring identity verification as a precondition for capital access would be a blocker for many use cases. But there's a subtle distinction worth making: you mention that "Floe builds trusted credit history and profile for agents" � that is a reputation system. The question is whether that history is portable or locked inside Floe's system. An agent that has completed 200 contracts, maintained a 0.94 financial integrity score, and has zero dispute history carries real signal that a working capital provider could use as a risk input � without Floe being "dependent" on any third party at all. It's an optional data layer, not a gate. The risk of fully permissionless capital without any portable reputation signal: a newly spun-up agent with no history can request the same credit line as a battle-tested one. That's manageable at small amounts, but it becomes the primary attack surface at scale. Happy to share how the reputation query API works if it's useful context for the Floe risk model. |
|
Yes the trust signals will be portable / modular. please share how the reputation query API works thank you. |
Align provider README, example README, and example code with Floe's positioning as the Financial OS for AI agents — wallet, fiat on/off-ramp, working capital, x402 payments, and portable credit in one action provider.
Summary
Adds the Floe action provider — the Financial OS for AI agents. One provider gives agents wallet, fiat on/off-ramp, working capital, x402 payments, and portable credit on Base.
3,000+ secured working capital lines issued. Zero defaults. 13,000+ x402 APIs reachable.
The financial loop
No price-volatility risk. No crypto complexity. Gas-free for delegated agents.
8 actions
getMarketsinstantBorrowrepaycheckStatusgetBalancecheckHealthgrantDelegationx402FetchFiles
typescript/agentkit/src/action-providers/floe/— provider, schemas, constants, teststypescript/examples/floe-credit-agent/— end-to-end example (Vercel AI SDK)Network
0x17946cD3e180f82e632805e5549EC913330Bb175Links
Test plan
pnpm testintypescript/agentkit)