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
2 changes: 1 addition & 1 deletion .roe-main-release-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1-0-95
1-0-96
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.11** - SDK operation coverage is synchronized across Python,
> **v1.1.12** - 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
102 changes: 100 additions & 2 deletions openapi/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2631,7 +2631,8 @@ paths:
schema:
$ref: '#/components/schemas/DuplicateConnectionResponse'
description: A strict-identity duplicate of this connection already exists
in this organization.
in this organization, or post actions still call a write operation this
update removes or renames ({error}).
patch:
operationId: connections_partial_update
description: 'Public API: GET/PATCH/DELETE /api/v1/connections/{id}/ - Manage
Expand Down Expand Up @@ -2712,7 +2713,8 @@ paths:
schema:
$ref: '#/components/schemas/DuplicateConnectionResponse'
description: A strict-identity duplicate of this connection already exists
in this organization.
in this organization, or post actions still call a write operation this
update removes or renames ({error}).
delete:
operationId: connections_destroy
description: 'Public API: GET/PATCH/DELETE /api/v1/connections/{id}/ - Manage
Expand Down Expand Up @@ -2752,6 +2754,12 @@ paths:
schema:
$ref: '#/components/schemas/ErrorDetailResponse'
description: Connection not found.
'409':
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectionDeleteErrorResponse'
description: Post actions still reference this connection.
'500':
content:
application/json:
Expand Down Expand Up @@ -4655,6 +4663,12 @@ components:
description: List of input definitions for this agent version.
engine_config:
description: Engine configuration.
post_actions:
type: array
items:
$ref: '#/components/schemas/PostActionSpec'
readOnly: true
description: Connector write actions configured on this version.
organization_id:
type: string
format: uuid
Expand All @@ -4677,6 +4691,7 @@ components:
- input_definitions
- name
- organization_id
- post_actions
- readonly
- supports_memory
- version_name
Expand All @@ -4698,6 +4713,14 @@ components:
description: List of input definitions for this agent version.
engine_config:
description: Engine configuration as a dictionary of string key-value pairs.
post_actions:
type: array
items:
$ref: '#/components/schemas/PostActionSpecRequest'
writeOnly: true
description: 'Connector write actions for this version. Omitted: the new
version keeps the current version''s actions. A list: those become the
new version''s actions. []: the new version has none.'
Comment thread
Chen-ROE marked this conversation as resolved.
AgentVersionUpdateRequest:
type: object
properties:
Expand Down Expand Up @@ -4784,6 +4807,11 @@ components:
items:
$ref: '#/components/schemas/AgentTag'
readOnly: true
skill_generation_state:
readOnly: true
oneOf:
- $ref: '#/components/schemas/SkillGenerationStateEnum'
- $ref: '#/components/schemas/NullEnum'
required:
- cache_failed_jobs
- created_at
Expand All @@ -4796,6 +4824,7 @@ components:
- most_recent_job
- name
- organization_id
- skill_generation_state
- tags
- updated_at
BaseAgentCreateRequest:
Expand Down Expand Up @@ -5075,6 +5104,7 @@ components:
- salesforce
- web_application
- shield
- sift
- custom_api
- lexis_nexis
- sardine
Expand All @@ -5096,6 +5126,7 @@ components:
* `salesforce` - SALESFORCE
* `web_application` - WEB_APPLICATION
* `shield` - SHIELD
* `sift` - SIFT
* `custom_api` - CUSTOM_API
* `lexis_nexis` - LEXIS_NEXIS
* `sardine` - SARDINE
Expand Down Expand Up @@ -5621,6 +5652,8 @@ components:
type: string
required:
- message
NullEnum:
type: 'null'
PaginatedBaseAgentList:
type: object
required:
Expand Down Expand Up @@ -5983,6 +6016,63 @@ components:
- display_name
- email
- id
PostActionSpec:
type: object
description: |-
Schema mirror of PostActionSpec (agents/services/post_actions.py);
generated clients import this component instead of hand-writing it.
properties:
name:
type: string
connection_id:
type: string
format: uuid
operation:
type: string
trigger_on:
type: array
items:
type: integer
param_mappings:
type: object
additionalProperties:
type: string
required:
- connection_id
- name
- operation
- param_mappings
- trigger_on
PostActionSpecRequest:
type: object
description: |-
Schema mirror of PostActionSpec (agents/services/post_actions.py);
generated clients import this component instead of hand-writing it.
properties:
name:
type: string
minLength: 1
connection_id:
type: string
format: uuid
operation:
type: string
minLength: 1
trigger_on:
type: array
items:
type: integer
param_mappings:
type: object
additionalProperties:
type: string
minLength: 1
required:
- connection_id
- name
- operation
- param_mappings
- trigger_on
PublicAgentJobStatusEvent:
type: object
description: |-
Expand Down Expand Up @@ -6084,6 +6174,14 @@ components:
* `pending` - Pending Review
* `approved` - Approved
* `rejected` - Rejected
SkillGenerationStateEnum:
enum:
- generating
- failed
type: string
description: |-
* `generating` - generating
* `failed` - failed
StatusEnum:
enum:
- active
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.11"
version = "1.1.12"
authors = [
{ name = "Roe", email = "founders@roe-ai.com" },
]
Expand Down
7 changes: 7 additions & 0 deletions src/roe/_generated/api/connections/connections_destroy.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res

