Skip to content

Commit 34a53aa

Browse files
feat(api): manual updates
1 parent 357a336 commit 34a53aa

File tree

6 files changed

+14
-3
lines changed

6 files changed

+14
-3
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 34
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-29501785fbb6de9348a558389e9d0a9a94dddd50021f6f3ea8ff0fa95dddbeaf.yml
33
openapi_spec_hash: 523525acdac5482a17e6c99aa9382a50
4-
config_hash: 2de0ced4fd577245ea14e330212b2e50
4+
config_hash: aeabb3a919ad2763f5d0f41961a2520a

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ from agentex.types import (
6868
ReasoningContent,
6969
TaskMessage,
7070
TextContent,
71+
TextFormat,
7172
ToolRequestContent,
7273
ToolResponseContent,
7374
MessageListResponse,

src/agentex/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .acp_type import AcpType as AcpType
1212
from .data_delta import DataDelta as DataDelta
1313
from .text_delta import TextDelta as TextDelta
14+
from .text_format import TextFormat as TextFormat
1415
from .data_content import DataContent as DataContent
1516
from .task_message import TaskMessage as TaskMessage
1617
from .text_content import TextContent as TextContent

src/agentex/types/text_content.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing_extensions import Literal
55

66
from .._models import BaseModel
7+
from .text_format import TextFormat
78
from .message_style import MessageStyle
89
from .message_author import MessageAuthor
910

@@ -37,7 +38,7 @@ class TextContent(BaseModel):
3738
attachments: Optional[List[Attachment]] = None
3839
"""Optional list of file attachments with structured metadata."""
3940

40-
format: Literal["markdown", "plain", "code"] = "plain"
41+
format: TextFormat = "plain"
4142
"""The format of the message.
4243
4344
This is used by the client to determine how to display the message.

src/agentex/types/text_content_param.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from typing import Iterable, Optional
66
from typing_extensions import Literal, Required, TypedDict
77

8+
from .text_format import TextFormat
89
from .message_style import MessageStyle
910
from .message_author import MessageAuthor
1011

@@ -38,7 +39,7 @@ class TextContentParam(TypedDict, total=False):
3839
attachments: Optional[Iterable[Attachment]]
3940
"""Optional list of file attachments with structured metadata."""
4041

41-
format: Literal["markdown", "plain", "code"]
42+
format: TextFormat
4243
"""The format of the message.
4344
4445
This is used by the client to determine how to display the message.

src/agentex/types/text_format.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing_extensions import Literal, TypeAlias
4+
5+
__all__ = ["TextFormat"]
6+
7+
TextFormat: TypeAlias = Literal["markdown", "plain", "code"]

0 commit comments

Comments
 (0)