Built-In Tools (Beta)
Friendli Serverless Endpoints automatically selects the most appropriate tool to perform tasks based on user input.
These tools can handle various operations, such as calculations, statistical analysis, web search, file content extraction, and code execution.
Below is a more detailed description of the available tools in Friendli Serverless Endpoints and when they are typically used:
math:calculator
Description:
Performs basic arithmetic operations like addition, subtraction, multiplication, division, and more complex calculations like and square roots or exponents. It is useful for any tasks requiring mathematical computation.
When Used:
Automatically called when mathematical expressions or calculations are required. Whether you’re solving equations, calculating percentages, or handling financial calculations, this tool performs the task for you.
math:statistics
Description:
Performs statistical analysis, including calculating mean, median, mode, standard deviation, and correlations. It is tailored for situations where you need to analyze or interpret numeric datasets to understand trends or patterns.
When Used:
Automatically called when analyzing numeric data or generating insights from datasets, like summarizing survey results, or calculating probabilities.
math:calendar
Description:
Handles date-related data, such as calculating date differences or finding specific days in the past or future. It is effective in managing and manipulating calendar-based information.
When Used:
Automatically called when operations involving dates or time spans are required, like finding how many days remain until an event. For example, figuring out how many days are left until an event, determining the day of the week for a specific date, or calculating the duration between two dates.
web:search
Description:
Retrieves information from the web based on search queries. It fetches information based on keywords and helps gather knowledge or insights from online sources.
When Used:
Automatically called when you ask questions or seek information that requires external research or the latest data from the web. Whether it is looking up definitions, recent news, or general web searches, this tool handles such tasks effectively.
web:url
Description:
Extracts specific data from a given website. You can provide a URL, and the tool will fetch the relevant content, including text, metadata, or other embedded information, from that web page.
When Used:
Automatically called when extracting content from a provided URL, such as fetching text from articles or blog posts.
code:python_interpreter
Description:
Executes Python code directly within the platform for custom scripts, data processing, or automation. You can run Python scripts, test snippets of code, or automate tasks through coding logic.
When Used:
Automatically called when tasks involve writing or running Python scripts, such as custom data manipulations or logic-based automation.
file:text
Description:
Reads and extracts text from files, supporting only .txt and .pdf formats. To use this tool, you must provide the file IDs.
When Used:
Automatically called when text extraction from a file is requested, such as pulling content from documents or reports.
Was this page helpful?