mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
ec82ed15d2
* Add a StateBag to AgentSession and pass Agent and AgentSession to AIContextProvider and ChatHistoryProviders * Remove statebag code from this branch, to get the refactoring out of the way first * Apply suggestion from @rogerbarreto Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com> * Apply suggestion from @westey-m * Apply suggestion from @westey-m --------- Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>
ec82ed15d2
ยท
2026-02-05 15:58:41 +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