Skip to content
Open
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
2 changes: 1 addition & 1 deletion .roe-main-release-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1-1-5
1-1-6
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
A Python SDK for the [Roe](https://www.roe-ai.com/) API.

<!-- ROE-SDK:RELEASE-BANNER:START -->
> **v1.1.23** - SDK operation coverage is synchronized across Python,
> **v1.1.24** - SDK operation coverage is synchronized across Python,
> TypeScript, and Go. See `SDK_EXAMPLES.md` for copy-ready examples and
> use cases.
<!-- ROE-SDK:RELEASE-BANNER:END -->
Expand Down
120 changes: 110 additions & 10 deletions openapi/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2008,8 +2008,9 @@ paths:
description: 'Execute an agent with multiple inputs asynchronously and return
job IDs for tracking results. Job `metadata` is not supported on this endpoint:
any `metadata` key — top-level or inside an `inputs` item — is silently ignored
and the jobs are created with empty metadata. Use the single-run endpoints
to attach metadata to a job.'
and the jobs are created without user metadata. Use the single-run endpoints
to attach metadata to a job. Set `max_concurrent_jobs` to cap how many of
the jobs run at once.'
summary: Run agent asynchronously with multiple inputs
parameters:
- in: path
Expand Down Expand Up @@ -5354,6 +5355,13 @@ components:
items:
$ref: '#/components/schemas/AgentExecutionRequest'
description: List of agent execution requests to process
max_concurrent_jobs:
type: integer
minimum: 1
description: Optional cap on how many of these jobs run at once. The rest
wait as pending and start as running jobs finish. Unset = no cap beyond
the organization's concurrent job limit. An input that matches a job already
in progress reuses that job, which keeps the cap it was started with.
required:
- inputs
AgentStep:
Expand Down Expand Up @@ -5594,6 +5602,16 @@ components:
- id
- steps
type: object
AuthMethodsEnum:
enum:
- browser_sign_in
- provider_consent
- manual
type: string
description: |-
* `browser_sign_in` - browser_sign_in
* `provider_consent` - provider_consent
* `manual` - manual
BaseAgent:
type: object
description: Serializer for BaseAgent (agent config)
Expand Down Expand Up @@ -5826,6 +5844,25 @@ components:
readOnly: true
status:
$ref: '#/components/schemas/StatusEnum'
health:
allOf:
- $ref: '#/components/schemas/HealthEnum'
readOnly: true
last_verified_at:
type:
- string
- 'null'
format: date-time
readOnly: true
credentials_expire_at:
type:
- string
- 'null'
format: date-time
readOnly: true
account_label:
type: string
readOnly: true
lifecycle:
$ref: '#/components/schemas/LifecycleEnum'
created_at:
Expand All @@ -5837,15 +5874,19 @@ components:
format: date-time
readOnly: true
required:
- account_label
- auth_config
- browser_session_expires_at
- connector_display_name
- connector_type
- created_at
- credentials_configured
- credentials_expire_at
- dynamic_input_test_disabled_reason
- dynamic_inputs
- health
- id
- last_verified_at
- name
- organization
- updated_at
Expand Down Expand Up @@ -5935,8 +5976,31 @@ components:
readOnly: true
status:
$ref: '#/components/schemas/StatusEnum'
health:
allOf:
- $ref: '#/components/schemas/HealthEnum'
readOnly: true
last_verified_at:
type:
- string
- 'null'
format: date-time
readOnly: true
credentials_expire_at:
type:
- string
- 'null'
format: date-time
readOnly: true
account_label:
type: string
readOnly: true
lifecycle:
$ref: '#/components/schemas/LifecycleEnum'
setup_count:
type: integer
readOnly: true
description: How many setups agents can attach from this connection.
created_at:
type: string
format: date-time
Expand All @@ -5946,15 +6010,20 @@ components:
format: date-time
readOnly: true
required:
- account_label
- connector_display_name
- connector_type
- created_at
- credentials_configured
- credentials_expire_at
- dynamic_input_test_disabled_reason
- dynamic_inputs
- health
- id
- last_verified_at
- name
- organization
- setup_count
- updated_at
- user
ConnectionStep:
Expand Down Expand Up @@ -6065,7 +6134,17 @@ components:
oneOf:
- $ref: '#/components/schemas/ConnectorBrowserSession'
- type: 'null'
auth_methods:
type: array
items:
$ref: '#/components/schemas/AuthMethodsEnum'
description: How people give this connector credentials, default first.
test_proves_credentials:
type: boolean
description: Whether a passing connection test proves the credentials work,
rather than only that the service answered.
required:
- auth_methods
- auth_schema
- browser_session
- category
Expand All @@ -6078,6 +6157,7 @@ components:
- icon
- id
- supports_delivery
- test_proves_credentials
ConnectorTypeEnum:
enum:
- snowflake
Expand Down Expand Up @@ -6601,6 +6681,22 @@ components:
- run_id
- sse_endpoint
- workflow_id
HealthEnum:
enum:
- connecting
- expired
- needs_attention
- failed
- connected
- unknown
type: string
description: |-
* `connecting` - Connecting
* `expired` - Expired
* `needs_attention` - Needs attention
* `failed` - Failed
* `connected` - Connected
* `unknown` - Unknown
IfBlock:
additionalProperties: false
properties:
Expand Down Expand Up @@ -8431,12 +8527,14 @@ components:
minItems: 1
type: array
result:
maxLength: 200
pattern: ^[A-Za-z_]\w*$
type: string
anyOf:
- maxLength: 200
pattern: ^[A-Za-z_]\w*$
type: string
- type: 'null'
default: null
required:
- steps
- result
type: object
WorkflowDefinitionRequest:
additionalProperties: false
Expand Down Expand Up @@ -8474,12 +8572,14 @@ components:
minItems: 1
type: array
result:
maxLength: 200
pattern: ^[A-Za-z_]\w*$
type: string
anyOf:
- maxLength: 200
pattern: ^[A-Za-z_]\w*$
type: string
- type: 'null'
default: null
required:
- steps
- result
type: object
WorkflowDetail:
type: object
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "roe-ai"
version = "1.1.23"
version = "1.1.24"
authors = [
{ name = "Roe", email = "founders@roe-ai.com" },
]
Expand Down
20 changes: 12 additions & 8 deletions src/roe/_generated/api/agents/agents_run_async_many.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ def sync_detailed(

Execute an agent with multiple inputs asynchronously and return job IDs for tracking results. Job
`metadata` is not supported on this endpoint: any `metadata` key — top-level or inside an `inputs`
item — is silently ignored and the jobs are created with empty metadata. Use the single-run
endpoints to attach metadata to a job.
item — is silently ignored and the jobs are created without user metadata. Use the single-run
endpoints to attach metadata to a job. Set `max_concurrent_jobs` to cap how many of the jobs run at
once.

Args:
agent_id (UUID):
Expand Down Expand Up @@ -192,8 +193,9 @@ def sync(

Execute an agent with multiple inputs asynchronously and return job IDs for tracking results. Job
`metadata` is not supported on this endpoint: any `metadata` key — top-level or inside an `inputs`
item — is silently ignored and the jobs are created with empty metadata. Use the single-run
endpoints to attach metadata to a job.
item — is silently ignored and the jobs are created without user metadata. Use the single-run
endpoints to attach metadata to a job. Set `max_concurrent_jobs` to cap how many of the jobs run at
once.

Args:
agent_id (UUID):
Expand Down Expand Up @@ -229,8 +231,9 @@ async def asyncio_detailed(

Execute an agent with multiple inputs asynchronously and return job IDs for tracking results. Job
`metadata` is not supported on this endpoint: any `metadata` key — top-level or inside an `inputs`
item — is silently ignored and the jobs are created with empty metadata. Use the single-run
endpoints to attach metadata to a job.
item — is silently ignored and the jobs are created without user metadata. Use the single-run
endpoints to attach metadata to a job. Set `max_concurrent_jobs` to cap how many of the jobs run at
once.

Args:
agent_id (UUID):
Expand Down Expand Up @@ -271,8 +274,9 @@ async def asyncio(

Execute an agent with multiple inputs asynchronously and return job IDs for tracking results. Job
`metadata` is not supported on this endpoint: any `metadata` key — top-level or inside an `inputs`
item — is silently ignored and the jobs are created with empty metadata. Use the single-run
endpoints to attach metadata to a job.
item — is silently ignored and the jobs are created without user metadata. Use the single-run
endpoints to attach metadata to a job. Set `max_concurrent_jobs` to cap how many of the jobs run at
once.

Args:
agent_id (UUID):
Expand Down
4 changes: 4 additions & 0 deletions src/roe/_generated/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
from .agents_versions_create_response_400 import AgentsVersionsCreateResponse400
from .api_error_response import ApiErrorResponse
from .approval_block import ApprovalBlock
from .auth_methods_enum import AuthMethodsEnum
from .base_agent import BaseAgent
from .base_agent_create_request import BaseAgentCreateRequest
from .base_agent_update_request import BaseAgentUpdateRequest
Expand Down Expand Up @@ -107,6 +108,7 @@
from .gate_kind import GateKind
from .generate_skill_set_version_request import GenerateSkillSetVersionRequest
from .generate_skill_set_version_response import GenerateSkillSetVersionResponse
from .health_enum import HealthEnum
from .if_block import IfBlock
from .input_field import InputField
from .job_input import JobInput
Expand Down Expand Up @@ -288,6 +290,7 @@
"AgentVersionUpdateRequest",
"ApiErrorResponse",
"ApprovalBlock",
"AuthMethodsEnum",
"BaseAgent",
"BaseAgentCreateRequest",
"BaseAgentUpdateRequest",
Expand Down Expand Up @@ -346,6 +349,7 @@
"GateKind",
"GenerateSkillSetVersionRequest",
"GenerateSkillSetVersionResponse",
"HealthEnum",
"IfBlock",
"InputField",
"JobInput",
Expand Down
12 changes: 12 additions & 0 deletions src/roe/_generated/models/agent_run_async_many_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from ..types import UNSET, Unset

from ..types import UNSET, Unset
from typing import cast

if TYPE_CHECKING:
Expand All @@ -27,9 +28,13 @@ class AgentRunAsyncManyRequest:

Attributes:
inputs (list[AgentExecutionRequest]): List of agent execution requests to process
max_concurrent_jobs (int | Unset): Optional cap on how many of these jobs run at once. The rest wait as pending
and start as running jobs finish. Unset = no cap beyond the organization's concurrent job limit. An input that
matches a job already in progress reuses that job, which keeps the cap it was started with.
"""

inputs: list[AgentExecutionRequest]
max_concurrent_jobs: int | Unset = UNSET

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Batch limit is unavailable

The new max_concurrent_jobs option cannot be used through client.agents.run_many(). That method has no matching parameter and builds AgentRunAsyncManyRequest with only inputs. Passing max_concurrent_jobs=2 raises TypeError, so users must call the generated API directly to use the cap. Add a public parameter, forward it into each request, and test the submitted JSON.

Fix in Claude Code

additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)


Expand All @@ -45,12 +50,16 @@ def to_dict(self) -> dict[str, Any]:



max_concurrent_jobs = self.max_concurrent_jobs


field_dict: dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({
"inputs": inputs,
})
if max_concurrent_jobs is not UNSET:
field_dict["max_concurrent_jobs"] = max_concurrent_jobs

return field_dict

Expand All @@ -70,8 +79,11 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
inputs.append(inputs_item)


max_concurrent_jobs = d.pop("max_concurrent_jobs", UNSET)

agent_run_async_many_request = cls(
inputs=inputs,
max_concurrent_jobs=max_concurrent_jobs,
)


Expand Down
9 changes: 9 additions & 0 deletions src/roe/_generated/models/auth_methods_enum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from enum import Enum

class AuthMethodsEnum(str, Enum):
BROWSER_SIGN_IN = "browser_sign_in"
MANUAL = "manual"
PROVIDER_CONSENT = "provider_consent"

def __str__(self) -> str:
return str(self.value)
Loading
Loading