ADK for TypeScript: API Reference
    Preparing search index...

    Function createEmptyState

    • Creates a state object initialized with empty strings '' for all {var} placeholders referenced in the instruction strings of agent and its sub-agents, overridden by any keys provided in initializedStates.

      Parameters

      • agent: BaseAgent

        The root agent to inspect.

      • OptionalinitializedStates: Record<string, unknown>

        Optional pre-initialized state values that take precedence.

      Returns Record<string, unknown>

      The combined state record.