GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — LoopAgentConfig | ADK for TypeScript: API Reference - v2.5.0

  • LoopAgentConfig

Interface LoopAgentConfig

The configuration options for creating a loop agent.

interface LoopAgentConfig {
    afterAgentCallback?: AfterAgentCallback;
    beforeAgentCallback?: BeforeAgentCallback;
    description?: string;
    inputSchema?: SchemaLike;
    isolationScope?: string | true;
    maxIterations?: number;
    name: string;
    outputSchema?: SchemaLike;
    parentAgent?: BaseAgent<BaseAgentConfig>;
    rerunOnResume?: boolean;
    retryConfig?: RetryConfig;
    stateSchema?: SchemaLike;
    subAgents?: BaseAgent<BaseAgentConfig>[];
    timeout?: number;
    waitForOutput?: boolean;
}

Hierarchy (View Summary)

  • BaseAgentConfig
    • LoopAgentConfig
  • Defined in core/src/agents/loop_agent.ts:16

Properties

OptionalafterAgentCallback

afterAgentCallback?: AfterAgentCallback

Inherited from BaseAgentConfig.afterAgentCallback

  • Defined in core/src/agents/base_agent.ts:52

OptionalbeforeAgentCallback

beforeAgentCallback?: BeforeAgentCallback

Inherited from BaseAgentConfig.beforeAgentCallback

  • Defined in core/src/agents/base_agent.ts:51

Optionaldescription

description?: string

Human-readable description (used when a node is exposed as a tool).

Inherited from BaseAgentConfig.description

  • Defined in core/src/agents/base_agent.ts:48

OptionalinputSchema

inputSchema?: SchemaLike

Optional schema validating the node input (Zod v3/v4 or genai Schema).

Inherited from BaseAgentConfig.inputSchema

  • Defined in core/src/workflow/base_node.ts:62

OptionalisolationScope

isolationScope?: string | true

Runs this node's subtree in an isolated conversation scope: an agent inside it sees only session events carrying the same scope, plus untagged ones. true derives a scope per node run; a string is an explicit shared tag.

Inherited from BaseAgentConfig.isolationScope

  • Defined in core/src/workflow/base_node.ts:75

OptionalmaxIterations

maxIterations?: number

The maximum number of iterations the loop agent will run.

If not provided, the loop agent will run indefinitely.

  • Defined in core/src/agents/loop_agent.ts:22

name

name: string

Canonical, unique-within-a-graph node name.

Inherited from BaseAgentConfig.name

  • Defined in core/src/agents/base_agent.ts:47

OptionaloutputSchema

outputSchema?: SchemaLike

Optional schema validating the node output (Zod v3/v4 or genai Schema).

Inherited from BaseAgentConfig.outputSchema

  • Defined in core/src/workflow/base_node.ts:65

OptionalparentAgent

parentAgent?: BaseAgent<BaseAgentConfig>

Inherited from BaseAgentConfig.parentAgent

  • Defined in core/src/agents/base_agent.ts:49

OptionalrerunOnResume

rerunOnResume?: boolean

If true, the node re-executes when a workflow resumes even if it already completed in a prior turn. Default false.

Inherited from BaseAgentConfig.rerunOnResume

  • Defined in core/src/workflow/base_node.ts:47

OptionalretryConfig

retryConfig?: RetryConfig

Optional retry configuration for transient failures.

Inherited from BaseAgentConfig.retryConfig

  • Defined in core/src/workflow/base_node.ts:56

OptionalstateSchema

stateSchema?: SchemaLike

Optional schema validating relevant session state (Zod v3/v4 or genai Schema).

Inherited from BaseAgentConfig.stateSchema

  • Defined in core/src/workflow/base_node.ts:68

OptionalsubAgents

subAgents?: BaseAgent<BaseAgentConfig>[]

Inherited from BaseAgentConfig.subAgents

  • Defined in core/src/agents/base_agent.ts:50

Optionaltimeout

timeout?: number

Maximum time, in seconds, for this node to complete.

Inherited from BaseAgentConfig.timeout

  • Defined in core/src/workflow/base_node.ts:59

OptionalwaitForOutput

waitForOutput?: boolean

If true, the node only produces its output once all of its predecessors have triggered it (fan-in / join semantics). Default false.

Inherited from BaseAgentConfig.waitForOutput

  • Defined in core/src/workflow/base_node.ts:53
Properties
afterAgentCallbackbeforeAgentCallbackdescriptioninputSchemaisolationScopemaxIterationsnameoutputSchemaparentAgentrerunOnResumeretryConfigstateSchemasubAgentstimeoutwaitForOutput
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.