Agentic.Protocol.Registry
(agentic v0.2.2)
Copy Markdown
Registry for agent protocol implementations.
Provides lookup and discovery of available protocols, supporting both LLM API protocols and local agent CLI protocols.
Usage
# Register a protocol
Agentic.Protocol.Registry.register(:claude_code, Agentic.Protocol.ClaudeCode)
# Look up a protocol
{:ok, module} = Agentic.Protocol.Registry.lookup(:claude_code)
# List all protocols
Agentic.Protocol.Registry.list()
# Get protocols by transport type
Agentic.Protocol.Registry.for_transport(:local_agent)
Summary
Functions
Check if a protocol is available (CLI present, credentials configured, etc.)
Returns a specification to start this module under a supervisor.
List all protocols for a given transport type.
Get a protocol, raising if not found.
List all registered protocol names.
Look up a protocol by name.
Register a protocol under a name.
Unregister a protocol by name.
Functions
Check if a protocol is available (CLI present, credentials configured, etc.)
Returns a specification to start this module under a supervisor.
See Supervisor.
List all protocols for a given transport type.
Get a protocol, raising if not found.
List all registered protocol names.
Look up a protocol by name.
Returns {:ok, module} or :error.
Register a protocol under a name.
The protocol module must implement AgentProtocol behaviour.
Unregister a protocol by name.