Class LlmAgent
java.lang.Object
com.google.adk.agents.BaseAgent
com.google.adk.agents.LlmAgent
The LLM-based agent.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder forLlmAgent
.static enum
Enum to define if contents of previous events should be included in requests to the underlying LLM. -
Method Summary
Modifier and TypeMethodDescriptionstatic LlmAgent.Builder
builder()
Returns aLlmAgent.Builder
forLlmAgent
.boolean
boolean
executor()
Optional
<com.google.genai.types.GenerateContentConfig> Optional
<com.google.genai.types.Schema> model()
Optional
<com.google.genai.types.Schema> boolean
planning()
protected io.reactivex.rxjava3.core.Flowable
<Event> runAsyncImpl
(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable
<Event> runLiveImpl
(InvocationContext invocationContext) tools()
Methods inherited from class com.google.adk.agents.BaseAgent
afterAgentCallback, beforeAgentCallback, description, findAgent, findSubAgent, name, parentAgent, parentAgent, rootAgent, runAsync, runLive, subAgents
-
Method Details
-
builder
Returns aLlmAgent.Builder
forLlmAgent
. -
runAsyncImpl
protected io.reactivex.rxjava3.core.Flowable<Event> runAsyncImpl(InvocationContext invocationContext) - Specified by:
runAsyncImpl
in classBaseAgent
-
runLiveImpl
protected io.reactivex.rxjava3.core.Flowable<Event> runLiveImpl(InvocationContext invocationContext) - Specified by:
runLiveImpl
in classBaseAgent
-
instruction
-
globalInstruction
-
model
-
planning
public boolean planning() -
generateContentConfig
-
exampleProvider
-
includeContents
-
tools
-
disallowTransferToParent
public boolean disallowTransferToParent() -
disallowTransferToPeers
public boolean disallowTransferToPeers() -
beforeModelCallback
-
afterModelCallback
-
beforeToolCallback
-
afterToolCallback
-
inputSchema
-
outputSchema
-
executor
-
outputKey
-
resolvedModel
-