Skip to content

Commit 47f2258

Browse files
SDK regeneration (#48)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent c77c7e1 commit 47f2258

File tree

8 files changed

+23
-20
lines changed

8 files changed

+23
-20
lines changed

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

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

44
[tool.poetry]
55
name = "credal"
6-
version = "0.1.0"
6+
version = "0.1.1"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ client = CredalApi(
862862
)
863863
client.document_catalog.upload_document_contents(
864864
document_name="My Document",
865-
document_contents="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
865+
document_contents="Lorem ipsum...",
866866
document_external_id="73eead26-d124-4940-b329-5f068a0a8db9",
867867
allowed_users_email_addresses=["[email protected]", "[email protected]"],
868868
upload_as_user_email="[email protected]",
@@ -930,7 +930,7 @@ client.document_catalog.upload_document_contents(
930930
<dl>
931931
<dd>
932932

933-
**custom_metadata:** `typing.Optional[typing.Optional[typing.Any]]` — Optional JSON representing any custom metdata for this document
933+
**custom_metadata:** `typing.Optional[typing.Optional[typing.Any]]` — Optional JSON representing any custom metadata for this document
934934

935935
</dd>
936936
</dl>
@@ -1543,7 +1543,7 @@ client = CredalApi(
15431543
api_key="YOUR_API_KEY",
15441544
)
15451545
client.document_collections.create_mongo_collection_sync(
1546-
mongo_uri="mongodb+srv://cluster0.hzwklqn.mongodb.net/Cluster0?retryWrites=true&w=majority",
1546+
mongo_uri="mongodb+srv://cluster0.abcdefg.mongodb.net/Cluster0?retryWrites=true&w=majority",
15471547
collection_id=uuid.UUID(
15481548
"ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
15491549
),
@@ -1649,7 +1649,7 @@ client = CredalApi(
16491649
api_key="YOUR_API_KEY",
16501650
)
16511651
client.document_collections.update_mongo_collection_sync(
1652-
mongo_uri="mongodb+srv://cluster0.hzwklqn.mongodb.net/Cluster0?retryWrites=true&w=majority",
1652+
mongo_uri="mongodb+srv://cluster0.abcdefg.mongodb.net/Cluster0?retryWrites=true&w=majority",
16531653
mongo_credential_id=uuid.UUID(
16541654
"5988ed76-6ee1-11ef-97dd-1fca54b7c4bc",
16551655
),

src/credal/copilots/types/response_chunk.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
class ResponseChunk(UniversalBaseModel):
1212
message: str
1313
data_chunk: typing_extensions.Annotated[str, FieldMetadata(alias="dataChunk")]
14+
structured_output: typing_extensions.Annotated[
15+
typing.Optional[typing.Optional[typing.Any]], FieldMetadata(alias="structuredOutput")
16+
] = None
1417

1518
if IS_PYDANTIC_V2:
1619
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/credal/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "credal/0.1.0",
25+
"User-Agent": "credal/0.1.1",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "credal",
28-
"X-Fern-SDK-Version": "0.1.0",
28+
"X-Fern-SDK-Version": "0.1.1",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
headers["Authorization"] = f"Bearer {self._get_api_key()}"

src/credal/document_catalog/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def upload_document_contents(
6565
The external URL of the document you want to upload. If provided Credal will link to this URL.
6666
6767
custom_metadata : typing.Optional[typing.Optional[typing.Any]]
68-
Optional JSON representing any custom metdata for this document
68+
Optional JSON representing any custom metadata for this document
6969
7070
collection_id : typing.Optional[str]
7171
If specified, document will also be added to a particular document collection
@@ -92,7 +92,7 @@ def upload_document_contents(
9292
)
9393
client.document_catalog.upload_document_contents(
9494
document_name="My Document",
95-
document_contents="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
95+
document_contents="Lorem ipsum...",
9696
document_external_id="73eead26-d124-4940-b329-5f068a0a8db9",
9797
allowed_users_email_addresses=["[email protected]", "[email protected]"],
9898
upload_as_user_email="[email protected]",
@@ -259,7 +259,7 @@ async def upload_document_contents(
259259
The external URL of the document you want to upload. If provided Credal will link to this URL.
260260
261261
custom_metadata : typing.Optional[typing.Optional[typing.Any]]
262-
Optional JSON representing any custom metdata for this document
262+
Optional JSON representing any custom metadata for this document
263263
264264
collection_id : typing.Optional[str]
265265
If specified, document will also be added to a particular document collection
@@ -291,7 +291,7 @@ async def upload_document_contents(
291291
async def main() -> None:
292292
await client.document_catalog.upload_document_contents(
293293
document_name="My Document",
294-
document_contents="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
294+
document_contents="Lorem ipsum...",
295295
document_external_id="73eead26-d124-4940-b329-5f068a0a8db9",
296296
allowed_users_email_addresses=["[email protected]", "[email protected]"],
297297
upload_as_user_email="[email protected]",

src/credal/document_catalog/raw_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def upload_document_contents(
5858
The external URL of the document you want to upload. If provided Credal will link to this URL.
5959
6060
custom_metadata : typing.Optional[typing.Optional[typing.Any]]
61-
Optional JSON representing any custom metdata for this document
61+
Optional JSON representing any custom metadata for this document
6262
6363
collection_id : typing.Optional[str]
6464
If specified, document will also be added to a particular document collection
@@ -238,7 +238,7 @@ async def upload_document_contents(
238238
The external URL of the document you want to upload. If provided Credal will link to this URL.
239239
240240
custom_metadata : typing.Optional[typing.Optional[typing.Any]]
241-
Optional JSON representing any custom metdata for this document
241+
Optional JSON representing any custom metadata for this document
242242
243243
collection_id : typing.Optional[str]
244244
If specified, document will also be added to a particular document collection

src/credal/document_collections/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def create_mongo_collection_sync(
272272
api_key="YOUR_API_KEY",
273273
)
274274
client.document_collections.create_mongo_collection_sync(
275-
mongo_uri="mongodb+srv://cluster0.hzwklqn.mongodb.net/Cluster0?retryWrites=true&w=majority",
275+
mongo_uri="mongodb+srv://cluster0.abcdefg.mongodb.net/Cluster0?retryWrites=true&w=majority",
276276
collection_id=uuid.UUID(
277277
"ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
278278
),
@@ -334,7 +334,7 @@ def update_mongo_collection_sync(
334334
api_key="YOUR_API_KEY",
335335
)
336336
client.document_collections.update_mongo_collection_sync(
337-
mongo_uri="mongodb+srv://cluster0.hzwklqn.mongodb.net/Cluster0?retryWrites=true&w=majority",
337+
mongo_uri="mongodb+srv://cluster0.abcdefg.mongodb.net/Cluster0?retryWrites=true&w=majority",
338338
mongo_credential_id=uuid.UUID(
339339
"5988ed76-6ee1-11ef-97dd-1fca54b7c4bc",
340340
),
@@ -649,7 +649,7 @@ async def create_mongo_collection_sync(
649649
650650
async def main() -> None:
651651
await client.document_collections.create_mongo_collection_sync(
652-
mongo_uri="mongodb+srv://cluster0.hzwklqn.mongodb.net/Cluster0?retryWrites=true&w=majority",
652+
mongo_uri="mongodb+srv://cluster0.abcdefg.mongodb.net/Cluster0?retryWrites=true&w=majority",
653653
collection_id=uuid.UUID(
654654
"ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
655655
),
@@ -718,7 +718,7 @@ async def update_mongo_collection_sync(
718718
719719
async def main() -> None:
720720
await client.document_collections.update_mongo_collection_sync(
721-
mongo_uri="mongodb+srv://cluster0.hzwklqn.mongodb.net/Cluster0?retryWrites=true&w=majority",
721+
mongo_uri="mongodb+srv://cluster0.abcdefg.mongodb.net/Cluster0?retryWrites=true&w=majority",
722722
mongo_credential_id=uuid.UUID(
723723
"5988ed76-6ee1-11ef-97dd-1fca54b7c4bc",
724724
),

0 commit comments

Comments
 (0)