Conversation
…ubagent tool factories - Remove copilot/optimizer.py (InstructionSuggestion and optimize_instruction now live in pytest_aitest.execution.optimizer; re-exported from pytest_codingagents.__init__) - result.py: remove SubagentInvocation from __all__; import from pytest_aitest directly - events.py: import SubagentInvocation directly from pytest_aitest.core.result - personas.py: consolidate _make_runsubagent_tool and _make_task_tool into shared _make_subagent_dispatch_tool(tool_name, ...) factory - Raise pytest-aitest lower bound to >=0.5.7 - Update docs: fix autodoc references, add correct import examples - Update tests: import optimizer types from pytest_aitest directly Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Dependency ReviewThe following issues were found:
License Issuespyproject.toml
OpenSSF Scorecard
Scanned Files
|
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.
Summary
Removes Copilot-specific copies of provider-agnostic functionality now that it lives in \pytest-aitest\ (see sbroenne/pytest-aitest#68).
Changes
Removed: \copilot/optimizer.py\
\InstructionSuggestion\ and \optimize_instruction()\ are deleted from this repo. Import from \pytest_aitest\ directly. Both are still re-exported from \pytest_codingagents\ for convenience.
\\python
canonical
from pytest_aitest import InstructionSuggestion, optimize_instruction
still works
from pytest_codingagents import InstructionSuggestion, optimize_instruction
\\
\SubagentInvocation\ moved to \pytest-aitest\
Removed from
esult.py's _all_. Import from \pytest_aitest:
\\python
from pytest_aitest import SubagentInvocation
\\
\personas.py\ — consolidated tool factories
_make_runsubagent_tool\ and _make_task_tool\ were ~90% identical. Extracted into a single _make_subagent_dispatch_tool(tool_name, ...)\ factory.
Docs
eference/api.md\ — same
eference/result.md\ — \SubagentInvocation\ section updated with correct import path
Dependency order