Reference docMembers

Sampling

Sampling is a reference document for GitHub Copilot, from the GitHub awesome-copilot collection by github. The full text is about 722 words in 8 sections, with 5 code blocks and 1 table. It is a supporting file that a skill or agent reads while it works, so the main instructions can stay short.

It is most useful for people working in Backend and Data and ML who use GitHub Copilot.

What it covers

  • When to use sampling
  • Prerequisite: stateful transport
  • Recommended: IChatClient adapter
  • Lower-level: SampleAsync
  • IncludeContext
  • Capability check
  • Performance notes
  • Sampling vs. doing it server-side

The full text is in the members library

Book a call and we will give you access to the full GitHub Copilot library: every entry in full, search by meaning, copy and download.

Source: https://github.com/github/awesome-copilot/blob/main/skills/dotnet-mcp-builder/references/sampling.md

Author: github, GitHub awesome-copilot. License: MIT.

Related entries