return response_404

if response.status_code == 409:
response_409 = ConnectionDeleteErrorResponse.from_dict(response.json())



return response_409

if response.status_code == 500:
response_500 = ConnectionDeleteErrorResponse.from_dict(response.json())

Expand Down
10 changes: 10 additions & 0 deletions src/roe/_generated/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
from .policy_delete_conflict import PolicyDeleteConflict
from .policy_version import PolicyVersion
from .policy_version_created_by import PolicyVersionCreatedBy
from .post_action_spec import PostActionSpec
from .post_action_spec_param_mappings import PostActionSpecParamMappings
from .post_action_spec_request import PostActionSpecRequest
from .post_action_spec_request_param_mappings import PostActionSpecRequestParamMappings
from .public_agent_job_status_event import PublicAgentJobStatusEvent
from .public_agent_job_status_event_error_details import PublicAgentJobStatusEventErrorDetails
from .qdrant_cleanup_error_response import QdrantCleanupErrorResponse
Expand All @@ -127,6 +131,7 @@
from .resolve_request import ResolveRequest
from .resolve_request_refs_item import ResolveRequestRefsItem
from .review_status_enum import ReviewStatusEnum
from .skill_generation_state_enum import SkillGenerationStateEnum
from .status_enum import StatusEnum
from .supported_llm_model import SupportedLLMModel
from .supported_llm_model_list import SupportedLLMModelList
Expand Down Expand Up @@ -282,6 +287,10 @@
"PolicyDeleteConflict",
"PolicyVersion",
"PolicyVersionCreatedBy",
"PostActionSpec",
"PostActionSpecParamMappings",
"PostActionSpecRequest",
"PostActionSpecRequestParamMappings",
"PublicAgentJobStatusEvent",
"PublicAgentJobStatusEventErrorDetails",
"QdrantCleanupErrorResponse",
Expand All @@ -291,6 +300,7 @@
"ResolveRequest",
"ResolveRequestRefsItem",
"ReviewStatusEnum",
"SkillGenerationStateEnum",
"StatusEnum",
"SupportedLLMModel",
"SupportedLLMModelList",
Expand Down
24 changes: 24 additions & 0 deletions src/roe/_generated/models/agent_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
if TYPE_CHECKING:
from ..models.agent_input_definition import AgentInputDefinition
from ..models.base_agent import BaseAgent
from ..models.post_action_spec import PostActionSpec
from ..models.user_info import UserInfo


Expand All @@ -42,6 +43,7 @@ class AgentVersion:
configured on it. Independent of whether memory is currently switched on.
input_definitions (list[AgentInputDefinition]): List of input definitions for this agent version.
engine_config (Any): Engine configuration.
post_actions (list[PostActionSpec]): Connector write actions configured on this version.
organization_id (UUID): Organization ID from base_agent.
readonly (bool):
base_agent (BaseAgent): Serializer for BaseAgent (agent config)
Expand All @@ -58,6 +60,7 @@ class AgentVersion:
supports_memory: bool
input_definitions: list[AgentInputDefinition]
engine_config: Any
post_actions: list[PostActionSpec]
organization_id: UUID
readonly: bool
base_agent: BaseAgent
Expand All @@ -72,6 +75,7 @@ class AgentVersion:
def to_dict(self) -> dict[str, Any]:
from ..models.agent_input_definition import AgentInputDefinition
from ..models.base_agent import BaseAgent
from ..models.post_action_spec import PostActionSpec
from ..models.user_info import UserInfo
id = str(self.id)

Expand All @@ -96,6 +100,13 @@ def to_dict(self) -> dict[str, Any]:

engine_config = self.engine_config

post_actions = []
for post_actions_item_data in self.post_actions:
post_actions_item = post_actions_item_data.to_dict()
post_actions.append(post_actions_item)



organization_id = str(self.organization_id)

readonly = self.readonly
Expand Down Expand Up @@ -125,6 +136,7 @@ def to_dict(self) -> dict[str, Any]:
"supports_memory": supports_memory,
"input_definitions": input_definitions,
"engine_config": engine_config,
"post_actions": post_actions,
"organization_id": organization_id,
"readonly": readonly,
"base_agent": base_agent,
Expand All @@ -142,6 +154,7 @@ def to_dict(self) -> dict[str, Any]:
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
from ..models.agent_input_definition import AgentInputDefinition
from ..models.base_agent import BaseAgent
from ..models.post_action_spec import PostActionSpec
from ..models.user_info import UserInfo
d = dict(src_dict)
id = UUID(d.pop("id"))
Expand Down Expand Up @@ -176,6 +189,16 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

engine_config = d.pop("engine_config")

post_actions = []
_post_actions = d.pop("post_actions")
for post_actions_item_data in (_post_actions):
post_actions_item = PostActionSpec.from_dict(post_actions_item_data)



post_actions.append(post_actions_item)


organization_id = UUID(d.pop("organization_id"))


Expand Down Expand Up @@ -220,6 +243,7 @@ def _parse_creator(data: object) -> None | Unset | UserInfo:
supports_memory=supports_memory,
input_definitions=input_definitions,
engine_config=engine_config,
post_actions=post_actions,
organization_id=organization_id,
readonly=readonly,
base_agent=base_agent,
Expand Down
Loading
Loading