add schemas and swap browser_use_runner in docker with browser and now agent use skill from the other container

This commit is contained in:
Кобылкевич Фёдор 2026-04-06 23:08:03 +03:00
parent 480dfcd36e
commit 890d492de0
12 changed files with 173 additions and 6857 deletions

15
api/schemas.py Normal file
View file

@ -0,0 +1,15 @@
from typing import Optional
from pydantic import BaseModel, Field
class BrowserTaskRequest(BaseModel):
task: str = Field(..., description="Задача для браузера")
timeout: int = Field(300, description="Максимальное время выполнения задачи в секундах")
class BrowserTaskResponse(BaseModel):
success: bool
result: Optional[str] = None
error: Optional[str] = None
execution_time: float