OpenHands/openhands/server/session/session_init_data.py
Engel Nyst 590ebb6e47
Small fix and addition for token counting (#5550)
Co-authored-by: openhands <openhands@all-hands.dev>
2024-12-15 15:12:05 +01:00

20 lines
587 B
Python

from dataclasses import dataclass
@dataclass
class SessionInitData:
"""
Session initialization data for the web environment - a deep copy of the global config is made and then overridden with this data.
"""
language: str | None = None
agent: str | None = None
max_iterations: int | None = None
security_analyzer: str | None = None
confirmation_mode: bool | None = None
llm_model: str | None = None
llm_api_key: str | None = None
llm_base_url: str | None = None
github_token: str | None = None
selected_repository: str | None = None