agentById

expect abstract suspend fun agentById(id: String): TAgent?(source)

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

id

The unique identifier of the AI agent to retrieve.

fun agentById(id: String, executorService: ExecutorService? = null): TAgent?(source)

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

id

The unique identifier of the agent to be retrieved.

executorService

An optional executor service to run the task. If not provided, the default dispatcher is used.


actual abstract suspend fun agentById(id: String): TAgent?(source)

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

id

The unique identifier of the AI agent to retrieve.

actual abstract suspend fun agentById(id: String): TAgent?(source)

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

id

The unique identifier of the AI agent to retrieve.