Skip to content

Commit fb7dcff

Browse files
authored
Add several new overrides (#112)
* add new file endpoints and overrides * regenerate
1 parent 318d3ac commit fb7dcff

74 files changed

Lines changed: 1529 additions & 491 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.

.speakeasy/gen.lock

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

.speakeasy/gen.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ generation:
2323
sdkHooksConfigAccess: true
2424
schemas:
2525
allOfMergeStrategy: shallowMerge
26+
requestBodyFieldName: ""
2627
tests:
2728
generateTests: true
2829
generateNewTests: false
2930
skipResponseBodyAssertions: false
3031
python:
31-
version: 1.6.4
32+
version: 1.6.5
3233
additionalDependencies:
3334
dev: {}
3435
main: {}
@@ -58,11 +59,14 @@ python:
5859
operations: ""
5960
shared: ""
6061
webhooks: ""
62+
inferUnionDiscriminators: true
6163
inputModelSuffix: input
6264
legacyPyright: true
65+
license: ""
6366
maxMethodParams: 999
6467
methodArguments: infer-optional-args
6568
moduleName: ""
69+
multipartArrayFormat: legacy
6670
outputModelSuffix: output
6771
packageManager: poetry
6872
packageName: opperai

.speakeasy/speakeasy-modifications-overlay.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,4 +804,30 @@ actions:
804804
before: sdk.knowledge.delete_documents_knowledge__knowledge_base_id__query_delete()
805805
created_at: 1762265966139
806806
reviewed_at: 1762265978991
807+
- target: $["paths"]["/knowledge/{knowledge_base_id}/query"]["delete"]
808+
update:
809+
x-speakeasy-name-override: deleteDocuments
810+
x-speakeasy-metadata:
811+
after: sdk.knowledge.deleteDocuments()
812+
before: sdk.knowledge.deleteDocumentsKnowledgeKnowledgeBaseIdQueryDelete()
813+
created_at: 1751029113444
814+
reviewed_at: 1751029118113
815+
type: method-name
816+
- target: $["paths"]["/knowledge/{knowledge_base_id}/files"]["get"]
817+
update:
818+
x-speakeasy-name-override: listFiles
819+
x-speakeasy-metadata:
820+
after: sdk.knowledge.listFiles()
821+
before: sdk.knowledge.listFilesKnowledgeKnowledgeBaseIdFilesGet()
822+
created_at: 1732439000000
823+
reviewed_at: 1732439000000
824+
type: method-name
825+
- target: $["paths"]["/knowledge/{knowledge_base_id}/files/{file_id}/download_url"]["get"]
826+
update:
827+
x-speakeasy-name-override: getFileDownloadUrl
828+
x-speakeasy-metadata:
829+
after: sdk.knowledge.getFileDownloadUrl()
830+
before: sdk.knowledge.get_file_download_url_knowledge__knowledge_base_id__files__file_id__download_url_get()
831+
created_at: 1732872000000
832+
reviewed_at: 1732872000000
807833
type: method-name

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
speakeasyVersion: 1.648.0
1+
speakeasyVersion: 1.664.0
22
sources:
33
FastAPI:
44
sourceNamespace: fast-api
5-
sourceRevisionDigest: sha256:7f6113b631e591c5172b1fecf220daf1e60612c9d0b960fbf174ec61d4576e9f
6-
sourceBlobDigest: sha256:d1c93e3507577ac57bb74e778dc551fdeb807d6e786fc7fd67d36857bc824926
5+
sourceRevisionDigest: sha256:13e03f4bb2d2e45398714ef484f5d060570653dbf652ca0bc2d3b03c051da7f1
6+
sourceBlobDigest: sha256:675e1b26aa256bad5e337faa07b1a3b907a34836d515f33542cee6b2b52ff195
77
tags:
88
- latest
99
- 2.0.0
1010
targets:
1111
opper:
1212
source: FastAPI
1313
sourceNamespace: fast-api
14-
sourceRevisionDigest: sha256:7f6113b631e591c5172b1fecf220daf1e60612c9d0b960fbf174ec61d4576e9f
15-
sourceBlobDigest: sha256:d1c93e3507577ac57bb74e778dc551fdeb807d6e786fc7fd67d36857bc824926
14+
sourceRevisionDigest: sha256:13e03f4bb2d2e45398714ef484f5d060570653dbf652ca0bc2d3b03c051da7f1
15+
sourceBlobDigest: sha256:675e1b26aa256bad5e337faa07b1a3b907a34836d515f33542cee6b2b52ff195
1616
codeSamplesNamespace: fast-api-python-code-samples
17-
codeSamplesRevisionDigest: sha256:ff9823a33bef438987661b4235c4ebf0fb9b91189578dc6f5433524146185510
17+
codeSamplesRevisionDigest: sha256:0d7ea2f726f0c386f9ddb792d1f74d817de3821fc0c04618ffb9b20b7e86620d
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest

USAGE.md

Lines changed: 4 additions & 12 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, models
4+
from opperai import Opper
55
import os
66

77

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

6460
# Handle response
6561
print(res)
@@ -72,7 +68,7 @@ The same SDK client can also be used to make asynchronous requests by importing
7268
```python
7369
# Asynchronous Example
7470
import asyncio
75-
from opperai import Opper, models
71+
from opperai import Opper
7672
import os
7773

7874
async def main():
@@ -127,11 +123,7 @@ async def main():
127123
], parent_span_id="123e4567-e89b-12d3-a456-426614174000", tags={
128124
"project": "project_456",
129125
"user": "company_123",
130-
}, configuration=models.FunctionCallConfiguration(
131-
beta_evaluation=models.EvaluationConfig(
132-
scorers=models.ScorersEnum1.BASE,
133-
),
134-
))
126+
}, configuration={})
135127

136128
# Handle response
137129
print(res)

docs/models/appapipublicv2functioncallcallfunctionrequest.md

Lines changed: 1 addition & 1 deletion
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": {<br/>"enabled": true,<br/>"scorers": "base"<br/>},<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/>} |
14+
| `configuration` | [OptionalNullable[models.FunctionCallConfigurationInput]](../models/functioncallconfigurationinput.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.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)