Skip to content

Conversation

omeraplak
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

Currently, adding reasoning tools (think, analyze) and associated instructions to an agent requires manual setup. The documentation provides a basic overview but could be more detailed regarding implementation and best practices.

What is the new behavior?

This PR introduces the createReasoningTools helper function, which simplifies adding reasoning capabilities. It returns a pre-configured Toolkit containing the think and analyze tools, along with optional instructions and few-shot examples for the agent's system prompt.
The documentation (reasoning-tool.mdx) has been significantly updated to:

  • Explain the createReasoningTools helper and its options.
  • Clarify the purpose and internal workflow of the think and analyze tools.
  • Include key instructions and guidelines provided to the agent.
  • Provide a more detailed usage example and expanded best practices, including linking to the Developer Console for monitoring.

fixes #24

Notes for reviewers

The main goal here is to improve the developer experience for adding and using structured reasoning in VoltAgent. The createReasoningTools helper abstracts away the setup complexity, and the updated documentation provides clearer guidance.

@omeraplak omeraplak changed the title Feat/add toolkit create reasoning tools feat: add toolkit create reasoning tools Apr 25, 2025
Copy link

cloudflare-workers-and-pages bot commented Apr 25, 2025

Deploying voltagent with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63b0221
Status: ✅  Deploy successful!
Preview URL: https://a54a37ac.voltagent.pages.dev
Branch Preview URL: https://feat-add-toolkit-createreaso.voltagent.pages.dev

View logs

@omeraplak omeraplak merged commit 52d5fa9 into main Apr 25, 2025
5 checks passed
@omeraplak omeraplak deleted the feat/add-toolkit-createReasoningTools branch April 25, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reasoning Tools (Think/Analyze)

1 participant