mirror of
https://github.com/mistralai/mistral-vibe
synced 2026-04-25 17:14:55 +02:00
Co-authored-by: Bastien <bastien.baret@gmail.com> Co-authored-by: Laure Hugo <201583486+laure0303@users.noreply.github.com> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Paul Cacheux <paul.cacheux@mistral.ai> Co-authored-by: Val <102326092+vdeva@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
27 lines
488 B
Python
27 lines
488 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
_SUBMIT_INPUT_UPDATE_NAME = "__submit_input"
|
|
|
|
|
|
class AgentCompletionState(BaseModel):
|
|
content: str = ""
|
|
reasoning_content: str = ""
|
|
|
|
|
|
class InterruptSignal(BaseModel):
|
|
prompt: str
|
|
|
|
|
|
class ChatInputModel(BaseModel):
|
|
model_config = ConfigDict(title="ChatInput", extra="forbid")
|
|
message: list[Any]
|
|
|
|
|
|
class SubmitInputModel(BaseModel):
|
|
task_id: str
|
|
input: Any
|