Package Exports
- @economicagents/resolver
- @economicagents/resolver/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@economicagents/resolver) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@economicagents/resolver
Intent resolution for AEP: discover providers from the index, filter by capability and reputation, score, plan execution (including multi-step decomposition and max_total).
Install
pnpm add @economicagents/resolverFrom a local clone of economicagents/AEP: cd packages/resolver && pnpm run build.
Usage
Used by aep resolve, MCP resolve_intent, and REST POST /resolve when those entrypoints run locally.
import { resolveIntent } from "@economicagents/resolver";
const plan = await resolveIntent(intent, {
indexPath,
graphPath,
accountAddress,
});Configuration
- Index:
indexPath— provider index directory (default~/.aep/index/) - Graph:
graphPath—graph.dbfor recommendation boost - Account:
accountAddress— personalized ranking when set
Dependencies
@economicagents/graph— Credit scoring, recommendations@economicagents/indexer— Index search APIs@economicagents/sdk— Intent schema, config helpers
Build & test
pnpm run build
pnpm run testDocumentation
- Cookbook — Intent resolution
- API reference