praval.core.registry๏ƒ

Agent and Tool Registry for Praval Framework.

Provides a global registry for tracking agents and tools across the system, enabling better coordination and discovery in multi-agent applications.

Functions

get_registry()

Get the global registry instance.

register_agent(agent)

Register an agent in the global registry.

Classes

PravalRegistry()

Global registry for agents and tools in Praval applications.

class praval.core.registry.PravalRegistry[source]๏ƒ

Bases: object

Global registry for agents and tools in Praval applications.

__init__()[source]๏ƒ
register_agent(agent)[source]๏ƒ

Register an agent in the global registry.

Parameters:

agent (Agent) โ€“ Agent instance to register

Return type:

Agent

Returns:

The registered agent

get_agent(name)[source]๏ƒ

Get an agent by name from the registry.

Return type:

Optional[Agent]

Parameters:

name (str)

get_all_agents()[source]๏ƒ

Get all registered agents.

Return type:

Dict[str, Agent]

get_tool(tool_name)[source]๏ƒ

Get a tool by name from the registry.

Return type:

Optional[Dict[str, Any]]

Parameters:

tool_name (str)

get_tools_by_agent(agent_name)[source]๏ƒ

Get all tools for a specific agent.

Return type:

Dict[str, Dict[str, Any]]

Parameters:

agent_name (str)

list_agents()[source]๏ƒ

List names of all registered agents.

Return type:

List[str]

list_tools()[source]๏ƒ

List names of all registered tools.

Return type:

List[str]

clear()[source]๏ƒ

Clear all registered agents and tools.

praval.core.registry.register_agent(agent)[source]๏ƒ

Register an agent in the global registry.

Return type:

Agent

Parameters:

agent (Agent)

praval.core.registry.get_registry()[source]๏ƒ

Get the global registry instance.

Return type:

PravalRegistry