Aller directement au contenu principal

openhands.core.config.agent_config

AgentConfig Objects

@dataclass
class AgentConfig()

Configuration for the agent.

Attributes:

  • micro_agent_name - The name of the micro agent to use for this agent.
  • memory_enabled - Whether long-term memory (embeddings) is enabled.
  • memory_max_threads - The maximum number of threads indexing at the same time for embeddings.
  • llm_config - The name of the llm config to use. If specified, this will override global llm config.

defaults_to_dict

def defaults_to_dict() -> dict

Serialize fields to a dict for the frontend, including type hints, defaults, and whether it's optional.