[ON HOLD] feat: align SDK with Hub v3 API #89
Open
cursor[bot] wants to merge 10 commits into
Open
Conversation
- 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
…patibility" This reverts commit 28bf692.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.