update api for subagent protocol and delete hermes agent
This commit is contained in:
parent
ff1799cd98
commit
952b2e7d17
1150 changed files with 704 additions and 458893 deletions
|
|
@ -59,3 +59,57 @@ class BrowserTaskHistoryResponse(BaseModel):
|
|||
status: TaskStatus
|
||||
history: list[TaskHistoryEvent] = Field(default_factory=list)
|
||||
|
||||
|
||||
class RunCreateRequest(BaseModel):
|
||||
"""Запрос на создание фонового run."""
|
||||
|
||||
thread_id: str = Field(..., description="Идентификатор треда/контекста")
|
||||
input: str = Field(..., description="Пользовательский prompt для browser-use")
|
||||
timeout: int = Field(300, description="Максимальное время выполнения run в секундах")
|
||||
metadata: dict[str, Any] | None = Field(default=None, description="Дополнительные метаданные")
|
||||
|
||||
|
||||
class RunSummaryResponse(BaseModel):
|
||||
"""Краткая информация о run."""
|
||||
|
||||
run_id: str
|
||||
thread_id: str
|
||||
status: TaskStatus
|
||||
created_at: float
|
||||
started_at: float | None = None
|
||||
finished_at: float | None = None
|
||||
error: str | None = None
|
||||
|
||||
|
||||
class RunResponse(RunSummaryResponse):
|
||||
"""Полная информация о run."""
|
||||
|
||||
input: str
|
||||
metadata: dict[str, Any] | None = None
|
||||
output: str | None = None
|
||||
raw_response: dict[str, Any] | None = None
|
||||
history: list[TaskHistoryEvent] = Field(default_factory=list)
|
||||
|
||||
|
||||
class RunListResponse(BaseModel):
|
||||
"""Список run-ов для треда."""
|
||||
|
||||
thread_id: str
|
||||
runs: list[RunSummaryResponse] = Field(default_factory=list)
|
||||
|
||||
|
||||
class RunWaitResponse(BaseModel):
|
||||
"""Ответ ожидания завершения run."""
|
||||
|
||||
run: RunResponse
|
||||
|
||||
|
||||
class RunStreamEvent(BaseModel):
|
||||
"""Событие потока выполнения run."""
|
||||
|
||||
run_id: str
|
||||
event: str
|
||||
ts: float
|
||||
data: dict[str, Any] = Field(default_factory=dict)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue