Skip to content

[dotnet-ai] MEAI chat integration#239

Closed
luisquintanilla wants to merge 1 commit into
dotnet:mainfrom
luisquintanilla:dotnet-ai/meai-chat
Closed

[dotnet-ai] MEAI chat integration#239
luisquintanilla wants to merge 1 commit into
dotnet:mainfrom
luisquintanilla:dotnet-ai/meai-chat

Conversation

@luisquintanilla

Copy link
Copy Markdown
Contributor

Fixes #227
Part of #225

Dependencies

Merge order: This PR should be merged after #237 Plugin scaffold.

Summary

Adds the meai-chat-integration skill the foundation layer that most other dotnet-ai skills build upon. Guides developers through integrating LLM chat capabilities using Microsoft.Extensions.AI and the IChatClient abstraction.

Also includes references/tokenizers.md, a comprehensive reference for Microsoft.ML.Tokenizers covering all 8 tokenizer types (Tiktoken, BPE, SentencePiece, Llama, BERT, WordPiece, CodeGen, Phi2) and core operations (CountTokens, EncodeToIds, Decode, GetIndexByTokenCount).

Changes

File Description
plugins/dotnet-ai/skills/meai-chat-integration/SKILL.md IChatClient setup, ChatClientBuilder middleware pipeline, streaming, structured output, retry/resilience, model pinning, token counting, output validation
plugins/dotnet-ai/skills/meai-chat-integration/references/tokenizers.md Microsoft.ML.Tokenizers API reference token counting, truncation, encoding/decoding, cross-skill usage table
tests/dotnet-ai/meai-chat-integration/eval.yaml Eval: ASP.NET Core chat endpoint scenario

Key Packages

  • Microsoft.Extensions.AI
  • Microsoft.ML.Tokenizers
  • Provider: OpenAI, Azure.AI.OpenAI, or OllamaSharp

Validation

  • SKILL.md has valid YAML frontmatter (name, description)
  • Covers IChatClient setup, streaming, structured output, middleware, resilience
  • references/tokenizers.md covers all 8 tokenizer types and core operations
  • eval.yaml has at least one scenario
  • Does not duplicate content from other skills

Adds the MEAI chat integration skill covering IChatClient setup,
middleware pipeline, streaming, structured output, resilience, and
token counting. Includes references/tokenizers.md for the full
Microsoft.ML.Tokenizers API.

Fixes dotnet#227
Part of dotnet#225

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@luisquintanilla

Copy link
Copy Markdown
Contributor Author

Closing this skill's content has been bundled into #237 (scaffold + meai-chat-integration) per reviewer feedback that a blank plugin definition should not merge without content. Issue #227 is now addressed by #237.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dotnet-ai] MEAI chat integration

1 participant