Tool Assisted API enhances a model’s capabilities by integrating tools that extend its functionality beyond simple conversational interactions. By using this API, the model becomes more dynamic, providing more comprehensive and actionable responses. Currently, Friendli Serverless Endpoints supports a variety of built-in tools specifically designed for Chat Completion tasks.
file:text
tool, I’ve extracted the following text: [Text from the file].”Feature | Chat Completion | Tool Assisted Chat Completion |
---|---|---|
Response Type | Based on internal knowledge | Uses external tools for enhanced, real-time responses |
Capabilities | Limited to pre-learned knowledge | Can interact with tools for data retrieval and task execution |
Example | ”What is the weather today?” (general knowledge) | “What is the weather today?” (live API result) |
Use Cases | General conversation and Q&A | Complex tasks like real-time updates, data analysis, file processing |
math:calculator
math:statistics
math:calendar
web:search
web:url
code:python-interpreter
file:text
.txt
and .pdf
formats. To use this tool, you must provide the file IDs. (For now, only one file is supported.)
When Used:
Automatically called when text extraction from a file is requested, such as pulling content from documents or reports.