# Class BaseAgentConfig.AgentRefConfig

java.lang.Object
com.google.adk.agents.BaseAgentConfig.AgentRefConfig

Enclosing class:
  `BaseAgentConfig`

public static class BaseAgentConfig.AgentRefConfig extends Object
Configuration for referencing other agents (subagents). Supports both config-based references (YAML files) and programmatic references (via code registry).

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AgentRefConfig()`
  `AgentRefConfig(String configPath)`
  Constructor for config-based agent reference.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `code()`
  `String`
  `configPath()`
  `void`
  `setCode(String code)`
  `void`
  `setConfigPath(String configPath)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AgentRefConfig

    public AgentRefConfig()

  - ### AgentRefConfig

    public AgentRefConfig(String configPath)
    Constructor for config-based agent reference.
    Parameters:
      `configPath` - The path to the subagent's config file

- ## Method Details

  - ### configPath

    public String configPath()

  - ### setConfigPath

    public void setConfigPath(String configPath)

  - ### code

    public String code()

  - ### setCode

    public void setCode(String code)