Lee-W commented on code in PR #71461:
URL: https://github.com/apache/airflow/pull/71461#discussion_r3765462646


##########
providers/anthropic/src/airflow/providers/anthropic/hooks/anthropic.py:
##########
@@ -119,6 +120,22 @@ def is_terminal(cls, status: str) -> bool:
 #: ``outcome_evaluations[].result`` values that mean the outcome did NOT 
succeed.
 OUTCOME_FAILURE_RESULTS = frozenset({"failed", "max_iterations_reached", 
"interrupted"})
 
+#: ``session.status_idle`` stop reason emitted when a session stops against 
its budget.
+BUDGET_REACHED = "budget_reached"
+
+
+def session_error(message: str, stop_reason: str | None) -> 
AnthropicAgentSessionError:

Review Comment:
   ```suggestion
   def _create_session_error(message: str, stop_reason: str | None) -> 
AnthropicAgentSessionError:
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to