-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add article about accessing data in AI functions #49944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new how-to article about accessing data in AI functions and reorganizes the AI documentation TOC. The changes update existing quickstart examples to use API keys instead of DefaultAzureCredential, upgrade to .NET 10 and newer package versions, and introduce examples showing how to access contextual data within AI function delegates.
Key changes:
- New how-to article explaining data access patterns in AI functions using
AIFunctionArgumentsandAdditionalProperties - TOC restructuring to group function calling and text-to-image content more logically
- Updates to existing function calling examples with authentication and code comment improvements
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/ai/toc.yml | Adds new "Call functions" section and reorganizes "Text to image" section for better structure |
| docs/ai/quickstarts/use-function-calling.md | Updates date, improves grammar, fixes snippet reference case, removes Semantic Kernel note, adds link to new article |
| docs/ai/quickstarts/snippets/function-calling/openai/Program.cs | Updates function description text for consistency |
| docs/ai/quickstarts/snippets/function-calling/azure-openai/Program.cs | Switches from DefaultAzureCredential to API key authentication, updates code comments and formatting |
| docs/ai/quickstarts/snippets/function-calling/azure-openai/FunctionCallingAI.csproj | Upgrades to .NET 10 and Microsoft.Extensions.AI 10.0.0 |
| docs/ai/quickstarts/includes/semantic-kernel.md | Removes entire file (Semantic Kernel reference note) |
| docs/ai/quickstarts/includes/create-ai-service.md | Adds API key configuration to user secrets setup |
| docs/ai/how-to/snippets/access-data/Project.csproj | New project file for access-data examples targeting .NET 10 |
| docs/ai/how-to/snippets/access-data/Program.cs | New minimal program entry point for running access-data examples |
| docs/ai/how-to/snippets/access-data/ArgumentsExample.cs | New code examples demonstrating AIFunctionArguments and AdditionalProperties usage patterns |
| docs/ai/how-to/access-data-in-functions.md | New how-to article explaining data access mechanisms in AI functions |
|
@verdie-g Do you want to take a look? |
BillWagner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once you address the open conversations, this LGTM.
Fixes #48469.
Internal previews