sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

[DOCS] Add setup guidance for the provider-backed decision models

Open yonib05 opened this issue 2 weeks ago • 1 comments

Documentation Section

site/src/content/docs/user-guide/sdk/decision-models/models/index.mdx (https://strandsagents.com/docs/user-guide/sdk/decision-models/models/)

Current State

The "Built-in decision models" table names TypeSafeDecisionModel, DecisionsAPIDecisionModel, and SageMakerDecisionModel, but the page does not show how to use them. Only LLMDecisionModel has its own page. After #5591, the TypeSafe Jev, Decisions API, and SageMaker Decision Model cards on the integrations page link to this page.

Suggested Improvement

Add setup guidance for each provider-backed decision model, either as a subsection per provider or one "Provider-backed decision models" section with Python and TypeScript tabs:

  • The import path. In TypeScript, SageMakerDecisionModel is only exported from @strands-agents/sdk/decisions/sagemaker, and it needs the optional @aws-sdk/client-sagemaker-runtime peer dependency. In Python, the three classes are imported from strands.decisions.
  • Credentials and configuration. TypeSafeDecisionModel reads TYPESAFE_API_KEY. DecisionsAPIDecisionModel reads JEV_API_KEY. SageMakerDecisionModel takes an endpoint name and region, and callers need sagemaker:InvokeEndpoint.
  • A minimal ask call for each.

Then point each catalog entry's docsPage (site/src/content/catalog/typesafe-jev.yaml, decisions-api.yaml, sagemaker-decision-model.yaml) at its own page or anchor.

Once the Python SageMakerDecisionModel (#6085) is in a PyPI release, also add python: {} back to sagemaker-decision-model.yaml.

Rationale

Every other maintainedBy: strands catalog card links to a page that shows setup. Raised in review on #5591.

yonib05 avatar Nov 17 '26 18:11 yonib05

Hi, I'd like to pick this up. On current main the per-provider pages already exist (typesafe.mdx, decisions-api.mdx, sagemaker.mdx under decision-models/models/), and what I still see missing is the three catalog entries (typesafe-jev.yaml, decisions-api.yaml, sagemaker-decision-model.yaml), which still point docsPage at the models index. I'd change those three lines to the matching pages and leave the Python sagemaker addition until it is in a release. I used an AI coding assistant to prepare the change, and I will read every line before opening it. Is that scope what you want, and is it fine for me to take it?

MaxonT avatar Nov 24 '26 04:11 MaxonT