AgentLoader class
Filesystem-backed loader for ADK agents and apps.
- Inheritance
-
- Object
- BaseAgentLoader
- AgentLoader
Constructors
-
AgentLoader(String agentsDir, {Map<
String, AgentFactory> ? agentFactories, bool enableDevProjectFallback = true}) -
Creates a loader rooted at
agentsDir.
Properties
Methods
-
listAgents(
) → List< String> -
All visible agent directory names under agentsDir.
override
-
listAgentsDetailed(
) → List< Map< String, Object?> > -
Detailed metadata for all loadable agents.
override
-
loadAgent(
String agentName) → AgentOrApp -
Loads
agentNameand caches the result for subsequent lookups.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAgentFromCache(
String agentName) → void -
Removes
agentNamefrom the in-memory loader cache. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited