Skip to content
Rasmus Wulff Jensen edited this page Dec 26, 2025 · 3 revisions

NuGet README

Features

  • AgentFactory (GitHubAgentFactory)
  • AIToolsFactory integration (tools in GitHubAgentOptions.Tools)
  • Uses the GitHub Models inference endpoint (models.github.ai/inference)

Package

dotnet add package AgentFrameworkToolkit.GitHub

Quick start

GitHubAgentFactory agentFactory = new("<accessToken>");
GitHubAgent agent = agentFactory.CreateAgent("openai/gpt-5");

AgentRunResponse response = await agent.RunAsync("Hello World");
Console.WriteLine(response);

Connection options

  • AccessToken (required GitHub personal access token with Models access)
  • NetworkTimeout
  • AdditionalAzureAIInferenceClientOptions

Dependency injection

builder.Services.AddGitHubAgentFactory("<accessToken>");
builder.Services.AddGitHubAgentFactory(new GitHubConnection
{
    AccessToken = "<accessToken>",
    NetworkTimeout = TimeSpan.FromMinutes(5)
});

Notes

Clone this wiki locally