Skip to content

Commit 3cbe7a5

Browse files
committed
SDK regeneration
1 parent e04d233 commit 3cbe7a5

File tree

8 files changed

+36
-2
lines changed

8 files changed

+36
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "cohere"
33

44
[tool.poetry]
55
name = "cohere"
6-
version = "5.13.8"
6+
version = "5.13.9"
77
description = ""
88
readme = "README.md"
99
authors = []

src/cohere/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
AuthTokenType,
1515
ChatCitation,
1616
ChatCitationGenerationEvent,
17+
ChatCitationType,
1718
ChatConnector,
1819
ChatContentDeltaEvent,
1920
ChatContentDeltaEventDelta,
@@ -82,6 +83,7 @@
8283
CitationStartEventDelta,
8384
CitationStartEventDeltaMessage,
8485
CitationStartStreamedChatResponseV2,
86+
CitationType,
8587
ClassifyDataMetrics,
8688
ClassifyExample,
8789
ClassifyRequestTruncate,
@@ -289,6 +291,7 @@
289291
"BedrockClientV2",
290292
"ChatCitation",
291293
"ChatCitationGenerationEvent",
294+
"ChatCitationType",
292295
"ChatConnector",
293296
"ChatContentDeltaEvent",
294297
"ChatContentDeltaEventDelta",
@@ -357,6 +360,7 @@
357360
"CitationStartEventDelta",
358361
"CitationStartEventDeltaMessage",
359362
"CitationStartStreamedChatResponseV2",
363+
"CitationType",
360364
"ClassifyDataMetrics",
361365
"ClassifyExample",
362366
"ClassifyRequestTruncate",

src/cohere/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
2525
"X-Fern-Language": "Python",
2626
"X-Fern-SDK-Name": "cohere",
27-
"X-Fern-SDK-Version": "5.13.8",
27+
"X-Fern-SDK-Version": "5.13.9",
2828
}
2929
if self._client_name is not None:
3030
headers["X-Client-Name"] = self._client_name

src/cohere/types/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from .auth_token_type import AuthTokenType
1616
from .chat_citation import ChatCitation
1717
from .chat_citation_generation_event import ChatCitationGenerationEvent
18+
from .chat_citation_type import ChatCitationType
1819
from .chat_connector import ChatConnector
1920
from .chat_content_delta_event import ChatContentDeltaEvent
2021
from .chat_content_delta_event_delta import ChatContentDeltaEventDelta
@@ -87,6 +88,7 @@
8788
from .citation_start_event import CitationStartEvent
8889
from .citation_start_event_delta import CitationStartEventDelta
8990
from .citation_start_event_delta_message import CitationStartEventDeltaMessage
91+
from .citation_type import CitationType
9092
from .classify_data_metrics import ClassifyDataMetrics
9193
from .classify_example import ClassifyExample
9294
from .classify_request_truncate import ClassifyRequestTruncate
@@ -113,6 +115,7 @@
113115
from .detokenize_response import DetokenizeResponse
114116
from .document import Document
115117
from .document_content import DocumentContent
118+
from .document_source import DocumentSource
116119
from .embed_by_type_response import EmbedByTypeResponse
117120
from .embed_by_type_response_embeddings import EmbedByTypeResponseEmbeddings
118121
from .embed_floats_response import EmbedFloatsResponse
@@ -201,25 +204,32 @@
201204
from .summarize_request_format import SummarizeRequestFormat
202205
from .summarize_request_length import SummarizeRequestLength
203206
from .summarize_response import SummarizeResponse
207+
from .system_message import SystemMessage
204208
from .system_message_content import SystemMessageContent
205209
from .system_message_content_item import SystemMessageContentItem, TextSystemMessageContentItem
210+
from .text_content import TextContent
211+
from .text_response_format import TextResponseFormat
212+
from .text_response_format_v2 import TextResponseFormatV2
206213
from .tokenize_response import TokenizeResponse
207214
from .tool import Tool
208215
from .tool_call import ToolCall
209216
from .tool_call_delta import ToolCallDelta
210217
from .tool_call_v2 import ToolCallV2
211218
from .tool_call_v2function import ToolCallV2Function
212219
from .tool_content import DocumentToolContent, TextToolContent, ToolContent
220+
from .tool_message import ToolMessage
213221
from .tool_message_v2 import ToolMessageV2
214222
from .tool_message_v2content import ToolMessageV2Content
215223
from .tool_parameter_definitions_value import ToolParameterDefinitionsValue
216224
from .tool_result import ToolResult
225+
from .tool_source import ToolSource
217226
from .tool_v2 import ToolV2
218227
from .tool_v2function import ToolV2Function
219228
from .update_connector_response import UpdateConnectorResponse
220229
from .usage import Usage
221230
from .usage_billed_units import UsageBilledUnits
222231
from .usage_tokens import UsageTokens
232+
from .user_message import UserMessage
223233
from .user_message_content import UserMessageContent
224234

225235
__all__ = [
@@ -236,6 +246,7 @@
236246
"AuthTokenType",
237247
"ChatCitation",
238248
"ChatCitationGenerationEvent",
249+
"ChatCitationType",
239250
"ChatConnector",
240251
"ChatContentDeltaEvent",
241252
"ChatContentDeltaEventDelta",
@@ -304,6 +315,7 @@
304315
"CitationStartEventDelta",
305316
"CitationStartEventDeltaMessage",
306317
"CitationStartStreamedChatResponseV2",
318+
"CitationType",
307319
"ClassifyDataMetrics",
308320
"ClassifyExample",
309321
"ClassifyRequestTruncate",

src/cohere/types/chat_citation.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from ..core.unchecked_base_model import UncheckedBaseModel
44
import pydantic
55
import typing
6+
from .chat_citation_type import ChatCitationType
67
from ..core.pydantic_utilities import IS_PYDANTIC_V2
78

89

@@ -31,6 +32,11 @@ class ChatCitation(UncheckedBaseModel):
3132
Identifiers of documents cited by this section of the generated reply.
3233
"""
3334

35+
type: typing.Optional[ChatCitationType] = pydantic.Field(default=None)
36+
"""
37+
The type of citation which indicates what part of the response the citation is for.
38+
"""
39+
3440
if IS_PYDANTIC_V2:
3541
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2
3642
else:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
ChatCitationType = typing.Union[typing.Literal["TEXT_CONTENT", "PLAN"], typing.Any]

src/cohere/types/citation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import typing
55
import pydantic
66
from .source import Source
7+
from .citation_type import CitationType
78
from ..core.pydantic_utilities import IS_PYDANTIC_V2
89

910

@@ -28,6 +29,7 @@ class Citation(UncheckedBaseModel):
2829
"""
2930

3031
sources: typing.Optional[typing.List[Source]] = None
32+
type: typing.Optional[CitationType] = None
3133

3234
if IS_PYDANTIC_V2:
3335
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2

src/cohere/types/citation_type.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
CitationType = typing.Union[typing.Literal["TEXT_CONTENT", "PLAN"], typing.Any]

0 commit comments

Comments
 (0)