Closed RobinQu closed 4 months ago
langchian tool invocation without function calling API https://python.langchain.com/docs/use_cases/tool_use/prompting/
Tool description rendering
def render_text_description(tools: List[BaseTool]) -> str:
"""Render the tool name and description in plain text.
Output will be in the format of:
.. code-block:: markdown
search: This tool is used for search
calculator: This tool is used for math
"""
return "\n".join([f"{tool.name}: {tool.description}" for tool in tools])
def render_text_description_and_args(tools: List[BaseTool]) -> str:
"""Render the tool name, description, and args in plain text.
Output will be in the format of:
.. code-block:: markdown
search: This tool is used for search, args: {"query": {"type": "string"}}
calculator: This tool is used for math, \
args: {"expression": {"type": "string"}}
"""
tool_strings = []
for tool in tools:
args_schema = str(tool.args)
tool_strings.append(f"{tool.name}: {tool.description}, args: {args_schema}")
return "\n".join(tool_strings)
it should be closed with release of v0.1.3.
Manifest
Project plans
Stage 0 - POC - for one week
I'm still getting too many questions about implementation. Let's do some minimum implementation for inspirations.
Stage 1 - Assistant API Server for v0.1.2
19
First version of mini-assistant
Future developments
paralled call using LLMCompiler ?
scaliblity on cloud: PGSQL, Kafka, …