Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: c75567cf-9def-4617-8ae7-65af6f367b68
management:
docChecksum: cd76cd0f868fa6f3c5147f51bb53b2b4
docChecksum: ff2247ed1c3b586f7ee32e12fd43b95b
docVersion: 2.0.0
speakeasyVersion: 1.570.3
generationVersion: 2.639.2
releaseVersion: 1.1.0
configChecksum: 94df2328ac542a5e5b2a84c48d9bc4d3
speakeasyVersion: 1.571.1
generationVersion: 2.640.2
releaseVersion: 1.1.1
configChecksum: cc35e17a5271273564bb347b3f72bf56
features:
python:
additionalDependencies: 1.0.0
Expand Down Expand Up @@ -766,7 +766,7 @@ examples:
path:
span_id: "77b258a2-45c1-4b87-a50c-9116bc8ed1d6"
requestBody:
application/json: {"name": "my span", "start_time": "2025-06-27T11:37:30.236954Z", "type": "email_tool", "end_time": "2025-06-27T11:37:30.237016Z", "input": "Hello, world!", "output": "Hello, world!", "error": "Exception: This is an error message", "meta": {"key": "value"}, "score": 10}
application/json: {"name": "my span", "start_time": "2025-06-27T11:36:36.696834Z", "type": "email_tool", "end_time": "2025-06-27T11:36:36.696870Z", "input": "Hello, world!", "output": "Hello, world!", "error": "Exception: This is an error message", "meta": {"key": "value"}, "score": 10}
responses:
"200":
application/json: {"name": "my span", "start_time": "2024-03-20T10:00:00+00:00", "id": "84d9ffc8-336c-4953-b92f-fe05d5405951", "trace_id": "123e4567-e89b-12d3-a456-426614174000", "parent_id": "123e4567-e89b-12d3-a456-426614174000", "type": "email_tool", "end_time": "2024-03-20T10:00:10+00:00", "input": "Hello, world!", "output": "Hello, world!", "error": "Exception: This is an error message", "meta": {"key": "value"}, "score": 10}
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 1.1.0
version: 1.1.1
additionalDependencies:
dev: {}
main: {}
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/speakeasy-modifications-overlay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ actions:
reviewed_at: 1750924722998
type: method-name
- target: $["paths"]["/knowledge"]["post"]["x-speakeasy-name-override"]
update: creat
update: create
x-speakeasy-metadata:
created_at: 1750925230100
type: user-edit
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.570.3
speakeasyVersion: 1.571.1
sources:
FastAPI:
sourceNamespace: fast-api
sourceRevisionDigest: sha256:adb5fec50e8fd1f8c7cc868716fb7e5fbf39fc756fbdd6fdfe5a2da297b44117
sourceBlobDigest: sha256:0a9aca123316c592439d71ec2d82c03169a61672abb83ea322db326c0dca2c0a
sourceRevisionDigest: sha256:5fc29da1597ef833870ad5b128d4595225e66a8b84ba91159e30d09745db4113
sourceBlobDigest: sha256:4c7c977fb9f5815578e7fa96a4ea7d055225f0dbb6e03b9d90c582bcdb433262
tags:
- latest
- 2.0.0
targets:
opper:
source: FastAPI
sourceNamespace: fast-api
sourceRevisionDigest: sha256:adb5fec50e8fd1f8c7cc868716fb7e5fbf39fc756fbdd6fdfe5a2da297b44117
sourceBlobDigest: sha256:0a9aca123316c592439d71ec2d82c03169a61672abb83ea322db326c0dca2c0a
sourceRevisionDigest: sha256:5fc29da1597ef833870ad5b128d4595225e66a8b84ba91159e30d09745db4113
sourceBlobDigest: sha256:4c7c977fb9f5815578e7fa96a4ea7d055225f0dbb6e03b9d90c582bcdb433262
codeSamplesNamespace: fast-api-python-code-samples
codeSamplesRevisionDigest: sha256:b12527fbb6485ea220536f7dea61d6b3be1edd299f38660c8018d5b79ee06160
codeSamplesRevisionDigest: sha256:edf3a1f2e191af1385a6ff0a43c9491a7d1bcd213a5ca4468e7705da8719b31e
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ with Opper(

### [knowledge](docs/sdks/knowledge/README.md)

* [creat](docs/sdks/knowledge/README.md#creat) - Create Knowledge Base
* [create](docs/sdks/knowledge/README.md#create) - Create Knowledge Base
* [list](docs/sdks/knowledge/README.md#list) - List Knowledge Bases
* [get](docs/sdks/knowledge/README.md#get) - Get Knowledge Base
* [delete](docs/sdks/knowledge/README.md#delete) - Delete Knowledge Base
Expand Down
4 changes: 2 additions & 2 deletions docs/models/updatespanrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the span, something descriptive about the span that will be used to identify it when querying | my span |
| `start_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The start time of the span in UTC | 2025-06-27T11:37:30.236954Z |
| `start_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The start time of the span in UTC | 2025-06-27T11:36:36.696834Z |
| `type` | *OptionalNullable[str]* | :heavy_minus_sign: | The type of the span | email_tool |
| `end_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The end time of the span in UTC | 2025-06-27T11:37:30.237016Z |
| `end_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The end time of the span in UTC | 2025-06-27T11:36:36.696870Z |
| `input` | *OptionalNullable[str]* | :heavy_minus_sign: | The input of the span | Hello, world! |
| `output` | *OptionalNullable[str]* | :heavy_minus_sign: | The output of the span | Hello, world! |
| `error` | *OptionalNullable[str]* | :heavy_minus_sign: | In case of an error, the error message | Exception: This is an error message |
Expand Down
6 changes: 3 additions & 3 deletions docs/sdks/knowledge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

### Available Operations

* [creat](#creat) - Create Knowledge Base
* [create](#create) - Create Knowledge Base
* [list](#list) - List Knowledge Bases
* [get](#get) - Get Knowledge Base
* [delete](#delete) - Delete Knowledge Base
Expand All @@ -16,7 +16,7 @@
* [query](#query) - Query Knowledge Base
* [add](#add) - Add

## creat
## create

Create a knowledge base

Expand All @@ -31,7 +31,7 @@ with Opper(
http_bearer=os.getenv("OPPER_HTTP_BEARER", ""),
) as opper:

res = opper.knowledge.creat(name="<value>", embedding_model="azure/text-embedding-3-large")
res = opper.knowledge.create(name="<value>", embedding_model="azure/text-embedding-3-large")

# Handle response
print(res)
Expand Down
6 changes: 3 additions & 3 deletions docs/sdks/spans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ with Opper(
http_bearer=os.getenv("OPPER_HTTP_BEARER", ""),
) as opper:

res = opper.spans.update(span_id="77b258a2-45c1-4b87-a50c-9116bc8ed1d6", name="my span", start_time=parse_datetime("2025-06-27T11:37:30.236954Z"), type="email_tool", end_time=parse_datetime("2025-06-27T11:37:30.237016Z"), input="Hello, world!", output="Hello, world!", error="Exception: This is an error message", meta={
res = opper.spans.update(span_id="77b258a2-45c1-4b87-a50c-9116bc8ed1d6", name="my span", start_time=parse_datetime("2025-06-27T11:36:36.696834Z"), type="email_tool", end_time=parse_datetime("2025-06-27T11:36:36.696870Z"), input="Hello, world!", output="Hello, world!", error="Exception: This is an error message", meta={
"key": "value",
}, score=10)

Expand All @@ -142,9 +142,9 @@ with Opper(
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| `span_id` | *str* | :heavy_check_mark: | The ID of the span to update | |
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the span, something descriptive about the span that will be used to identify it when querying | my span |
| `start_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The start time of the span in UTC | 2025-06-27T11:37:30.236954Z |
| `start_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The start time of the span in UTC | 2025-06-27T11:36:36.696834Z |
| `type` | *OptionalNullable[str]* | :heavy_minus_sign: | The type of the span | email_tool |
| `end_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The end time of the span in UTC | 2025-06-27T11:37:30.237016Z |
| `end_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The end time of the span in UTC | 2025-06-27T11:36:36.696870Z |
| `input` | *OptionalNullable[str]* | :heavy_minus_sign: | The input of the span | Hello, world! |
| `output` | *OptionalNullable[str]* | :heavy_minus_sign: | The output of the span | Hello, world! |
| `error` | *OptionalNullable[str]* | :heavy_minus_sign: | In case of an error, the error message | Exception: This is an error message |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "opperai"
version = "1.1.0"
version = "1.1.1"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Speakeasy" },]
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions src/opperai/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "opperai"
__version__: str = "1.1.0"
__version__: str = "1.1.1"
__openapi_doc_version__: str = "2.0.0"
__gen_version__: str = "2.639.2"
__user_agent__: str = "speakeasy-sdk/python 1.1.0 2.639.2 2.0.0 opperai"
__gen_version__: str = "2.640.2"
__user_agent__: str = "speakeasy-sdk/python 1.1.1 2.640.2 2.0.0 opperai"

try:
if __package__ is not None:
Expand Down
4 changes: 2 additions & 2 deletions src/opperai/knowledge.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class Knowledge(BaseSDK):
def creat(
def create(
self,
*,
name: str,
Expand Down Expand Up @@ -132,7 +132,7 @@ def creat(
http_res,
)

async def creat_async(
async def create_async(
self,
*,
name: str,
Expand Down