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
98 changes: 70 additions & 28 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ generation:
sdkHooksConfigAccess: true
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 1.6.4
version: 1.6.5
additionalDependencies:
dev: {}
main: {}
Expand Down Expand Up @@ -58,11 +59,14 @@ python:
operations: ""
shared: ""
webhooks: ""
inferUnionDiscriminators: true
inputModelSuffix: input
legacyPyright: true
license: ""
maxMethodParams: 999
methodArguments: infer-optional-args
moduleName: ""
multipartArrayFormat: legacy
outputModelSuffix: output
packageManager: poetry
packageName: opperai
Expand Down
26 changes: 26 additions & 0 deletions .speakeasy/speakeasy-modifications-overlay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -804,4 +804,30 @@ actions:
before: sdk.knowledge.delete_documents_knowledge__knowledge_base_id__query_delete()
created_at: 1762265966139
reviewed_at: 1762265978991
- target: $["paths"]["/knowledge/{knowledge_base_id}/query"]["delete"]
update:
x-speakeasy-name-override: deleteDocuments
x-speakeasy-metadata:
after: sdk.knowledge.deleteDocuments()
before: sdk.knowledge.deleteDocumentsKnowledgeKnowledgeBaseIdQueryDelete()
created_at: 1751029113444
reviewed_at: 1751029118113
type: method-name
- target: $["paths"]["/knowledge/{knowledge_base_id}/files"]["get"]
update:
x-speakeasy-name-override: listFiles
x-speakeasy-metadata:
after: sdk.knowledge.listFiles()
before: sdk.knowledge.listFilesKnowledgeKnowledgeBaseIdFilesGet()
created_at: 1732439000000
reviewed_at: 1732439000000
type: method-name
- target: $["paths"]["/knowledge/{knowledge_base_id}/files/{file_id}/download_url"]["get"]
update:
x-speakeasy-name-override: getFileDownloadUrl
x-speakeasy-metadata:
after: sdk.knowledge.getFileDownloadUrl()
before: sdk.knowledge.get_file_download_url_knowledge__knowledge_base_id__files__file_id__download_url_get()
created_at: 1732872000000
reviewed_at: 1732872000000
type: method-name
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.648.0
speakeasyVersion: 1.664.0
sources:
FastAPI:
sourceNamespace: fast-api
sourceRevisionDigest: sha256:7f6113b631e591c5172b1fecf220daf1e60612c9d0b960fbf174ec61d4576e9f
sourceBlobDigest: sha256:d1c93e3507577ac57bb74e778dc551fdeb807d6e786fc7fd67d36857bc824926
sourceRevisionDigest: sha256:13e03f4bb2d2e45398714ef484f5d060570653dbf652ca0bc2d3b03c051da7f1
sourceBlobDigest: sha256:675e1b26aa256bad5e337faa07b1a3b907a34836d515f33542cee6b2b52ff195
tags:
- latest
- 2.0.0
targets:
opper:
source: FastAPI
sourceNamespace: fast-api
sourceRevisionDigest: sha256:7f6113b631e591c5172b1fecf220daf1e60612c9d0b960fbf174ec61d4576e9f
sourceBlobDigest: sha256:d1c93e3507577ac57bb74e778dc551fdeb807d6e786fc7fd67d36857bc824926
sourceRevisionDigest: sha256:13e03f4bb2d2e45398714ef484f5d060570653dbf652ca0bc2d3b03c051da7f1
sourceBlobDigest: sha256:675e1b26aa256bad5e337faa07b1a3b907a34836d515f33542cee6b2b52ff195
codeSamplesNamespace: fast-api-python-code-samples
codeSamplesRevisionDigest: sha256:ff9823a33bef438987661b4235c4ebf0fb9b91189578dc6f5433524146185510
codeSamplesRevisionDigest: sha256:0d7ea2f726f0c386f9ddb792d1f74d817de3821fc0c04618ffb9b20b7e86620d
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
16 changes: 4 additions & 12 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- Start SDK Example Usage [usage] -->
```python
# Synchronous Example
from opperai import Opper, models
from opperai import Opper
import os


Expand Down Expand Up @@ -55,11 +55,7 @@ with Opper(
], parent_span_id="123e4567-e89b-12d3-a456-426614174000", tags={
"project": "project_456",
"user": "company_123",
}, configuration=models.FunctionCallConfiguration(
beta_evaluation=models.EvaluationConfig(
scorers=models.ScorersEnum1.BASE,
),
))
}, configuration={})

# Handle response
print(res)
Expand All @@ -72,7 +68,7 @@ The same SDK client can also be used to make asynchronous requests by importing
```python
# Asynchronous Example
import asyncio
from opperai import Opper, models
from opperai import Opper
import os

async def main():
Expand Down Expand Up @@ -127,11 +123,7 @@ async def main():
], parent_span_id="123e4567-e89b-12d3-a456-426614174000", tags={
"project": "project_456",
"user": "company_123",
}, configuration=models.FunctionCallConfiguration(
beta_evaluation=models.EvaluationConfig(
scorers=models.ScorersEnum1.BASE,
),
))
}, configuration={})

# Handle response
print(res)
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/models/createfunctionrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
| `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/>} |
| `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/>} |
| `model` | [Optional[models.TModel]](../models/tmodel.md) | :heavy_minus_sign: | N/A | |
| `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/>} |
| `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/>} |
Loading