You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[python] Refactor CopilotClient.create_session() and resume_session() to have parameters (#587)
* Refactor `CopilotClient.create_session()` to have parameters
* Address PR review comments for create_session refactor
- Add validation for on_permission_request in create_session to fail fast
when handler is missing/invalid
- Fix lambda signatures to accept two args (request, invocation) in test
scenario and docs
- Fix permissionDecision key to use camelCase in pre_tool_use hook
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add test for None permission handler validation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Merge with main
* Fix test to use SubprocessConfig instead of dict
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Change the call signature of `resume_session()`
* Fix formatting
* Make on_permission_request and model keyword-only in Python SDK
Update create_session() and resume_session() signatures so that
on_permission_request and model are keyword-only parameters (after *).
Update all call sites across test scenarios, unit tests, E2E tests,
samples, and documentation to use keyword argument syntax.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix Python E2E tests for keyword-only create_session parameters
- Restore accidentally deleted custom_agents dict entries in test_agent_and_compact_rpc.py
- Convert positional on_permission_request to keyword arg in test_compaction.py
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix formatting
* Format docstrings
* Fix a merge mistake
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments