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:
parent
480dfcd36e
commit
890d492de0
12 changed files with 173 additions and 6857 deletions
15
api/schemas.py
Normal file
15
api/schemas.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue