Spaces:
Runtime error
Runtime error
Commit History
-
Enhance agent and models for improved JSON handling and memory type normalization
eriquesouza- Updated `agent.py` to include a new function for parsing LLM output, ensuring strict JSON compliance and handling various output formats. - Modified response format in `agent.py` to clarify JSON structure requirements. - Enhanced `models.py` with a normalization function for memory types, allowing for flexible input handling and improved validation. - Introduced a field validator in `NewMemoryItem` to ensure correct memory type coercion during model instantiation.b7b030d
-
Refactor agent to utilize LangChain for enhanced chat interactions
eriquesouza- Updated `agent.py` to integrate LangChain's `ChatOpenAI` and `ChatPromptTemplate`, improving the handling of conversation history and memory context. - Introduced `AgentLLMOutput` and `NewMemoryItem` models in `models.py` to streamline response parsing and memory management. - Modified memory handling to support structured output and improved memory saving logic. - Updated `requirements.txt` to include necessary LangChain dependencies.fb06dfe
-
Add initial implementation of retail business advisor agent with memory management
eriquesouza- Created core files: `agent.py` for agent logic, `memory_store.py` for memory handling, and `models.py` for data structures. - Implemented FastAPI app in `main.py` with endpoints for chat and memory management. - Added initial seed memories in `seeds.py` and a static HTML interface in `static/index.html`. - Updated `.gitignore` to include environment files and database directory. - Included a README with setup instructions and project structure.0d61e07