@agent
Configures anAgent subclass:
AgentConfig on MyAgent._agent_config. At startup, the AgentFactory uses this config to instantiate the agent.
@tool
Wraps a function as a callable tool:- Inspects the function signature and type hints
- Generates a JSON schema for the LLM’s tool-calling interface
- Registers the tool in the global registry
- Assigns it to the specified agent