Skip to content

Commit d3f2b9c

Browse files
github-actions[bot]opper-bot
andauthored
chore: update SDK via automated generation (#105)
- Run speakeasy generation - Apply parameter name fixes - Apply schema conversion patches Generated on: 2025-10-01 08:41:09 UTC 🤖 This PR was created automatically by the SDK generation workflow. Co-authored-by: opper-bot <bot@opper.ai>
1 parent 502aa45 commit d3f2b9c

87 files changed

Lines changed: 3737 additions & 221 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.local
13
.venv/
24
venv/
35
src/*.egg-info/

.speakeasy/gen.lock

Lines changed: 192 additions & 20 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,21 @@ generation:
1919
auth:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: true
22+
hoistGlobalSecurity: true
2223
sdkHooksConfigAccess: true
2324
tests:
2425
generateTests: true
2526
generateNewTests: false
2627
skipResponseBodyAssertions: false
2728
python:
28-
version: 1.1.2
29+
version: 1.2.0
2930
additionalDependencies:
3031
dev: {}
3132
main: {}
33+
allowedRedefinedBuiltins:
34+
- id
35+
- object
36+
asyncMode: both
3237
authors:
3338
- Speakeasy
3439
baseErrorName: OpperError
@@ -52,6 +57,7 @@ python:
5257
shared: ""
5358
webhooks: ""
5459
inputModelSuffix: input
60+
legacyPyright: true
5561
maxMethodParams: 999
5662
methodArguments: infer-optional-args
5763
moduleName: ""
@@ -61,4 +67,5 @@ python:
6167
pytestFilterWarnings: []
6268
pytestTimeout: 0
6369
responseFormat: flat
70+
sseFlatResponse: false
6471
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.606.0
1+
speakeasyVersion: 1.631.5
22
sources:
33
FastAPI:
44
sourceNamespace: fast-api
5-
sourceRevisionDigest: sha256:5772c64236cbc1d9c2a20573faf2057c841b20f30bc1894e620c30ad527f2060
6-
sourceBlobDigest: sha256:1ab952950af4cdbccb747d11b116747f35687d8e5c70e1721a8a37fee406246b
5+
sourceRevisionDigest: sha256:44da31c3b61348071744b965d8698bc8496298fa2f56bce62a3d2d3aaee54039
6+
sourceBlobDigest: sha256:e6eed40b1494a6523edaf7e902d4bc85e45d25622df091b340b9afad57c92551
77
tags:
88
- latest
99
- main
@@ -12,10 +12,10 @@ targets:
1212
opper:
1313
source: FastAPI
1414
sourceNamespace: fast-api
15-
sourceRevisionDigest: sha256:5772c64236cbc1d9c2a20573faf2057c841b20f30bc1894e620c30ad527f2060
16-
sourceBlobDigest: sha256:1ab952950af4cdbccb747d11b116747f35687d8e5c70e1721a8a37fee406246b
15+
sourceRevisionDigest: sha256:44da31c3b61348071744b965d8698bc8496298fa2f56bce62a3d2d3aaee54039
16+
sourceBlobDigest: sha256:e6eed40b1494a6523edaf7e902d4bc85e45d25622df091b340b9afad57c92551
1717
codeSamplesNamespace: fast-api-python-code-samples
18-
codeSamplesRevisionDigest: sha256:c56fdf07a23106556ee939b20c73a212e38095cb90318cee6ff8601988a59869
18+
codeSamplesRevisionDigest: sha256:5545c71809f8d68a52a9c4a09a51fecac08e3079e50218385de7b263d4a415f9
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

USAGE.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Start SDK Example Usage [usage] -->
22
```python
33
# Synchronous Example
4-
from opperai import Opper
4+
from opperai import Opper, models
55
import os
66

77

@@ -55,7 +55,11 @@ with Opper(
5555
], parent_span_id="123e4567-e89b-12d3-a456-426614174000", tags={
5656
"project": "project_456",
5757
"user": "company_123",
58-
}, configuration={})
58+
}, configuration=models.FunctionCallConfiguration(
59+
beta_evaluation=models.EvaluationConfig(
60+
scorers=models.ScorersEnum1.BASE,
61+
),
62+
))
5963

6064
# Handle response
6165
print(res)
@@ -64,10 +68,11 @@ with Opper(
6468
</br>
6569

6670
The same SDK client can also be used to make asynchronous requests by importing asyncio.
71+
6772
```python
6873
# Asynchronous Example
6974
import asyncio
70-
from opperai import Opper
75+
from opperai import Opper, models
7176
import os
7277

7378
async def main():
@@ -122,7 +127,11 @@ async def main():
122127
], parent_span_id="123e4567-e89b-12d3-a456-426614174000", tags={
123128
"project": "project_456",
124129
"user": "company_123",
125-
}, configuration={})
130+
}, configuration=models.FunctionCallConfiguration(
131+
beta_evaluation=models.EvaluationConfig(
132+
scorers=models.ScorersEnum1.BASE,
133+
),
134+
))
126135

127136
# Handle response
128137
print(res)

docs/models/appapipublicv2functioncallcallfunctionrequest.md

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

docs/models/createfunctionrequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
| `input_schema` | Dict[str, *Any*] | :heavy_minus_sign: | Optional input schema for the function. Can preferably include field descriptions to allow the model to reason about the input variables. Schema is validated against the input data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {<br/>"properties": {<br/>"x": {<br/>"title": "X",<br/>"type": "integer"<br/>},<br/>"y": {<br/>"title": "Y",<br/>"type": "integer"<br/>}<br/>},<br/>"required": [<br/>"x",<br/>"y"<br/>],<br/>"title": "OpperInputExample",<br/>"type": "object"<br/>} |
1212
| `output_schema` | Dict[str, *Any*] | :heavy_minus_sign: | Optional output schema for the function. Can preferably include field descriptions to allow the model to reason about the output variables. Schema is validated against the output data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {<br/>"properties": {<br/>"sum": {<br/>"title": "Sum",<br/>"type": "integer"<br/>}<br/>},<br/>"required": [<br/>"sum"<br/>],<br/>"title": "OpperOutputExample",<br/>"type": "object"<br/>} |
1313
| `model` | [Optional[models.TModel]](../models/tmodel.md) | :heavy_minus_sign: | N/A | |
14-
| `configuration` | [OptionalNullable[models.FunctionCallConfiguration]](../models/functioncallconfiguration.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {<br/>"beta.evaluation.enabled": true,<br/>"invocation.cache.ttl": 0,<br/>"invocation.few_shot.count": 0,<br/>"invocation.structured_generation.max_attempts": 5<br/>} |
14+
| `configuration` | [OptionalNullable[models.FunctionCallConfiguration]](../models/functioncallconfiguration.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {<br/>"beta.evaluation": {<br/>"enabled": true,<br/>"scorers": "base"<br/>},<br/>"beta.evaluation.enabled": true,<br/>"beta.invocation.input_validation.enabled": false,<br/>"beta.invocation.xml_mode.enabled": false,<br/>"invocation.cache.ttl": 0,<br/>"invocation.few_shot.count": 0,<br/>"invocation.structured_generation.max_attempts": 5<br/>} |

0 commit comments

Comments
 (0)