mirror of
https://github.com/kharonsec/ollama-python
synced 2026-04-25 23:24:55 +02:00
Update Message annotations to support tool calls (#227)
This commit is contained in:
@@ -79,10 +79,10 @@ class Message(TypedDict):
|
||||
Chat message.
|
||||
"""
|
||||
|
||||
role: Literal['user', 'assistant', 'system']
|
||||
"Assumed role of the message. Response messages always has role 'assistant'."
|
||||
role: Literal['user', 'assistant', 'system', 'tool']
|
||||
"Assumed role of the message. Response messages always has role 'assistant' or 'tool'."
|
||||
|
||||
content: str
|
||||
content: NotRequired[str]
|
||||
'Content of the message. Response messages contains message fragments when streaming.'
|
||||
|
||||
images: NotRequired[Sequence[Any]]
|
||||
|
||||
Reference in New Issue
Block a user