Skip to content

docs: Add clarifying documentation for FoundryAgent vs FoundryChatClient#5161

Open
beyondszine wants to merge 4 commits intomicrosoft:mainfrom
beyondszine:fix/5160-foundry-docs
Open

docs: Add clarifying documentation for FoundryAgent vs FoundryChatClient#5161
beyondszine wants to merge 4 commits intomicrosoft: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 moonbox3 added the documentation Improvements or additions to documentation label Apr 8, 2026
@beyondszine
Copy link
Copy Markdown
Author

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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.

- 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

@microsoft-github-policy-service
Copy link
Copy Markdown

@beyondszine the command you issued was incorrect. Please try again.

Examples are:

@microsoft-github-policy-service agree

and

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

@beyondszine
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@beyondszine
Copy link
Copy Markdown
Author

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

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants