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-7
1-1-8
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.1.26

Built from roe-main release `1-1-8`.

### Added

- `client.agents.agents_jobs_list` now accepts optional query parameters `group_id` and `grouped`, so you can filter or request grouped job listings through the existing jobs list operation.
- Added `JobGroupSummary` and `KindEnum` under `roe._generated.models`, and `ListAgentJob` now includes the `group` field as `JobGroupSummary | None` when reading job list results.

## 1.1.25

Built from roe-main release `1-1-7`.
Expand Down
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.25** - SDK operation coverage is synchronized across Python,
> **v1.1.26** - 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
104 changes: 104 additions & 0 deletions openapi/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,18 @@ paths:
name: exclude_metadata
schema:
type: string
- in: query
name: group_id
schema:
type: string
format: uuid
description: Only this group's jobs (a workflow run or a support conversation).
- in: query
name: grouped
schema:
type: boolean
description: 'One row per job group: a group''s newest job for this agent
stands in for its other jobs. Jobs outside a group are listed as usual.'
- in: query
name: job_id
schema:
Expand Down Expand Up @@ -6809,6 +6821,82 @@ components:
required:
- key
type: object
JobGroupSummary:
type: object
description: The jobs of one workflow run or one support conversation, as one
row.
properties:
id:
type: string
format: uuid
description: Pass as `group_id` to list the group's jobs
kind:
allOf:
- $ref: '#/components/schemas/KindEnum'
description: |-
What the group is: a workflow run or a support conversation

* `workflow_run` - workflow_run
* `conversation` - conversation
label:
type: string
description: 'The workflow and short run ID ("Customer review · Run 7c2e91"),
or the channel and ticket number ("Zendesk #4567")'
job_count:
type: integer
description: The group's jobs for this job's agent
failed_count:
type: integer
description: How many of those jobs failed
status_code:
type:
- integer
- 'null'
description: A workflow run's status code
phase:
type:
- string
- 'null'
description: 'A conversation''s phase: conversation, investigation_triggered,
actioned or auto_closed'
workflow_id:
type:
- string
- 'null'
format: uuid
workflow_name:
type:
- string
- 'null'
run_id:
type:
- string
- 'null'
format: uuid
session_id:
type:
- string
- 'null'
format: uuid
support_agent_id:
type:
- string
- 'null'
format: uuid
description: The support agent whose conversation it is
required:
- failed_count
- id
- job_count
- kind
- label
- phase
- run_id
- session_id
- status_code
- support_agent_id
- workflow_id
- workflow_name
JobInput:
type: object
description: Serializer for individual job input data
Expand All @@ -6833,6 +6921,14 @@ components:
- description
- key
- value
KindEnum:
enum:
- workflow_run
- conversation
type: string
description: |-
* `workflow_run` - workflow_run
* `conversation` - conversation
LifecycleEnum:
enum:
- active
Expand Down Expand Up @@ -6920,6 +7016,13 @@ components:
- $ref: '#/components/schemas/UserInfo'
- type: 'null'
readOnly: true
group:
oneOf:
- $ref: '#/components/schemas/JobGroupSummary'
- type: 'null'
readOnly: true
description: The workflow run or support conversation this job belongs to,
if any
required:
- agent_version_id
- agent_version_name
Expand All @@ -6928,6 +7031,7 @@ components:
- duration_ms
- evaluation
- feedback_review
- group
- id
- last_updated_at
- review_state
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.25"
version = "1.1.26"
authors = [
{ name = "Roe", email = "founders@roe-ai.com" },
]
Expand Down
33 changes: 33 additions & 0 deletions src/roe/_generated/api/agents/agents_jobs_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def _get_kwargs(
created_from: datetime.datetime | Unset = UNSET,
created_to: datetime.datetime | Unset = UNSET,
exclude_metadata: str | Unset = UNSET,
group_id: UUID | Unset = UNSET,
grouped: bool | Unset = UNSET,
job_id: str | Unset = UNSET,
job_inputs: str | Unset = UNSET,
limit: int | Unset = 100000,
Expand Down Expand Up @@ -60,6 +62,13 @@ def _get_kwargs(

params["exclude_metadata"] = exclude_metadata

json_group_id: str | Unset = UNSET
if not isinstance(group_id, Unset):
json_group_id = str(group_id)
params["group_id"] = json_group_id

params["grouped"] = grouped

params["job_id"] = job_id

params["job_inputs"] = job_inputs
Expand Down Expand Up @@ -165,6 +174,8 @@ def sync_detailed(
created_from: datetime.datetime | Unset = UNSET,
created_to: datetime.datetime | Unset = UNSET,
exclude_metadata: str | Unset = UNSET,
group_id: UUID | Unset = UNSET,
grouped: bool | Unset = UNSET,
job_id: str | Unset = UNSET,
job_inputs: str | Unset = UNSET,
limit: int | Unset = 100000,
Expand All @@ -190,6 +201,8 @@ def sync_detailed(
created_from (datetime.datetime | Unset):
created_to (datetime.datetime | Unset):
exclude_metadata (str | Unset):
group_id (UUID | Unset):
grouped (bool | Unset):
job_id (str | Unset):
job_inputs (str | Unset):
limit (int | Unset): Default: 100000.
Expand Down Expand Up @@ -219,6 +232,8 @@ def sync_detailed(
created_from=created_from,
created_to=created_to,
exclude_metadata=exclude_metadata,
group_id=group_id,
grouped=grouped,
job_id=job_id,
job_inputs=job_inputs,
limit=limit,
Expand Down Expand Up @@ -249,6 +264,8 @@ def sync(
created_from: datetime.datetime | Unset = UNSET,
created_to: datetime.datetime | Unset = UNSET,
exclude_metadata: str | Unset = UNSET,
group_id: UUID | Unset = UNSET,
grouped: bool | Unset = UNSET,
job_id: str | Unset = UNSET,
job_inputs: str | Unset = UNSET,
limit: int | Unset = 100000,
Expand All @@ -274,6 +291,8 @@ def sync(
created_from (datetime.datetime | Unset):
created_to (datetime.datetime | Unset):
exclude_metadata (str | Unset):
group_id (UUID | Unset):
grouped (bool | Unset):
job_id (str | Unset):
job_inputs (str | Unset):
limit (int | Unset): Default: 100000.
Expand Down Expand Up @@ -304,6 +323,8 @@ def sync(
created_from=created_from,
created_to=created_to,
exclude_metadata=exclude_metadata,
group_id=group_id,
grouped=grouped,
job_id=job_id,
job_inputs=job_inputs,
limit=limit,
Expand All @@ -328,6 +349,8 @@ async def asyncio_detailed(
created_from: datetime.datetime | Unset = UNSET,
created_to: datetime.datetime | Unset = UNSET,
exclude_metadata: str | Unset = UNSET,
group_id: UUID | Unset = UNSET,
grouped: bool | Unset = UNSET,
job_id: str | Unset = UNSET,
job_inputs: str | Unset = UNSET,
limit: int | Unset = 100000,
Expand All @@ -353,6 +376,8 @@ async def asyncio_detailed(
created_from (datetime.datetime | Unset):
created_to (datetime.datetime | Unset):
exclude_metadata (str | Unset):
group_id (UUID | Unset):
grouped (bool | Unset):
job_id (str | Unset):
job_inputs (str | Unset):
limit (int | Unset): Default: 100000.
Expand Down Expand Up @@ -382,6 +407,8 @@ async def asyncio_detailed(
created_from=created_from,
created_to=created_to,
exclude_metadata=exclude_metadata,
group_id=group_id,
grouped=grouped,
job_id=job_id,
job_inputs=job_inputs,
limit=limit,
Expand Down Expand Up @@ -412,6 +439,8 @@ async def asyncio(
created_from: datetime.datetime | Unset = UNSET,
created_to: datetime.datetime | Unset = UNSET,
exclude_metadata: str | Unset = UNSET,
group_id: UUID | Unset = UNSET,
grouped: bool | Unset = UNSET,
job_id: str | Unset = UNSET,
job_inputs: str | Unset = UNSET,
limit: int | Unset = 100000,
Expand All @@ -437,6 +466,8 @@ async def asyncio(
created_from (datetime.datetime | Unset):
created_to (datetime.datetime | Unset):
exclude_metadata (str | Unset):
group_id (UUID | Unset):
grouped (bool | Unset):
job_id (str | Unset):
job_inputs (str | Unset):
limit (int | Unset): Default: 100000.
Expand Down Expand Up @@ -467,6 +498,8 @@ async def asyncio(
created_from=created_from,
created_to=created_to,
exclude_metadata=exclude_metadata,
group_id=group_id,
grouped=grouped,
job_id=job_id,
job_inputs=job_inputs,
limit=limit,
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 @@ -111,7 +111,9 @@
from .health_enum import HealthEnum
from .if_block import IfBlock
from .input_field import InputField
from .job_group_summary import JobGroupSummary
from .job_input import JobInput
from .kind_enum import KindEnum
from .lifecycle_enum import LifecycleEnum
from .list_agent_job import ListAgentJob
from .list_agent_job_metadata import ListAgentJobMetadata
Expand Down Expand Up @@ -352,7 +354,9 @@
"HealthEnum",
"IfBlock",
"InputField",
"JobGroupSummary",
"JobInput",
"KindEnum",
"LifecycleEnum",
"ListAgentJob",
"ListAgentJobMetadata",
Expand Down
Loading
Loading