-
-
Notifications
You must be signed in to change notification settings - Fork 6
GitHub
Rasmus Wulff Jensen edited this page Dec 26, 2025
·
3 revisions
- AgentFactory (
GitHubAgentFactory) - AIToolsFactory integration (tools in
GitHubAgentOptions.Tools) - Uses the GitHub Models inference endpoint (
models.github.ai/inference)
dotnet add package AgentFrameworkToolkit.GitHub
GitHubAgentFactory agentFactory = new("<accessToken>");
GitHubAgent agent = agentFactory.CreateAgent("openai/gpt-5");
AgentRunResponse response = await agent.RunAsync("Hello World");
Console.WriteLine(response);-
AccessToken(required GitHub personal access token with Models access) NetworkTimeoutAdditionalAzureAIInferenceClientOptions
builder.Services.AddGitHubAgentFactory("<accessToken>");
builder.Services.AddGitHubAgentFactory(new GitHubConnection
{
AccessToken = "<accessToken>",
NetworkTimeout = TimeSpan.FromMinutes(5)
});- Models are specified by provider/model id (for example
openai/gpt-5). - See AgentFactories and AIToolsFactory for shared options.