0b7fc29ac4
Co-authored-by: Dt8333 <25431943+Dt8333@users.noreply.github.com> Co-authored-by: Soulter <905617992@qq.com>
14 lines
376 B
Python
14 lines
376 B
Python
from dataclasses import dataclass
|
|
|
|
from astrbot.core.provider import Provider
|
|
from astrbot.core.provider.entities import ProviderRequest
|
|
|
|
|
|
@dataclass
|
|
class AstrAgentContext:
|
|
provider: Provider
|
|
first_provider_request: ProviderRequest
|
|
curr_provider_request: ProviderRequest
|
|
streaming: bool
|
|
tool_call_timeout: int = 60 # Default tool call timeout in seconds
|