mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
chore: 🐝 Update SDK - Generate (spec change merged) 0.11.19 (#426)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
speakeasybot
speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent
83c16a17c6
commit
8d8b3557fd
@@ -0,0 +1,10 @@
|
||||
---
|
||||
title: "Agent"
|
||||
---
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------- | -------------------------- | -------------------------- | -------------------------- |
|
||||
| `agent_name` | *str* | :heavy_check_mark: | N/A |
|
||||
| `__pydantic_extra__` | Dict[str, *Nullable[Any]*] | :heavy_minus_sign: | N/A |
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
title: "AgentMessageItem"
|
||||
---
|
||||
|
||||
A message routed between agents in a multi-agent session
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `agent` | [OptionalNullable[components.Agent]](../components/agent.mdx) | :heavy_minus_sign: | N/A | |
|
||||
| `author` | *str* | :heavy_check_mark: | N/A | |
|
||||
| `content` | List[[components.AgentMessageItemContentUnion](../components/agentmessageitemcontentunion.mdx)] | :heavy_check_mark: | N/A | |
|
||||
| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
|
||||
| `recipient` | *str* | :heavy_check_mark: | N/A | |
|
||||
| `type` | [components.TypeAgentMessage](../components/typeagentmessage.mdx) | :heavy_check_mark: | N/A | |
|
||||
| `__pydantic_extra__` | Dict[str, *Nullable[Any]*] | :heavy_minus_sign: | N/A | \{<br/>"author": "/root/worker",<br/>"content": [<br/>\{<br/>"text": "Task complete.",<br/>"type": "input_text"<br/>}<br/>],<br/>"recipient": "/root",<br/>"type": "agent_message"<br/>} |
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: "AgentMessageItemContentInputImage"
|
||||
---
|
||||
|
||||
Image input content item
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
||||
| `detail` | [components.AgentMessageItemDetail](../components/agentmessageitemdetail.mdx) | :heavy_check_mark: | N/A |
|
||||
| `image_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
|
||||
| `type` | [components.AgentMessageItemTypeInputImage](../components/agentmessageitemtypeinputimage.mdx) | :heavy_check_mark: | N/A |
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
title: "AgentMessageItemContentUnion"
|
||||
---
|
||||
|
||||
## Supported Types
|
||||
|
||||
### `components.InputText`
|
||||
|
||||
```python
|
||||
value: components.InputText = /* values here */
|
||||
```
|
||||
|
||||
### `components.AgentMessageItemContentInputImage`
|
||||
|
||||
```python
|
||||
value: components.AgentMessageItemContentInputImage = /* values here */
|
||||
```
|
||||
|
||||
### `components.ContentEncryptedContent`
|
||||
|
||||
```python
|
||||
value: components.ContentEncryptedContent = /* values here */
|
||||
```
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
title: "AgentMessageItemDetail"
|
||||
---
|
||||
|
||||
## Example Usage
|
||||
|
||||
```python
|
||||
from openrouter.components import AgentMessageItemDetail
|
||||
|
||||
# Open enum: unrecognized values are captured as UnrecognizedStr
|
||||
value: AgentMessageItemDetail = "auto"
|
||||
```
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
This is an open enum. Unrecognized values will not fail type checks.
|
||||
|
||||
- `"auto"`
|
||||
- `"high"`
|
||||
- `"low"`
|
||||
- `"original"`
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
title: "AgentMessageItemTypeInputImage"
|
||||
---
|
||||
|
||||
## Example Usage
|
||||
|
||||
```python
|
||||
from openrouter.components import AgentMessageItemTypeInputImage
|
||||
value: AgentMessageItemTypeInputImage = "input_image"
|
||||
```
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
- `"input_image"`
|
||||
@@ -7,8 +7,9 @@ A context compaction marker with encrypted summary
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
||||
| `encrypted_content` | *str* | :heavy_check_mark: | N/A |
|
||||
| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
|
||||
| `type` | [components.CompactionItemType](../components/compactionitemtype.mdx) | :heavy_check_mark: | N/A |
|
||||
| Field | Type | Required | Description | Example |
|
||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
||||
| `encrypted_content` | *str* | :heavy_check_mark: | N/A | |
|
||||
| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
|
||||
| `type` | [components.CompactionItemType](../components/compactionitemtype.mdx) | :heavy_check_mark: | N/A | |
|
||||
| `__pydantic_extra__` | Dict[str, *Nullable[Any]*] | :heavy_minus_sign: | N/A | \{<br/>"encrypted_content": "enc_abc123...",<br/>"type": "compaction"<br/>} |
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: "ContentEncryptedContent"
|
||||
---
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
|
||||
| `encrypted_content` | *str* | :heavy_check_mark: | N/A |
|
||||
| `type` | [components.TypeEncryptedContent](../components/typeencryptedcontent.mdx) | :heavy_check_mark: | N/A |
|
||||
| `__pydantic_extra__` | Dict[str, *Nullable[Any]*] | :heavy_minus_sign: | N/A |
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
title: "ContextCompactionItem"
|
||||
---
|
||||
|
||||
A context compaction marker with an optional encrypted summary
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
||||
| `encrypted_content` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
|
||||
| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
|
||||
| `type` | [components.ContextCompactionItemType](../components/contextcompactionitemtype.mdx) | :heavy_check_mark: | N/A | |
|
||||
| `__pydantic_extra__` | Dict[str, *Nullable[Any]*] | :heavy_minus_sign: | N/A | \{<br/>"encrypted_content": "enc_abc123...",<br/>"type": "context_compaction"<br/>} |
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
title: "ContextCompactionItemType"
|
||||
---
|
||||
|
||||
## Example Usage
|
||||
|
||||
```python
|
||||
from openrouter.components import ContextCompactionItemType
|
||||
value: ContextCompactionItemType = "context_compaction"
|
||||
```
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
- `"context_compaction"`
|
||||
@@ -274,6 +274,12 @@ value: components.CustomToolCallOutputItem = /* values here */
|
||||
value: components.CompactionItem = /* values here */
|
||||
```
|
||||
|
||||
### `components.ContextCompactionItem`
|
||||
|
||||
```python
|
||||
value: components.ContextCompactionItem = /* values here */
|
||||
```
|
||||
|
||||
### `components.ItemReferenceItem`
|
||||
|
||||
```python
|
||||
@@ -286,3 +292,9 @@ value: components.ItemReferenceItem = /* values here */
|
||||
value: components.AdditionalToolsItem = /* values here */
|
||||
```
|
||||
|
||||
### `components.AgentMessageItem`
|
||||
|
||||
```python
|
||||
value: components.AgentMessageItem = /* values here */
|
||||
```
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
title: "TypeAgentMessage"
|
||||
---
|
||||
|
||||
## Example Usage
|
||||
|
||||
```python
|
||||
from openrouter.components import TypeAgentMessage
|
||||
value: TypeAgentMessage = "agent_message"
|
||||
```
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
- `"agent_message"`
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
title: "TypeEncryptedContent"
|
||||
---
|
||||
|
||||
## Example Usage
|
||||
|
||||
```python
|
||||
from openrouter.components import TypeEncryptedContent
|
||||
value: TypeEncryptedContent = "encrypted_content"
|
||||
```
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
- `"encrypted_content"`
|
||||
Reference in New Issue
Block a user