initial commit
This commit is contained in:
25
venv/Lib/site-packages/langchain_classic/tools/render.py
Normal file
25
venv/Lib/site-packages/langchain_classic/tools/render.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""Different methods for rendering Tools to be passed to LLMs.
|
||||
|
||||
Depending on the LLM you are using and the prompting strategy you are using,
|
||||
you may want Tools to be rendered in a different way.
|
||||
This module contains various ways to render tools.
|
||||
"""
|
||||
|
||||
# For backwards compatibility
|
||||
from langchain_core.tools import (
|
||||
render_text_description,
|
||||
render_text_description_and_args,
|
||||
)
|
||||
from langchain_core.utils.function_calling import (
|
||||
convert_to_openai_function as format_tool_to_openai_function,
|
||||
)
|
||||
from langchain_core.utils.function_calling import (
|
||||
convert_to_openai_tool as format_tool_to_openai_tool,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"format_tool_to_openai_function",
|
||||
"format_tool_to_openai_tool",
|
||||
"render_text_description",
|
||||
"render_text_description_and_args",
|
||||
]
|
||||
Reference in New Issue
Block a user