pipelines.agent.tools
Agent tool utilities
fromdocs
def fromdocs(
target, config
):
Creates a tool from method documentation.
Args: target: target object or function config: tool configuration
Returns: Tool
FunctionTool
def FunctionTool(
config
):
Creates a FunctionTool. A FunctionTool takes descriptive configuration and injects it along with a target function into an LLM prompt.
createtool
def createtool(
target, config:NoneType=None
):
Creates a new Tool.
Args: target: target object or function config: optional tool configuration
Returns: Tool
VectorStoreTool
def VectorStoreTool(
name:str, description:str, store:VectorStore
):
Tool to execute an VectorStore search.