mirror of
https://github.com/ollama/ollama-python.git
synced 2026-01-13 21:57:16 +08:00
Update Message annotations to support tool calls (#227)
This commit is contained in:
parent
cbf0887573
commit
8b694bb0f4
@ -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]]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user