How can model interact with external environment
- Tool calling Enabled Models
-
Model cannot call tools, Given multiple tools to it, it can decide which tool will solve your problem and generate a structured output
-
Prompt
Role: You will Show me raw llm output on the scenarios which i ask
Prompt: I have passed a tool calling enabled model the following add, sub, mul, div, modulus. The prompt is I have 500 rupees and i got 100 more more whats the total amount
Who calls tools and How to define them
- Tools can be defined in many ways w.r.t which framework or which model you are using
- MCP (Model Context Protocol) generalizes tools.
- MCP has two major components
- Server: This is your tool
- Client: Who calls the server (agents)
- MCP is the standard announced by anthropic and later on many models accepted this format.
-
MCP is like a type-c charger tool which works with everything.
-
Awesome mcp servers
-
Find if there is any existing mcp server for
- Weather updates
- Stock investing
- Books databases (isbn)
- Web search
- Ecommerce
