You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.5 KiB
1.5 KiB
Langchain multi-tool LLM service
Run
First, configure
.env
file for your LM Studio MODEL and HOST!
uvicorn app.main:app --reload
API
List of the Tools
GET /tools
Content-Type: application/json
Response:
[
{
"id": 0,
"name": "string",
"description": "string"
}
]
Create a Tool
POST /tools
Content-Type: application/json
{
"name": "Calculator",
"description": "Useful for performing mathematical calculations. Input should be a valid mathematical expression.",
"function_code": "def tool_function(input: str) -> str:\n try:\n aeval = Interpreter()\n result = aeval(input)\n return str(result)\n except Exception as e:\n return f\"Error evaluating expression: {e}\""
}
Response: