Lee-W commented on code in PR #71464:
URL: https://github.com/apache/airflow/pull/71464#discussion_r3765138612
##########
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:
```suggestion
Anthropic currently serves and the workspace-level controls. When
``inference_geo`` is unset, requests fall through to the workspace's
```
This description feel like internal to us instead of something user should
know
--
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]