agentById
Retrieves an AI agent based on its unique identifier.
Return
The AI agent associated with the specified ID, or null if no agent is found.
Parameters
The unique identifier of the AI agent to retrieve.
Fetches an agent by its unique identifier.
This function retrieves an agent using the specified identifier and allows optional execution within a custom executor service. The method leverages the strategy dispatcher to execute the retrieval logic.
Return
The agent corresponding to the specified identifier, or null if no agent is found.
Parameters
The unique identifier of the agent to be retrieved.
An optional executor service to run the task. If not provided, the default dispatcher is used.
Retrieves an AI agent based on its unique identifier.
Return
The AI agent associated with the specified ID, or null if no agent is found.
Parameters
The unique identifier of the AI agent to retrieve.