Understanding the Vaul toolkit in TextLayer Core
to_markdown()
to keep system prompts in sync with your toolkit@tool_call
decorator, which transforms regular Python functions into tool calls that can be used by AI systems. This decorator:
Toolkit
class serves as a container for managing collections of tool calls. It provides methods for:
pip
:
Toolkit
class that helps you organize and manage multiple tool calls efficiently:
to_markdown
method. This makes it easy to generate clear documentation tables for users.
The docstring format supports the following special tags:
Desc:
- A detailed description of what the tool doesUsage:
- Guidance on when to use this toolDesc:
tag is provided, the first line of the docstring will be used as the description.
You can then generate a nicely formatted markdown table of all your tools using:
to_markdown
is its ability to help maintain consistency between your code and AI system prompts. As your toolkit evolves with new tools or updated functionality, you can dynamically generate up-to-date documentation to include in your system prompts.
For example, when working with LLM agents that need to know about available tools: