Skip to content

docs: Add clarifying documentation for FoundryAgent vs FoundryChatClient - #5161

Closed
Saurabh Shandilya (beyondszine) wants to merge 9 commits into
microsoft:mainfrom
beyondszine:fix/5160-foundry-docs
Closed

Saurabh Shandilya (beyondszine) wants to merge 9 commits into
microsoft:mainfrom
beyondszine:fix/5160-foundry-docs

Conversation

@beyondszine

Copy link
Copy Markdown

Add documentation explaining when to use FoundryAgent (connecting to existing Foundry agents) vs FoundryChatClient (direct model access).

This addresses the confusion raised in issue #5160.

Motivation and Context

Description

Contribution Checklist

Add documentation explaining when to use FoundryAgent (connecting to
existing Foundry agents) vs FoundryChatClient (direct model access).

This addresses the confusion raised in issue microsoft#5160.
Use get_response() instead of complete() which is the correct
method name from the base client class.
Copilot AI review requested due to automatic review settings April 8, 2026 10:34
@moonbox3 Evan Mattson (moonbox3) added the documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs label Apr 8, 2026
@beyondszine

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree company="microsoft"

Copilot AI 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.

Pull request overview

Adds a new Azure AI Foundry integration doc to clarify when to use FoundryAgent (connect to existing Foundry PromptAgent/HostedAgent) versus FoundryChatClient (direct model deployment access), addressing confusion from issue #5160.

Changes:

  • Added a comparison of Foundry integration entry points (FoundryAgent/RawFoundryAgent vs FoundryChatClient/RawFoundryChatClient).
  • Added usage guidance tables, examples, and environment variable/package references.
  • Documented “raw vs recommended” variants and suggested scenarios.

Comment thread docs/features/foundry/README.md Resolved
Comment thread docs/features/foundry/README.md Resolved
Comment thread docs/features/foundry/README.md Resolved
Comment thread docs/features/foundry/README.md Resolved
- Fix FoundryChatClient example to use Message objects and response.text
- Separate usage guidance for RawFoundryAgent and RawFoundryChatClient
- Update Raw vs Recommended section to clarify actual layering
- Fix scenario table to reference client_type parameter for raw agent
@beyondszine

Copy link
Copy Markdown
Author

Copilot apply changes based on the comments in this thread

@beyondszine

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@beyondszine

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree company="microsoft"

@beyondszine

Copy link
Copy Markdown
Author

Evan Mattson (@moonbox3) a gentle nudge to give this a review; when you find time.

@moonbox3 Evan Mattson (moonbox3) 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.

Thanks for the contribution. This GitHub Issue filed is for some internal tracking where we will add the doc to our Microsoft Learn Site docs pages, and not as a markdown file to the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants