Dependency Injection Confusion
メンテナーはふだん 1 日以内に返信
@gewarren がすでに取り組んでいます。
2025年11月3日 から。
評価
この issue はまだ評価されていません。
説明
Type of issue
Missing information
Description
This might not be the best place for this but UseFunctionInvocation() caused me to run around in circles for a bit in combination with the lack of documentation addressing Dependency Injection, particularly in regards to tool calls.
Using UseFunctionInvocation() causes the root SP to be "captured" so IServiceProvider on tool call methods does not get injected with the scoped SP even if you pass it into the Agent constructor. There is a subtle(?) bit in the documentation on that constructor suggestion the SP provided is useless unless it needs to add an Invoking client..
I'm have no recommendations on the best way to clear things up; my head is still spinning from diving into everything today 😆
Page URL
https://learn.microsoft.com/en-us/dotnet/ai/quickstarts/use-function-calling
Content source URL
https://github.com/dotnet/docs/blob/main/docs/ai/quickstarts/use-function-calling.md
Document Version Independent Id
7228f348-6649-a87d-bae5-4a70817c03bb
Platform Id
5a517f05-b64b-c471-b99d-72253c213be1
Article author
@gewarren
Metadata
- ID: 27e2bbca-36b0-3883-11f7-321c044ee29a
- PlatformId: 5a517f05-b64b-c471-b99d-72253c213be1
- Service: dotnet
- Sub-service: intelligent-apps
- 主要言語
- 言語のデータがありません
- スター
- 4.8k
- フォーク
- 6.1k
- 平均マージ
- 22時間 46分
- マージ済み PR(30日)
- 296
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet/docs のほかの issue
-
Examenオープンdotnet-csharp/svc lang-reference/subsvc needs-more-info
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
dotnet/docs#56845 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Update the .NET Framework 3.5 on Windows 11 FAQ to mention Windows 11 26H2対応中かも @BillWagner が 3 日前に担当しました。 オープン:pushpin: seQUESTered dotnet/svc
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
dotnet/docs#56791 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
Improve description of `limitations of extensions`対応中かも @Manish-1kumar が 11 日前に担当しました。 オープンadvanced-concepts/subsvc dotnet-csharp/svc
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
dotnet/docs#56626 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Document unit-test / theory-data impact of .NET 11 double→decimal conversion対応中かも @SkyDevLab が 22 日前に担当しました。 オープン:watch: Not Triaged dotnet-fundamentals/svc
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信