SlackSendTool
Initialize the SlackSendTool.
Parameters:
Instance Attributes
description
func
function_schema
Get the schema for the function.
This is the old way of handling function calls with OpenAI and compatible frameworks.
It is provided for backward compatibility.
name
realtime_tool_schema
Get the schema for the tool.
This is the preferred way of handling function calls with OpeaAI and compatible frameworks.
tool_schema
Get the schema for the tool.
This is the preferred way of handling function calls with OpeaAI and compatible frameworks.
Instance Methods
register_for_execution
This method registers the tool so that it can be executed by the agent, typically outside of the context of an LLM interaction.
Parameters:
register_for_llm
This method registers the tool so that it can be invoked by the agent during interactions with the language model.
Parameters:
register_tool
Equivalent to calling both
register_for_llm and register_for_execution with the same agent.Note: This will not make the agent recommend and execute the call in the one step. If the agent recommends the tool, it will need to be the next agent to speak in order to execute the tool.
Parameters: