#🚀 Features Prompt Caching with Anthropic:
Efficient token management through prompt caching, drastically reducing token usage and improving response times. Real-time token streaming. Tool execution feedback. Robust error handling for failed tool calls. Modern Chat Interface:
Tool-augmented responses and context-aware conversations. Efficient token management with a 4096 token context window. Production Deployment with Vercel:
Environment variable management. Production-ready configurations and performance optimization.
Node.js: Core runtime environment for building scalable network applications. OpenAI API and Claude 3.5 Sonnet: For natural language understanding and generation. LangChain & LangGraph: For sophisticated tool usage and state management. IBM's wxflows: Rapid integration with various data sources. Clerk & Convex Database: User management and real-time data synchronization. Next.js 15: Frontend framework with custom streaming solutions. Vercel: Deployment platform with performance optimizations. Clone the repository: sh Copy Edit git clone https://github.com/Saloni1707/AI-agents.git cd ai-agents Install dependencies:sh Copy Edit npm install Set up environment variables: Create a .env file and add the following:
To start the AI agents:
npm run dev
📁 Project Structure
ai-agents/ │ ├── index.js # Entry point for the application ├── agents/ # Directory containing agent logic ├── utils/ # Helper functions and utilities ├── data/ # Sample data for agent interactions ├── components/ # Frontend components for the chat interface ├── pages/ # Next.js pages ├── public/ # Static assets └── package.json # Node.js dependencies and scripts
Contributions are welcome! Please open an issue or submit a pull request with your changes.