mirror of
https://github.com/katanemo/plano.git
synced 2026-04-26 09:16:24 +02:00
14 lines
284 B
Python
14 lines
284 B
Python
from typing import Any, Dict, List
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Message(BaseModel):
|
|
role: str
|
|
content: str
|
|
|
|
|
|
class ChatMessage(BaseModel):
|
|
messages: list[Message]
|
|
tools: List[Dict[str, Any]]
|
|
# todo: make it default none
|
|
metadata: Dict[str, str] = {}
|