-
-
Notifications
You must be signed in to change notification settings - Fork 14
Rasmus Wulff Jensen edited this page Dec 26, 2025
·
5 revisions
- AgentFactory (
GoogleAgentFactory) - AIToolsFactory integration (tools in
GoogleAgentOptions.Tools) - Thinking budget via
ThinkingBudget
dotnet add package AgentFrameworkToolkit.Google
GoogleAgentFactory agentFactory = new("<apiKey>");
GoogleAgent agent = agentFactory.CreateAgent(new GoogleAgentOptions
{
Model = "gemini-2.5-flash",
ThinkingBudget = 5000,
Instructions = "You are a nice AI"
});
AgentRunResponse response = await agent.RunAsync("Hello World");
Console.WriteLine(response);-
ApiKey(required) -
Adapter(IPlatformAdapter, optional)
builder.Services.AddGoogleAgentFactory("<apiKey>");
builder.Services.AddGoogleAgentFactory(new GoogleConnection
{
ApiKey = "<apiKey>"
});- See AgentFactories and AIToolsFactory for shared options.