Creating Your Own Custom Tool
This is an example of how to create a custom tool that can be registered to GLChat.
Installation
# you can use a Conda environment
pip install gllm-plugin-binaryCreating a Custom Tool
from pydantic import BaseModel, Field
class MyCalculatorToolInput(BaseModel):
param1: int = Field(..., description="Description for parameter 1")
param2: str = Field(..., description="Description for parameter 2")
param3: int = Field(..., description="Description for parameter 3")Last updated