Documentation
¶
Overview ¶
Example: GitHub Copilot chat — demonstrates using the Copilot SDK provider.
This creates a Copilot chat model and shows basic invocation, streaming, and tool use with the SDK-managed tool loop.
Prerequisites:
- Copilot CLI installed (https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli)
- GitHub authentication via copilot CLI login or GITHUB_TOKEN env var
Usage:
go run ./examples/copilot_chat/
Click to show internal directories.
Click to hide internal directories.