Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
1d2a547
Make `end_strategy` also work for output tools, not just tools
Danipulok Nov 22, 2025
b3371e5
Fix tests
Danipulok Nov 22, 2025
c5bfc1b
Fix lints
Danipulok Nov 22, 2025
7856ce7
Add missing coverage
Danipulok Nov 22, 2025
52d6a4c
Update tests to use snapshot
Danipulok Nov 24, 2025
9a27360
Refactor duplicated code
Danipulok Nov 24, 2025
4a1a34e
Fix typecheck errors
Danipulok Nov 25, 2025
3a0fd30
Merge branch 'main' into feat/end-strategy
Danipulok Nov 25, 2025
95d979e
Merge branch 'main' into feat/end-strategy
Danipulok Nov 26, 2025
542a234
feat: Support exhaustive end_strategy for output tools with validation
Danipulok Nov 27, 2025
9841ee6
Fix comments
Danipulok Dec 3, 2025
c6f09e3
Add tests (WIP)
Danipulok Dec 3, 2025
8cdeb27
Move related tests to a `TestMultipleToolCalls` to mirror `test_agent…
Danipulok Dec 3, 2025
7fda323
Use `ErrorDetails` instead of raw dict
Danipulok Dec 3, 2025
4453fdc
Use `ErrorDetails` instead of raw dict
Danipulok Dec 3, 2025
0cb7ddd
Docs: remove unnecessary clarification
Danipulok Dec 3, 2025
1d8727e
Tests: fix `test_early_strategy_does_not_apply_to_tool_calls_without_…
Danipulok Dec 3, 2025
46356a9
Tests: remove unneeded `part_kind`
Danipulok Dec 3, 2025
c61a0de
Merge branch 'main' into feat/end-strategy
Danipulok Dec 3, 2025
5a7de7d
Tests: update comment for `test_early_strategy_with_external_tool_call`
Danipulok Dec 3, 2025
6e99104
Docs: update docs
Danipulok Dec 3, 2025
7cdcb6b
Coverage: trying to make it work
Danipulok Dec 4, 2025
f8d6200
Tests: add tests
Danipulok Dec 4, 2025
e1ea66f
Tests: add note about tests
Danipulok Dec 4, 2025
b5d5ae0
Tests: add note about tests
Danipulok Dec 4, 2025
5acaebb
Merge branch 'main' into feat/end-strategy
Danipulok Dec 9, 2025
0776b75
Tests: fix imports
Danipulok Dec 9, 2025
5323cb5
Update docs/tools-advanced.md
Danipulok Dec 9, 2025
d5af8bc
Update docs/output.md
Danipulok Dec 9, 2025
eb18933
Tests: compare with all messages, and not just the latest part
Danipulok Dec 9, 2025
7b62ffa
Tests: compare with all messages, and not just the latest part
Danipulok Dec 9, 2025
8b9abaf
Tests: make test similar with `test_agent`
Danipulok Dec 9, 2025
9ff103e
Tests: move `OutputType` to a global type
Danipulok Dec 9, 2025
4fed107
Tests: mirror `test_exhaustive_strategy_executes_all_tools`
Danipulok Dec 9, 2025
c6568d5
Tests: mirror `test_exhaustive_strategy_calls_all_output_tools`
Danipulok Dec 9, 2025
b7a641e
Tests: mirror `test_early_strategy_does_not_call_additional_output_to…
Danipulok Dec 9, 2025
07efa5b
Tests: mirror `test_exhaustive_strategy_invalid_first_valid_second_ou…
Danipulok Dec 9, 2025
ba5b212
Tests: mirror `test_exhaustive_strategy_valid_first_invalid_second_ou…
Danipulok Dec 9, 2025
e0b1662
Tests: mirror `test_early_strategy_with_final_result_in_middle`
Danipulok Dec 9, 2025
1b55376
Tests: mirror `test_exhaustive_raises_unexpected_model_behavior`
Danipulok Dec 9, 2025
74be45b
Tests: mirror `test_multiple_final_result_are_validated_correctly`
Danipulok Dec 9, 2025
cd49935
Tests: mirror `test_early_strategy_with_external_tool_call`
Danipulok Dec 9, 2025
29ceecb
Tests: mirror `test_early_strategy_with_deferred_tool_call`
Danipulok Dec 9, 2025
7c88c48
Docs: update docs
Danipulok Dec 9, 2025
636a646
Ruff: fix
Danipulok Dec 9, 2025
fb575d6
Docs: fix note
Danipulok Dec 9, 2025
60613bc
Tests: add `# pragma: no cover`
Danipulok Dec 9, 2025
31b62e6
Tests: replace `mark.xfail` with `mark.skip` to "fix" coverage
Danipulok Dec 9, 2025
ceabae5
Tests: add comments and assert to a tool
Danipulok Dec 9, 2025
817e662
Code: add `raise e`
Danipulok Dec 9, 2025
e100275
Code: remove `raise e`
Danipulok Dec 9, 2025
ea10210
Tests: add `@pytest\.mark\.skip` and `@pytest\.mark\.xfail` to skip c…
Danipulok Dec 9, 2025
aa16a41
Tests: add `test_exhaustive_strategy_with_tool_retry_and_final_result…
Danipulok Dec 9, 2025
d11b820
Docs: add mentioning of `end_strategy` in `Agent`
Danipulok Dec 11, 2025
b2fe5da
Merge branch 'pydantic:main' into feat/end-strategy
Danipulok Dec 11, 2025
0bf5414
Merge branch 'feat/end-strategy' of github.com:Danipulok/pydantic-ai …
Danipulok Dec 11, 2025
c4bf11b
Update docs/output.md
Danipulok Dec 11, 2025
f9c05de
Update docs/output.md
Danipulok Dec 11, 2025
06dd066
Update docs/tools-advanced.md
Danipulok Dec 12, 2025
cc01098
Merge branch 'pydantic:main' into feat/end-strategy
Danipulok Dec 12, 2025
109b11b
Tests: order tests better
Danipulok Dec 12, 2025
081da9a
Docs: improve `agents.md`
Danipulok Dec 12, 2025
aa37dcb
Docs: change `EndStrategy` docs
Danipulok Dec 12, 2025
ac391b3
Docs: change `Output Tool Calls` docs
Danipulok Dec 12, 2025
71691f5
Graph: change logic of handling failed output tools when final result…
Danipulok Dec 12, 2025
09799d4
Tests: add note about changing tests
Danipulok Dec 12, 2025
05af1d7
Tweak docs
DouweM Dec 12, 2025
aae0c1f
Update pydantic_ai_slim/pydantic_ai/agent/__init__.py
Danipulok Dec 12, 2025
a74a767
Graph: change line to `Output tool not used - output failed validation.`
Danipulok Dec 12, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into feat/end-strategy
  • Loading branch information
Danipulok committed Dec 3, 2025
commit c61a0de2034bee1fe7a17bc84c570a2afb83a47c

This merge commit was added into this branch cleanly.

There are no new changes to show, but you can still view the diff.