kaxil commented on code in PR #71464:
URL: https://github.com/apache/airflow/pull/71464#discussion_r3766843744
##########
providers/anthropic/docs/operators/anthropic.rst:
##########
@@ -282,6 +282,65 @@ task's real outcome is preserved and a warning is logged.
session records instead. This is the same scenario as the retry warning
above, so
``retries=0`` keeps both problems away.
+Configuring the agent
+"""""""""""""""""""""
+
+Agent-level settings are not operator arguments: they belong to the agent,
which is created
+once and referenced by ID on every run.
+:meth:`~airflow.providers.anthropic.hooks.anthropic.AnthropicHook.create_agent`
forwards
+keyword arguments to the API unchanged, so these need no provider support.
+
+**Pinning the inference region.** Pass ``model`` as a config object instead of
a bare id to
+confine inference to one region:
+
+.. code-block:: python
+
+ hook.create_agent(
+ name="us-only-analyst",
+ model={"id": "claude-opus-5", "inference_geo": "us"},
+ )
+
+An unsupported value is rejected with a 400 naming the accepted set; see `Data
residency
+<https://platform.claude.com/docs/en/manage-claude/data-residency>`__ for the
regions
+Anthropic currently serves and the workspace-level controls, rather than
relying on a list
+copied here. When ``inference_geo`` is unset, requests fall through to the
workspace's
Review Comment:
Applied your suggestion. You are right that it was internal reasoning -- it
explained why *we* chose not to copy the list, which tells a user nothing about
the field. The sentence now just points at the page that owns the values.
--
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]