We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Message
1 parent cbf0887 commit 8b694bbCopy full SHA for 8b694bb
ollama/_types.py
@@ -79,10 +79,10 @@ class Message(TypedDict):
79
Chat message.
80
"""
81
82
- role: Literal['user', 'assistant', 'system']
83
- "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'."
84
85
- content: str
+ content: NotRequired[str]
86
'Content of the message. Response messages contains message fragments when streaming.'
87
88
images: NotRequired[Sequence[Any]]
0 commit comments