|
|
|
|
|
by hellovai
487 days ago
|
|
yea! even deepseek. Calling an external function / tool calling is really just a data extraction problem. say you have a tool: def calculator(expr: str) -> float then the model just needs to say: {
"function": "calculator",
"args": { "expr": "5 + 10" }
} then in your code you can easily pass that to the "calculator" function and get the result, then hand the result back to the model. Making it feel like the model can "call" an external function. deep seek can also do this: https://www.boundaryml.com/blog/deepseek-r1-function-calling |
|