Package com.example.workflows
package com.example.workflows
-
ClassDescriptionA port of adk-python's
classifier_nodeworkflow sample.A port of adk-python'sdynamic_fan_out_fan_inworkflow sample: one node splits the user's comma-separated topics, runs a headline agent on each topic concurrently withrunNode, and collects the headlines into one table.A port of adk-python'sdynamic_nodesworkflow sample: theloopsample rewritten as one node that runs the headline agents withrunNodein a loop, instead of routing between them with graph edges.A port of adk-python'sfan_out_fan_inworkflow sample: three nodes transform the user's text concurrently, and aJoinNodewaits for all of them before one node combines their outputs.A port of adk-python'sloop_selfworkflow sample: the user picks a number from 0 to 10, and a node keeps routing back to itself until it guesses it.A port of adk-python'sloopworkflow sample: an agent writes a headline about the user's topic, a second agent grades whether it is about technology, and the workflow loops back with the grader's feedback until it is.A port of ADK Kotlin's message-triage workflow sample, the graph from the ADK docs: an agent labels a message as a bug, a customer-support request, a logistics question, or several of these, and a function node emits one route per label so each matching handler runs.A port of adk-python'smessageworkflow sample: nodes send the user a text message, a message with an inline image, several messages in a row, and a sentence streamed in chunks.A port of adk-python'smulti_triggersworkflow sample: three nodes transform the user's text concurrently, and each one triggers the same node, which therefore runs three times.A port of adk-python'snested_workflowsample: for the year the user names, a nested workflow finds a famous person born that year and writes their bio while an agent describes an event from that year, and aJoinNodewaits for both branches before one message combines them.A port of adk-python'snode_outputworkflow sample: a function node's return value becomes its output, a returnedEventpasses through as is, and an agent with an output schema answers with structured data, which the next node receives decoded into a record.A port of ADK Kotlin's order-processing workflow sample, with fraud review.A mock credit bureau whose check runs as a step of the workflow.A port of adk-python'sparallel_workerworkflow sample: an agent lists three topics related to the user's topic, a function node uppercases each one, an agent explains how each relates to the original topic, and a last node joins the explanations.A port of adk-python'srequest_input_advancedworkflow sample: an agent extracts a time-off request from the user's message, a node approves one day on its own and otherwise asks a manager, sending the request as the payload and asking for an answer that matches a schema, and the last node reports the decision.A port of adk-python'srequest_input_rerunworkflow sample: therequest_inputsample with one review node instead of two.A port of adk-python'srequest_inputworkflow sample: an agent drafts a reply to a customer complaint, a node pauses the workflow to ask a human to review the draft, and the next node receives the answer and sends the draft, drops it, or has the agent revise it with the feedback.A port of ADK Kotlin's research workflow sample.A port of adk-python'sretryworkflow sample: a weather lookup fails at random, and its retry policy runs it again, up to five attempts in all, before the next node reports the weather.A returns desk whose steps include the function tools ofReturnsWorkflow.OrderSystem.A mock order backend whose tools the returns workflow runs as graph steps.A port of adk-python'srouteworkflow sample: an agent classifies the user's input as a question, a statement, or something else, and a node routes it to the agent or node that handles that category.A port of adk-python'ssequenceworkflow sample: one agent names a random fruit, and the next agent receives that answer as its input and tells a health benefit of the fruit.A port of adk-python'sstateworkflow sample: nodes write session state through the context and through an event, and read it back through the context.A port of ADK Kotlin's support-triage workflow sample.A mock billing backend that the billing specialist queries through a tool.A charge on a customer's account.A mock status page that the support engineer checks through a tool.A port of adk-python'suse_as_outputworkflow sample.