Skip to content

Commit 8c96a49

Browse files
author
BitsAdmin
committed
Merge branch 'feat/support_multicontent' into 'integration_2025-04-17_865081244162'
feat: [development task] ark_runtime (1163370) See merge request iaasng/volcengine-python-sdk!572
2 parents 6a94f4e + 6c64151 commit 8c96a49

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

volcenginesdkarkruntime/types/chat/chat_completion_assistant_message_param.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from __future__ import annotations
22

3-
from typing import Iterable, Optional
3+
from typing import Union, Iterable, Optional
44
from typing_extensions import Literal, Required, TypedDict
55

66
from .chat_completion_message_tool_call_param import ChatCompletionMessageToolCallParam
7+
from .chat_completion_content_part_param import ChatCompletionContentPartParam
78

89
__all__ = ["ChatCompletionAssistantMessageParam", "FunctionCall"]
910

@@ -25,7 +26,7 @@ class ChatCompletionAssistantMessageParam(TypedDict, total=False):
2526
role: Required[Literal["assistant"]]
2627
"""The role of the messages author, in this case `assistant`."""
2728

28-
content: Optional[str]
29+
content: Optional[Union[str, Iterable[ChatCompletionContentPartParam]]]
2930
"""The contents of the assistant message.
3031
3132
Required unless `tool_calls` or `function_call` is specified.

volcenginesdkarkruntime/types/chat/chat_completion_system_message_param.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
from __future__ import annotations
22

3-
from typing import Optional
4-
3+
from typing import Union, Iterable, Optional
54
from typing_extensions import Literal, Required, TypedDict
65

6+
from .chat_completion_content_part_param import ChatCompletionContentPartParam
7+
78
__all__ = ["ChatCompletionSystemMessageParam"]
89

910

1011
class ChatCompletionSystemMessageParam(TypedDict, total=False):
11-
content: Required[str]
12+
content: Required[Union[str, Iterable[ChatCompletionContentPartParam]]]
1213
"""The contents of the system message."""
1314

1415
role: Required[Literal["system"]]

volcenginesdkarkruntime/types/chat/chat_completion_tool_message_param.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
from __future__ import annotations
22

3-
from typing import Optional
3+
from typing import Optional, Union, Iterable
44

55
from typing_extensions import Literal, Required, TypedDict
6+
from .chat_completion_content_part_param import ChatCompletionContentPartParam
67

78
__all__ = ["ChatCompletionToolMessageParam"]
89

910

1011
class ChatCompletionToolMessageParam(TypedDict, total=False):
11-
content: Required[str]
12+
content: Required[Union[str, Iterable[ChatCompletionContentPartParam]]]
1213
"""The contents of the tool message."""
1314

1415
role: Required[Literal["tool"]]

0 commit comments

Comments
 (0)