-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathchat_message.py
More file actions
41 lines (32 loc) · 1.12 KB
/
chat_message.py
File metadata and controls
41 lines (32 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This file was auto-generated by Fern from our API Definition.
import typing
import typing_extensions
from ..types.chat_role import ChatRole
from .chat_message_content import ChatMessageContentParams
from .chat_message_thinking_item import ChatMessageThinkingItemParams
from .tool_call import ToolCallParams
class ChatMessageParams(typing_extensions.TypedDict):
content: typing_extensions.NotRequired[ChatMessageContentParams]
"""
The content of the message.
"""
name: typing_extensions.NotRequired[str]
"""
Optional name of the message author.
"""
tool_call_id: typing_extensions.NotRequired[str]
"""
Tool call that this message is responding to.
"""
role: ChatRole
"""
Role of the message author.
"""
tool_calls: typing_extensions.NotRequired[typing.Sequence[ToolCallParams]]
"""
A list of tool calls requested by the assistant.
"""
thinking: typing_extensions.NotRequired[typing.Sequence[ChatMessageThinkingItemParams]]
"""
Model's chain-of-thought for providing the response. Present on assistant messages if model supports it.
"""