-
Notifications
You must be signed in to change notification settings - Fork 465
Expand file tree
/
Copy pathconfigs.py
More file actions
25 lines (20 loc) · 803 Bytes
/
configs.py
File metadata and controls
25 lines (20 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from dataclasses import dataclass, field
from areal.api.cli_args import PPOConfig
@dataclass
class AgentConfig(PPOConfig):
"""Configuration for Agent training experiments.
Extends PPOConfig with agent-specific settings for agent-based
workflows using OpenAI-compatible APIs (OpenAI, Anthropic, LangChain, etc.).
"""
workflow: str = field(
default="areal.workflow.langchain.math_agent.MathAgent",
metadata={"help": "Path to the workflow class for training."},
)
eval_workflow: str = field(
default="areal.workflow.langchain.math_agent.MathAgent",
metadata={"help": "Path to the workflow class for evaluation."},
)
max_turns: int = field(
default=10,
metadata={"help": "Maximum turns for multi-turn agents."},
)