Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/server / registry

registry

Registry plumbing that lets the server route handlers locate user- defined agents, workflows, sessions, memory, skills, and MCP server bindings without taking a hard peer dependency on every sibling package.

Every entry is keyed by string id; lookups never throw — callers receive undefined and the route handler decides how to surface the miss (typically a 404 with a typed error body).

Classes

ClassDescription
AgentRegistryRead/write registry for agents the server should expose. Every mutation is synchronous and the lookup is O(1).
WorkflowRegistry-

Interfaces

InterfaceDescription
AgentRegistrationRegistration descriptor accepted by AgentRegistry.register.
AgentSummarySnapshot record returned by AgentRegistry.list.
ServerAgentLikeMinimal shape the server needs from an Agent. Compatible with the Agent interface from @graphorin/agent but kept structurally so we avoid the peer dependency.
ServerWorkflowLikeMinimal shape the server needs from a Workflow. Mirrors the Workflow surface from @graphorin/workflow.
WorkflowRegistrationRegistration descriptor accepted by WorkflowRegistry.register.
WorkflowSummarySnapshot record returned by WorkflowRegistry.list.