Skip to content

[ON HOLD] feat: align SDK with Hub v3 API #89

Open
cursor[bot] wants to merge 10 commits into
mainfrom
cursor/update-api-20260504-144226
Open

[ON HOLD] feat: align SDK with Hub v3 API #89
cursor[bot] wants to merge 10 commits into
mainfrom
cursor/update-api-20260504-144226

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented May 4, 2026

No description provided.

cursoragent and others added 8 commits May 4, 2026 14:49
- Add role types (Role, RoleListParams, RoleCreateParams, RoleUpdateParams)
- Add interaction types (Interaction, InteractionCheckConfig, InteractionResultData, FlatCheckSpec)
- Update Agent: add auto_bindings, input_schema, output_schema; remove stateful
- Add AgentRoleSnapshot and GenerateCompletionOutput types
- Update CheckResult: add spec, target, reference_text fields
- Update Evaluation: add agent_roles, remove agent property
- Update TestCase: replace checks/demo_output/input_data/messages with interactions
- Update PlaygroundChat: add agent_id, exchanges, forwarded; remove messages, model_id, thread_id
- Update TestCaseEvaluation: add interaction_results, remove divergence_warnings
- Update DatasetSubset: add dataset_name field
- Update ScheduledEvaluation: add agent_roles field
- Update ScanProbeAttempt: add input/output, remove messages
- Update ScenarioPreview: add inputs, remove conversation
- Add EvaluationRunInteractionChecksParams type
- Update EvaluationListParams and EvaluationRetrieveParams to remove 'include' parameter
- Add PlaygroundChatCreateParams and PlaygroundChatUpdateParams
- Update BulkMoveTestCasesParams: rename chat_test_case_ids to test_case_ids
- Create RolesResource and AsyncRolesResource with all 4 methods
- Add wrapper classes for raw and streaming responses
- Wire up roles resource in client and async client
- Update generate_completion: accept 'input' string instead of 'messages', return GenerateCompletionOutput instead of AgentOutput
- Update test_connection: add optional agent_id and input_schema params, return Dict[str, Any] instead of AgentOutput
- Apply changes to both sync and async variants
- Rename 'input' to 'message_input', 'output' to 'message_output' in types
- Add Field aliases to maintain API compatibility with backend
- Update generate_completion to accept both 'messages' (deprecated) and 'message_input'
- Update related types: Interaction, PlaygroundExchange, ScanProbeAttempt, etc.
- All changes maintain backward compatibility
…patibility

- Support new 'interactions' parameter in test_cases.create
- Maintain backward compatibility with 'messages', 'checks', 'demo_output'
- Prevent mixing old and new parameters
- 'input_data' can be removed (never released) but kept for now for extra safety
@henchaves henchaves marked this pull request as ready for review May 5, 2026 17:09
@henchaves henchaves changed the title feat: Update Python SDK for API changes - roles, interactions, and schema updates [ON HOLD] feat: align SDK with Hub v3 API May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants