kapvadym/llm-tool-agent-memory
Tool-Calling Agent
A conversational agent that calls real tools — calculator, web search, product lookup — and remembers the conversation.
- 1.Your message + the session's stored history is sent to Gemini with 4 tool declarations.
- 2.Gemini decides whether to call a tool (calculator, date/time, product search, web search) or just reply.
- 3.Tool results are fed back to Gemini, which writes the final reply — this can loop a few times per turn.
Next.jsGemini tool-callingTavily
Memory persists across turns in this session — try a follow-up question.