From 201ee39ebe580dc7f03c462a54ee2f394e89aa42 Mon Sep 17 00:00:00 2001 From: Aditya Chhabra Date: Thu, 2 Oct 2025 17:40:44 +0530 Subject: [PATCH] chore: Add yaml file with 'memory_enabled: true' --- examples/basic_chat_with_memory.yaml | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 examples/basic_chat_with_memory.yaml diff --git a/examples/basic_chat_with_memory.yaml b/examples/basic_chat_with_memory.yaml new file mode 100644 index 00000000..77fa9631 --- /dev/null +++ b/examples/basic_chat_with_memory.yaml @@ -0,0 +1,40 @@ +# Basic Chat with Memory Configuration +# Simple conversational agent with memory enabled for testing + +agents: + chat_agent: + type: llm + config: + provider: openai + model: gpt-4 + temperature: 0.8 + memory_enabled: true + max_history: 10 + system_prompt: | + You are a helpful and friendly AI assistant with memory. + You can remember our conversation and refer back to previous topics. + Respond naturally and conversationally, and feel free to reference + what we've discussed before. + +# NEW: Unified routes section +routes: + # Main chat processing route + chat_stream: + type: stream # REQUIRED: Must specify type (stream or graph) + stream_type: cold + operators: + - type: map + params: + agent: chat_agent + publications: + - __output__ + +# Simple flow: input -> chat -> output +merges: + - sources: [__input__] + target: chat_stream + +context: + global: + conversation_mode: true + memory_enabled: true