Custom Toolset¶
Load custom toolset implementations from Python code.
Basic Usage¶
Creating a Custom Toolset¶
from llmling_agent.resource_providers import ResourceProvider
class MyCustomToolset(ResourceProvider):
async def get_tools(self):
return [
self.create_tool(self.my_tool, category="custom")
]
async def my_tool(self, ctx, param: str) -> str:
"""My custom tool description."""
return f"Result: {param}"