AgentLoader class

Filesystem-backed loader for ADK agents and apps.

Inheritance

Constructors

AgentLoader(String agentsDir, {Map<String, AgentFactory>? agentFactories, bool enableDevProjectFallback = true})
Creates a loader rooted at agentsDir.

Properties

agentsDir → String
Root directory that contains loadable agents.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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 agentName and 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 agentName from the in-memory loader cache.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited