plano/model_server/app/arch_fc/common.py
Adil Hafeez 2a747df7c0
don't compute embeddings for names and other fixes see description (#126)
* serialize tools - 2

* fix int tests

* fix int test

* fix unit tests
2024-10-05 19:25:16 -07:00

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] = {}