Skip to content

feat: align SDK with Hub v3 API #89

Merged
henchaves merged 22 commits into
mainfrom
cursor/update-api-20260504-144226
Jul 9, 2026
Merged

feat: align SDK with Hub v3 API #89
henchaves merged 22 commits into
mainfrom
cursor/update-api-20260504-144226

Conversation

@cursor

@cursor cursor Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

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
@henchaves henchaves marked this pull request as draft June 24, 2026 08:51
* add upload feature for evaluations

* sync with hub v3

* update Evaluation and Agent/AgentSnapshot objects

* Update src/giskard_hub/types/evaluation.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update src/giskard_hub/resources/test_cases/test_cases.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update src/giskard_hub/resources/test_cases/test_cases.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@henchaves henchaves changed the title [ON HOLD] feat: align SDK with Hub v3 API feat: align SDK with Hub v3 API Jun 25, 2026
@henchaves henchaves self-assigned this Jun 25, 2026
@henchaves henchaves marked this pull request as ready for review June 25, 2026 10:00
@henchaves henchaves changed the title feat: align SDK with Hub v3 API [WIP] feat: align SDK with Hub v3 API Jun 25, 2026
@henchaves henchaves marked this pull request as draft June 25, 2026 10:03
@henchaves henchaves changed the title [WIP] feat: align SDK with Hub v3 API feat: align SDK with Hub v3 API Jul 9, 2026
@henchaves henchaves marked this pull request as ready for review July 9, 2026 09:27
@henchaves henchaves merged commit d9ab032 into main Jul 9, 2026
5 checks passed
@henchaves henchaves deleted the cursor/update-api-20260504-144226 branch July 9, 2026 09:27
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