Package com.example.workflows


package com.example.workflows
  • Class
    Description
    A port of adk-python's classifier_node workflow sample.
    A port of adk-python's dynamic_fan_out_fan_in workflow sample: one node splits the user's comma-separated topics, runs a headline agent on each topic concurrently with runNode, and collects the headlines into one table.
    A port of adk-python's dynamic_nodes workflow sample: the loop sample rewritten as one node that runs the headline agents with runNode in a loop, instead of routing between them with graph edges.
    A port of adk-python's fan_out_fan_in workflow sample: three nodes transform the user's text concurrently, and a JoinNode waits for all of them before one node combines their outputs.
    A port of adk-python's loop_self workflow 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's loop workflow 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's message workflow 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's multi_triggers workflow 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's nested_workflow sample: 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 a JoinNode waits for both branches before one message combines them.
    A port of adk-python's node_output workflow sample: a function node's return value becomes its output, a returned Event passes 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's parallel_worker workflow 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's request_input_advanced workflow 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's request_input_rerun workflow sample: the request_input sample with one review node instead of two.
    A port of adk-python's request_input workflow 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's retry workflow 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 of ReturnsWorkflow.OrderSystem.
    A mock order backend whose tools the returns workflow runs as graph steps.
    A port of adk-python's route workflow 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's sequence workflow 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's state workflow 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's use_as_output workflow sample.