mirror of https://github.com/aliasrobotics/cai.git
turns with CAI_MAX_TURNS
This commit is contained in:
parent
6e860f05d7
commit
65eb3ac4d5
|
|
@ -43,8 +43,9 @@ from .tracing import Span, SpanError, agent_span, get_current_trace, trace
|
|||
from .tracing.span_data import AgentSpanData
|
||||
from .usage import Usage
|
||||
from .util import _coro, _error_tracing
|
||||
import os
|
||||
|
||||
DEFAULT_MAX_TURNS = 10
|
||||
DEFAULT_MAX_TURNS = os.getenv("CAI_MAX_TURNS", float("inf"))
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
|
|||
Loading…
Reference in New Issue