Commit 6650b77
fix: mark QueryFallbackChain public API methods with @code_is_used (#993)
The dead code detector flagged four methods as unused, but they are
part of the intentional public API. These methods provide essential
introspection capabilities for logging, debugging, and observability.
- get_attempts(): Returns full attempt history for analysis
- get_attempt_summary(): Provides human-readable summaries for logs
- has_attempts(): Checks if chain has been executed
- was_successful(): Checks if any strategy succeeded
All four methods are extensively tested and documented in the class
docstring. They were flagged only because runtime tracing doesn't
exercise them in CLI paths, but they are used in tests and may be
needed for future logging/debugging features.
Co-authored-by: florath-ai-assistant[bot] <Andreas.Florath@telekom.de>1 parent 3962cbd commit 6650b77
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| 101 | + | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
| |||
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| 116 | + | |
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| 121 | + | |
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
0 commit comments