Uses of Class
com.google.adk.agents.Context
Packages that use Context
Package
Description
-
Uses of Context in com.google.adk.agents
Subclasses of Context in com.google.adk.agentsModifier and TypeClassDescriptionclassThe context of various callbacks for an agent invocation.Methods in com.google.adk.agents with parameters of type ContextModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable<Event> Runs this agent as a workflow node, on the node's branch so the nodes after it see its events.io.reactivex.rxjava3.core.Flowable<Event> Runs this agent as a workflow node: aAgentMode.SINGLE_TURNagent takes the node input as its user turn and gives the first final reply, its own or its inline target's, as output; aAgentMode.TASKagent works untilfinish_tasksucceeds, failing withStateSchemaExceptionif the node's state schema rejects itsLlmAgent.outputKey()write; and aAgentMode.CHATagent runs the tasks it delegates and stays open (LlmAgent.waitForOutput()). -
Uses of Context in com.google.adk.classifiers
Methods in com.google.adk.classifiers with parameters of type Context -
Uses of Context in com.google.adk.tools
Subclasses of Context in com.google.adk.toolsModifier and TypeClassDescriptionclassToolContext object provides a structured context for executing tools or functions. -
Uses of Context in com.google.adk.workflow
Methods in com.google.adk.workflow that return types with arguments of type ContextModifier and TypeMethodDescriptionNodeExecutionState.parent()Returns the context of the node that ran this node, or empty for a run at the top of the invocation: a root node or a handoff target that runs beside it.Methods in com.google.adk.workflow with parameters of type ContextModifier and TypeMethodDescription@Nullable OReturnsnullfor no output, anEventto send with any output in JSON form, or the output, which is sent in its JSON form; a returnedContentis the output, not a message.static io.reactivex.rxjava3.core.Maybe<Object> NodeRunner.runChild(Context parent, Node node, @Nullable Object nodeInput, RunNodeConfig config) Runsnodeas a child of the node whose context isparent, asContext.runNode(Node, Object, RunNodeConfig)describes.io.reactivex.rxjava3.core.Flowable<?> io.reactivex.rxjava3.core.Flowable<?> Outputs its input unchanged, or nothing when the input is null.io.reactivex.rxjava3.core.Flowable<?> Runs the node onnodeInput, the output it receives from its predecessors.io.reactivex.rxjava3.core.Flowable<?> io.reactivex.rxjava3.core.Flowable<?> Runs the graph from its start node, which handsnodeInputto its successors.booleanReturns whether this run asks the user to approve it before the body runs.