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
216 changes: 147 additions & 69 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.81
version: 1.3.82
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
160 changes: 159 additions & 1 deletion .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2765,6 +2765,153 @@ components:
- 'content'
- 'tool_use_id'
type: 'object'
AnthropicToolUnion:
description: 'An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).'
example:
description: 'Get the current weather for a city.'
input_schema:
properties:
city:
type: 'string'
required:
- 'city'
type: 'object'
name: 'get_weather'
oneOf:
- properties:
cache_control:
$ref: '#/components/schemas/AnthropicCacheControlDirective'
defer_loading:
type: 'boolean'
description:
type: 'string'
input_schema:
additionalProperties: {}
properties:
properties: {}
required:
items:
type: 'string'
type:
- 'array'
- 'null'
type:
enum:
- 'object'
type: 'string'
required:
- 'type'
type: 'object'
name:
type: 'string'
strict:
type: 'boolean'
type:
enum:
- 'custom'
type: 'string'
required:
- 'name'
- 'input_schema'
type: 'object'
- properties:
cache_control:
$ref: '#/components/schemas/AnthropicCacheControlDirective'
name:
enum:
- 'bash'
type: 'string'
type:
enum:
- 'bash_20250124'
type: 'string'
required:
- 'type'
- 'name'
type: 'object'
- properties:
cache_control:
$ref: '#/components/schemas/AnthropicCacheControlDirective'
name:
enum:
- 'str_replace_editor'
type: 'string'
type:
enum:
- 'text_editor_20250124'
type: 'string'
required:
- 'type'
- 'name'
type: 'object'
- properties:
allowed_domains:
items:
type: 'string'
type:
- 'array'
- 'null'
blocked_domains:
items:
type: 'string'
type:
- 'array'
- 'null'
cache_control:
$ref: '#/components/schemas/AnthropicCacheControlDirective'
max_uses:
type:
- 'integer'
- 'null'
name:
enum:
- 'web_search'
type: 'string'
type:
enum:
- 'web_search_20250305'
type: 'string'
user_location:
$ref: '#/components/schemas/AnthropicWebSearchToolUserLocation'
required:
- 'type'
- 'name'
type: 'object'
- properties:
allowed_callers:
$ref: '#/components/schemas/AnthropicAllowedCallers'
allowed_domains:
items:
type: 'string'
type:
- 'array'
- 'null'
blocked_domains:
items:
type: 'string'
type:
- 'array'
- 'null'
cache_control:
$ref: '#/components/schemas/AnthropicCacheControlDirective'
max_uses:
type:
- 'integer'
- 'null'
name:
enum:
- 'web_search'
type: 'string'
type:
enum:
- 'web_search_20260209'
type: 'string'
user_location:
$ref: '#/components/schemas/AnthropicWebSearchToolUserLocation'
required:
- 'type'
- 'name'
type: 'object'
AnthropicToolUseBlock:
example:
caller:
Expand Down Expand Up @@ -17985,7 +18132,7 @@ components:
- 'data'
type: 'object'
MessagesToolAdditionBlock:
description: 'Loads a previously deferred tool (declared in `tools` with `defer_loading: true`) mid-conversation without invalidating the prompt cache. Only valid in `role: "system"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.'
description: 'Adds a tool mid-conversation without invalidating the prompt cache: either a previously deferred tool (declared in `tools` with `defer_loading: true`, referenced by name) or a full inline `tool_definition`. Only valid in `role: "system"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.'
example:
tool:
name: 'get_forecast'
Expand Down Expand Up @@ -18032,6 +18179,17 @@ components:
- 'type'
- 'server_name'
type: 'object'
- properties:
definition:
$ref: '#/components/schemas/AnthropicToolUnion'
type:
enum:
- 'tool_definition'
type: 'string'
required:
- 'type'
- 'definition'
type: 'object'
type:
enum:
- 'tool_addition'
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:ee5f48654c6e8f4f447cfbc93f4f85d1c5f5ac1915d31b7ad375974c28cac57e
sourceBlobDigest: sha256:138d3ed8f13d0140ddf709b0e4503936e094405c46af293f092ada3c97eddcc8
sourceRevisionDigest: sha256:038e56b2c3b2cf3c81df89a8a2313957f3613b5e3b0094187e084dc2e8e7e27a
sourceBlobDigest: sha256:60ac6a4d7eaa2d67c97a0a2ebe4b776a40ebf0674fa3e717fa9a67f8920fbd45
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:ee5f48654c6e8f4f447cfbc93f4f85d1c5f5ac1915d31b7ad375974c28cac57e
sourceBlobDigest: sha256:138d3ed8f13d0140ddf709b0e4503936e094405c46af293f092ada3c97eddcc8
sourceRevisionDigest: sha256:038e56b2c3b2cf3c81df89a8a2313957f3613b5e3b0094187e084dc2e8e7e27a
sourceBlobDigest: sha256:60ac6a4d7eaa2d67c97a0a2ebe4b776a40ebf0674fa3e717fa9a67f8920fbd45
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:85a4f2e4f0cd3a3e0395cea39481be87905a4fd8c36cbdcf47036a85e58fc560
codeSamplesRevisionDigest: sha256:d96edd7519c09a0538c39859014b269f5c03fbab1e4ac43c85342e72a7656b7d
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3579,4 +3579,14 @@ Based on:
### Generated
- [python v1.3.81] .
### Releases
- [PyPI v1.3.81] https://pypi.org/project/openrouter/1.3.81 - .
- [PyPI v1.3.81] https://pypi.org/project/openrouter/1.3.81 - .

## 2026-10-26 21:02:38
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.82] .
### Releases
- [PyPI v1.3.82] https://pypi.org/project/openrouter/1.3.82 - .
39 changes: 39 additions & 0 deletions docs/components/anthropictoolunion.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: "AnthropicToolUnion"
---

An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).


## Supported Types

### `components.AnthropicToolUnionCustom`

```python
value: components.AnthropicToolUnionCustom = /* values here */
```

### `components.AnthropicToolUnionBash20250124`

```python
value: components.AnthropicToolUnionBash20250124 = /* values here */
```

### `components.AnthropicToolUnionTextEditor20250124`

```python
value: components.AnthropicToolUnionTextEditor20250124 = /* values here */
```

### `components.AnthropicToolUnionWebSearch20250305`

```python
value: components.AnthropicToolUnionWebSearch20250305 = /* values here */
```

### `components.AnthropicToolUnionWebSearch20260209`

```python
value: components.AnthropicToolUnionWebSearch20260209 = /* values here */
```

11 changes: 11 additions & 0 deletions docs/components/anthropictoolunionbash20250124.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "AnthropicToolUnionBash20250124"
---

## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `cache_control` | [Optional[components.AnthropicCacheControlDirective]](../components/anthropiccachecontroldirective.mdx) | ➖ | Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. | \{<br/>"type": "ephemeral"<br/>} |
| `name` | [components.AnthropicToolUnionNameBash](../components/anthropictoolunionnamebash.mdx) | ✅ | N/A | |
| `type` | [components.AnthropicToolUnionTypeBash20250124](../components/anthropictooluniontypebash20250124.mdx) | ✅ | N/A | |
Loading