llmOS-Agent / src /schema.py
minchyeom's picture
Add initial implementation of chat application with required dependencies
0e02b97
raw
history blame
291 Bytes
from __future__ import annotations
from typing import List, Literal, Optional, TypedDict
from ollama import Message
class Msg(TypedDict, total=False):
role: Literal["user", "assistant", "tool"]
content: str
name: Optional[str]
tool_calls: Optional[List[Message.ToolCall]]