npm.io
0.2.1 • Published 5d ago

@agentproto/manifest

Licence
Apache-2.0
Version
0.2.1
Deps
2
Size
47 kB
Vulns
0
Weekly
0
Stars
3

@agentproto/manifest

Generic verbs for AIP doctypes. See AIP-1.

import { createVerbs } from "@agentproto/manifest"

const verbs = createVerbs({
  name: "tool",
  aip: 14,
  schemaLiteral: "agentproto/tool/v1",
  pathOf: (h) => `${h.id}/TOOL.md`,
  define: defineTool,
  parse: parseToolManifest,
})

await verbs.create({ id: "echo", ... }, { dir: "tools" })
const echo = await verbs.load("tools/echo/TOOL.md")
const all = await verbs.list("tools")
await verbs.update("tools/echo/TOOL.md", (p) => ({ ...p, version: "1.0.1" }))
const resolved = await verbs.resolve({ ref: "@agentik/runners/python" }, ctx)
await verbs.delete("tools/echo/TOOL.md")

License

MIT

Keywords