#atom

Techniques for instructing language models to effectively utilize external tools

Core Idea: Tool-augmented prompting involves specialized prompt engineering methods that guide LLMs to properly identify when tools are needed, select appropriate tools, format calls correctly, and effectively use the returned information.

Key Elements

Prompting Techniques


You have access to the following tools:

1. search_web(query: string) - Search the web for information
2. calculator(expression: string) - Evaluate mathematical expressions
3. weather(location: string) - Get current weather for a location

Only use these tools when necessary. Format tool calls as: <tool>tool_name(parameter1="value", parameter2="value")</tool>

Prompt Components

Implementation Patterns


User: What's the weather in Paris today? Assistant: I'll check the weather for you. <tool>weather(location="Paris, France")</tool> The current weather in Paris is 18°C and partly cloudy.

User: How many days until Christmas? Assistant: I'll calculate that for you. <tool>calculator(expression="days_between(today(), 'December 25, 2025')")</tool> There are 279 days until Christmas.

Cognitive Frameworks

Common Challenges

Evaluation Methods

Connections

Direct Dependencies

Conceptual Framework

Implementation Methods

Applications

Broader Implications

References

  1. White, J., et al. (2023). "A Framework for Tool-Augmented Prompt Engineering"
  2. Wei, J., et al. (2022). "Chain of Thought Prompting Elicits Reasoning in Large Language Models"
  3. Liu, Q., et al. (2023). "Improving Tool-Use for Large Language Models through Guided Prompting"
  4. OpenAI GPT-4 tool use documentation and best practices
  5. Anthropic's Claude documentation on effective tool prompting
  6. LangChain Documentation on Agent Prompting (2023-2024)
  7. Karpas, E., et al. (2022). "MRKL Systems: A modular, neuro-symbolic architecture that combines large language models, external knowledge sources and discrete reasoning"
  8. Zhou, D., et al. (2023). "CRAFT: Tool-Augmented Reasoning And Acting Fine-Tuning"

#tool-use #prompt-engineering #LLM #function-calling #agents #tool-augmentation #instruction-design


Connections:


Sources: