Files
agent-framework/dotnet/samples/GettingStarted/AgentProviders/Agent_With_CustomImplementation
T
westey 6255abd687 .NET: [BREAKING] Move AgentSession.Serialize to AIAgent (#3650)
* Move AgentSession.Serialize to AIAgent

* Address PR comments.

* Improve code and fix unit test

* Update test agents to return a default json element instead of throwing where the the result of the serialization is never used.

* Update further tests to actually serialize the session
6255abd687 ยท 2026-02-04 15:52:15 +00:00
History
..

Agent with Custom Implementation

This sample demonstrates how to create a fully custom agent implementation without relying on external AI services.

Overview

The sample creates a simple "parrot" agent that:

  • Converts user input to uppercase
  • Supports both synchronous and streaming invocation modes
  • Demonstrates the complete implementation requirements for a custom agent

This pattern is useful when you need to:

  • Integrate with custom AI models or services
  • Create rule-based agents without AI
  • Build agents with specific custom logic