text
stringlengths
0
5.52k
<tools>
{"type": "function", "function": {"name": "send_feedback", "description": "Allow citizens to send feedback to the government", "parameters": {"type": "object", "properties": {"citizen_name": {"type": "string", "description": "The name of the citizen"}, "feedback_text": {"type": "string", "description": "The feedback me...
{"type": "function", "function": {"name": "submit_service_request", "description": "Allow citizens to submit service requests to the government", "parameters": {"type": "object", "properties": {"citizen_name": {"type": "string", "description": "The name of the citizen"}, "service_request_type": {"type": "string", "desc...
{"type": "function", "function": {"name": "get_engagement_level", "description": "Retrieve the engagement level of citizens", "parameters": {"type": "object", "properties": {"country": {"type": "string", "description": "The country for which you want to get the engagement level (e.g., United States, Germany, Australia)...
INSERT INTO tasks (project_id, assignee_id, title, description, status, priority, story_points, estimated_hours)
VALUES
(1, 1, 'Design new API schema', 'Create OpenAPI 3.0 spec for all endpoints', 'in_progress', 'high', 8, 16.0),
(1, 2, 'Implement rate limiting', 'Add Redis-based rate limiting middleware', 'todo', 'high', 5, 12.0),
(1, 3, 'Write integration tests', 'Cover all critical paths with Postman tests', 'todo', 'medium', 5, 10.0),
(2, 1, 'Create design system', 'Define colors, typography, components', 'todo', 'high', 13, 24.0);
<tools>
{"type": "function", "function": {"name": "get_hsn_tsn", "description": "Fetch HSN/TSN data for a specified car query from the HSN-TSN API.", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "The search query for the car.", "default": "Audi A6"}, "year": {"type": "integer", "de...
{"type": "function", "function": {"name": "cnpj", "description": "Fetch company data by CNPJ (Cadastro Nacional da Pessoa Jurídica) using the RapidAPI service.", "parameters": {"type": "object", "properties": {"cnpj": {"type": "string", "description": "The CNPJ number of the company to fetch data for.", "default": "225...
{"type": "function", "function": {"name": "get_all_kfc_locations_by_state", "description": "Fetches all KFC locations in a specified state using the given RapidAPI key and returns the results.", "parameters": {"type": "object", "properties": {"page": {"type": "integer", "description": "The page number for paginated res...
{"type": "function", "function": {"name": "all_strains_descending", "description": "Fetches a list of all weed strains ordered in a specified descending order from the RapidAPI Weed Strain API.", "parameters": {"type": "object", "properties": {"ordering": {"type": "string", "description": "The attribute by which to ord...
UPDATE tasks
SET status = 'in_review', actual_hours = 14.5, updated_at = CURRENT_TIMESTAMP
WHERE id = 1;
<tools>
{"type": "function", "function": {"name": "nearest_place", "description": "Searches for the nearest named place (village, town, or city) from given GPS coordinates.", "parameters": {"type": "object", "properties": {"lon": {"type": "string", "description": "Longitude in formats like \"12E\", \"12.3E\", \"12.3\", \"13W\"...
{"type": "function", "function": {"name": "air_quality_measurements", "description": "Fetches current air quality measurements per hour for a given city using the Toolbench RapidAPI.", "parameters": {"type": "object", "properties": {"country": {"type": "string", "description": "The country in which the city is located....
UPDATE projects
SET status = 'on_hold', updated_at = CURRENT_TIMESTAMP
WHERE id = 2 AND deadline < CURDATE();
{"type": "function", "function": {"name": "alerts_parameters", "description": "Fetches a list of weather alerts from the National Weather Service API, with optional filtering parameters.", "parameters": {"type": "object", "properties": {"start": {"type": "string", "description": "Start time in ISO8601 format.", "defaul...
DELETE FROM comments
WHERE task_id IN (SELECT id FROM tasks WHERE project_id = 2 AND status = 'cancelled');
Hmm, perhaps the user forgot to include them. In that case, I should ask the user to provide the GPS coordinates. But maybe I should check if they were included in an attachment or something. Since there's no such information here, I need to prompt them for the coordinates first. But wait, the system's instructions say...
# Code Examples - Python, JavaScript, REST API
First, I need to structure the optimization_criteria correctly. The product_type is "dairy cream", and the desired characteristics are two entries: one for high viscosity with importance 9, and another for optimal fat distribution with importance 10. The homogenizer_optimize_settings tool's parameters need to be passed...
def get_user_projects(user_id: int, status: Optional[str] = None) -> List[Project]:
"""Retrieve all projects for a user with optional status filter."""
query = """
SELECT p.* FROM projects p
JOIN project_members pm ON p.id = pm.project_id
WHERE pm.user_id = %s
"""
params = [user_id]
if status:
query += " AND p.status = %s"
params.append(status)
query += " ORDER BY p.updated_at DESC"
return db.execute(query, params).fetchall()
I should check if the function returns the optimized settings, which might include parameters like pressure, temperature, and cycle time. The assistant needs to call this function and then respond with the optimized settings. Let me make sure the function call is correctly structured.
</think>
async def create_task_with_validation(
project_id: int,
assignee_id: int,
title: str,
priority: Priority = Priority.MEDIUM
) -> Task:
"""Create a new task with validation."""
# Validate project exists and user is member
project = await get_project(project_id)
if not project:
raise ValueError(f"Project {project_id} not found")
member = await get_project_member(project_id, assignee_id)
if not member:
raise PermissionError(f"User {assignee_id} is not a member of project {project_id}")
task = Task(
project_id=project_id,
assignee_id=assignee_id,
title=title,
priority=priority,
status=TaskStatus.TODO
)
await db.insert(task)
return task
The get_movie_details function requires the movie title and release year. The title is "Inception" and the year is 2010. I need to format this into the correct JSON structure for the tool call. The function name is 'get_movie_details' and the parameters should be movie_title: "Inception", release_year: 2010.
# REST API Endpoints
To accomplish this, please use the `monitor_ec2_instances` and `monitor_rds_databases` functions. For EC2 monitoring, set the period to 60 seconds for a granular view of CPU and network metrics. For RDS monitoring, I prefer the same granularity of data. Aggregate this information to provide a comprehensive overview of ...
GET /api/v1/projects/:id/tasks
Query Parameters:
- status: todo|in_progress|in_review|done|blocked
- assignee_id: integer
- priority: low|medium|high|critical
- page: integer (default: 1)
- per_page: integer (default: 20, max: 100)
Response: 200 OK
{
"data": [...],