mellea.backends.tools
Utilities for dealing with tools.
Functions
add_tools_from_model_options
add_tools_from_context_actions
convert_tools_to_json
- Huggingface transformers library lets you pass in an array of functions but doesn’t like methods.
- WatsonxAI uses
from langchain_ibm.chat_models import convert_to_openai_tool
in their demos, but it gives the same values. - OpenAI uses the same format / schema.
json_extraction
find_func
...{"name": string, "arguments": {}}...