Skip to content

AI Guard docs refactor#35869

Merged
obordeau merged 48 commits into
masterfrom
oceane.bordeau/ai-guard-docs-refactor
Apr 27, 2026
Merged

AI Guard docs refactor#35869
obordeau merged 48 commits into
masterfrom
oceane.bordeau/ai-guard-docs-refactor

Conversation

@obordeau

@obordeau obordeau commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Refactors the AI Guard documentation from a single onboarding page into a structured multi-page layout.

Commit-by-commit breakdown

  1. Extract security signals into dedicated page — Moves the security signals section from the onboarding page to a new signals.md page, with a summary and link left in onboarding.

  2. Extract setup instructions into dedicated page — Moves the full setup steps (prerequisites, API keys, Agent, retention filter, policies, access control) from the onboarding page to a new setup/ section.

  3. Create setup subpages for integrations, SDK, and HTTP API — Creates four subpages under setup: automatic integrations, manual integrations, SDK, and HTTP API. Moves SDK and REST API content from onboarding into their respective pages.

  4. Remove API and SDK sections from onboarding page — Cleans up the onboarding page after content was moved to subpages.

  5. Add Datadog Agent setup section to integrations and SDK pages — Adds the Agent setup prerequisite to automatic integrations, manual integrations, and SDK pages.

  6. Move tracer library install section from setup index to SDK page — Moves the tracer install instructions (Python, JS, Java, Ruby) to the SDK page where they belong.

  7. Replace Agent setup step with instrumentation options overview — Replaces step 3 in the setup index with an overview of all instrumentation options (SDK, automatic integrations, manual integrations, HTTP API) with links to each subpage.

  8. Reorder onboarding sections and trim HTTP API page — Reorders sections in onboarding and removes env vars table and request message format from the HTTP API page.

  9. Update automatic integrations with env vars, AI SDK v6, and blocking mode — Updates automatic integrations page with the correct AI SDK v6 version, required environment variables, and blocking mode documentation.

  10. Update SDK docs with tags, sds, and accurate method signatures — Updates Python, JavaScript, and Java SDK docs with tags and sds return fields, fixes parameter descriptions, and adds Java Message.tool() example.

  11. Add SDS category and rule tag attributes to detection rules — Adds @ai_guard.sds.categories and @ai_guard.sds.rule_tags to the detection rules attribute table.

  12. Add warning that HTTP API requests don't appear in Datadog UI — Adds a warning banner explaining that HTTP API evaluations don't send traces to Datadog.

Merge instructions

Merge readiness:

  • Ready for merge

@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label Apr 9, 2026
@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

@manuel-alvarez-alvarez
manuel-alvarez-alvarez force-pushed the oceane.bordeau/ai-guard-docs-refactor branch from a5409ac to 3ce9e7f Compare April 10, 2026 13:37
@obordeau
obordeau marked this pull request as ready for review April 13, 2026 07:18
@obordeau
obordeau requested review from a team as code owners April 13, 2026 07:18

@manuel-alvarez-alvarez manuel-alvarez-alvarez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread content/en/security/ai_guard/setup/sdk.md Outdated
Comment thread content/en/security/ai_guard/setup/sdk.md Outdated
@avara1986

Copy link
Copy Markdown
Member

Just out of curiosity, with this documentation update, do you think it’s aligned with the Strands Agent docs? Should we update anything in their documentation as well?

https://strandsagents.com/docs/community/plugins/datadog-ai-guard/

Comment thread content/en/security/ai_guard/setup/sdk.md Outdated

@janine-c janine-c left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for applying those edits! Just a couple outstanding things and then we should be good to go!

Comment thread content/en/security/ai_guard/setup/_index.md Outdated
Comment thread content/en/security/ai_guard/setup/automatic_integrations.md Outdated
Comment thread content/en/security/ai_guard/setup/http_api.md Outdated

@janine-c janine-c left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful! Thank you so much for your help on this!!

@obordeau
obordeau merged commit eb157da into master Apr 27, 2026
17 of 18 checks passed
@obordeau
obordeau deleted the oceane.bordeau/ai-guard-docs-refactor branch April 27, 2026 14:30
estherk15 pushed a commit that referenced this pull request May 4, 2026
* feat(ai-guard): extract security signals into dedicated page

* feat(ai-guard): extract setup instructions into dedicated page

* feat(ai-guard): create setup subpages for integrations, SDK, and HTTP API

* refactor(ai-guard): remove API and SDK sections from onboarding page

* feat(ai-guard): add Datadog Agent setup section to integrations and SDK pages

* refactor(ai-guard): move tracer library install section from setup index to SDK page

* refactor(ai-guard): replace Agent setup step with instrumentation options overview

* refactor(ai-guard): reorder onboarding sections and trim HTTP API page

* feat(ai-guard): update automatic integrations with env vars, AI SDK v6, and blocking mode

* fix(ai-guard): update SDK docs with tags, sds, and accurate method signatures

* feat(ai-guard): add SDS category and rule tag attributes to detection rules

* fix(ai-guard): add warning that HTTP API requests don't appear in Datadog UI

* Update versions and build sdk setup partial

* Add manual instrumentation docs

* Fix links in the sdk setup partial

* Fix whitespace trimmers

* Improve manual integrations

* Update content/en/security/ai_guard/setup/sdk.md

Co-authored-by: Alberto Vara <[email protected]>

* Update content/en/security/ai_guard/setup/sdk.md

Co-authored-by: Alberto Vara <[email protected]>

* Ruby: Add content-parts example to AI Guard SDK

* Document AI Guard permissions in setup guide (#36087)

Add a Required permissions table to the AI Guard setup prerequisites
listing AI Guard Evaluate, AI Guard View, AI Guard Write, and User Access
Manage with their roles.

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>

* Update content/en/security/ai_guard/setup/_index.md

Co-authored-by: Janine Chan <[email protected]>

* Update content/en/security/ai_guard/setup/_index.md

Co-authored-by: Janine Chan <[email protected]>

* Update content/en/security/ai_guard/setup/_index.md

Co-authored-by: Janine Chan <[email protected]>

* Update content/en/security/ai_guard/setup/_index.md

Co-authored-by: Janine Chan <[email protected]>

* Update content/en/security/ai_guard/setup/_index.md

Co-authored-by: Janine Chan <[email protected]>

* Update content/en/security/ai_guard/setup/_index.md

Co-authored-by: Janine Chan <[email protected]>

* Fix sensitive data link

* Update content/en/security/ai_guard/setup/automatic_integrations.md

Co-authored-by: Janine Chan <[email protected]>

* Fix langchain links

* Update content/en/security/ai_guard/setup/automatic_integrations.md

Co-authored-by: Janine Chan <[email protected]>

* Update content/en/security/ai_guard/setup/manual_integrations.md

Co-authored-by: Janine Chan <[email protected]>

* Update content/en/security/ai_guard/setup/sdk.md

Co-authored-by: Janine Chan <[email protected]>

* Update content/en/security/ai_guard/signals.md

Co-authored-by: Janine Chan <[email protected]>

* Update content/en/security/ai_guard/setup/http_api.md

Co-authored-by: Janine Chan <[email protected]>

* Use headers instead of collapse

* Remove private true

* Remove tabs

* Update header size

* Remove mardown in partial

* Remove langchain dead link

* Remove collapses

* Update content/en/security/ai_guard/setup/_index.md

Co-authored-by: Janine Chan <[email protected]>

* refactor(ai-guard): rename tracer references to SDK

---------

Co-authored-by: Manuel Álvarez Álvarez <[email protected]>
Co-authored-by: Alberto Vara <[email protected]>
Co-authored-by: Yury Lebedev <[email protected]>
Co-authored-by: Emmanuelle Lejeail <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Co-authored-by: Janine Chan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Everything related to the Doc backend editorial review Waiting on a more in-depth review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants