19 lines
429 B
Python
19 lines
429 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from pydantic import BaseModel, Field
|
||
|
|
|
||
|
|
|
||
|
|
class RunRequest(BaseModel):
|
||
|
|
session_id: str | None = Field(default=None, min_length=1, max_length=100)
|
||
|
|
prompt: str = Field(min_length=1, max_length=5000)
|
||
|
|
|
||
|
|
|
||
|
|
class ResumeRequest(BaseModel):
|
||
|
|
tool_call_id: str = Field(min_length=1, max_length=200)
|
||
|
|
|
||
|
|
|
||
|
|
class TaskAcceptedResponse(BaseModel):
|
||
|
|
task_id: str
|
||
|
|
session_id: str
|
||
|
|
created: bool
|