\n\n12345\n\n\n67890\n\n\n4\n\n\n\n\naction\n\n\nthis month\n\n\nrating\n",
"expected_call": true,
"n_calls": 1,
"calls": [
{
"name": "fetch_new_releases",
"arguments": {
"genre": "action",
"release_period": "this month",
"sort_by": "rating",
"limit": "5"
}
}
],
"scores": [
{
"parse": true,
"name_ok": true,
"schema_ok": true,
"expected_keys": [
"genre",
"limit",
"release_period",
"sort_by"
],
"given_keys": [
"genre",
"limit",
"release_period",
"sort_by"
]
}
]
},
{
"prompt": "I'd like to get personalized content suggestions tailored to my taste. I have a ",
"reply_first_160": "\n\n\n123456789\n\n\n[\"sci-fi\", \"comedy\"]\n\n\n\n[\"quiz\", \"poll\", \"game\"]\n\n\nTrue\n\n\n\n\n{\"start_date\": \"2023-03-01\", \"end_date\": \"2023-03-31\"}\n\n\n\n\n['cmp_123', 'cmp_456']\n\n\n['click_through_rate', 'conve",
"expected_call": true,
"n_calls": 1,
"calls": [
{
"name": "get_ad_performance_metrics",
"arguments": {
"campaign_ids": "['cmp_123', 'cmp_456']",
"metrics": "['click_through_rate', 'conversion_rate', 'return_on_ad_spend']",
"date_range": "{\"start_date\": \"2023-01-01\", \"end_date\": \"2023-03-31\"}"
}
}
],
"scores": [
{
"parse": true,
"name_ok": true,
"schema_ok": true,
"expected_keys": [
"campaign_ids",
"date_range",
"metrics"
],
"given_keys": [
"campaign_ids",
"date_range",
"metrics"
]
}
]
},
{
"prompt": "I recently encountered an issue with my home entertainment system where voice co",
"reply_first_160": "\n\n\nHES12345678\n\n\n[2023-04-01T10:15:30Z] ERROR: Voice re",
"expected_call": true,
"n_calls": 2,
"calls": [
{
"name": "diagnose_voice_command_issue",
"arguments": {
"system_id": "HES12345678",
"error_logs": "[2023-04-01T10:15:30Z] ERROR: Voice recognition failed to initiate.\n[2023-04-01T10:16:05Z] WARNING: Microphone input level low.\n[2023-04-01T10:17:10Z] ERROR: Streaming service 'Netflix' connection timed out."
}
},
{
"name": "troubleshoot_streaming_service",
"arguments": {
"service_name": "Netflix",
"system_id": "HES12345678",
"user_id": "User78910"
}
}
],
"scores": [
{
"parse": true,
"name_ok": true,
"schema_ok": true,
"expected_keys": [
"error_logs",
"system_id"
],
"given_keys": [
"error_logs",
"system_id"
]
},
{
"parse": true,
"name_ok": true,
"schema_ok": true,
"expected_keys": [
"service_name",
"system_id",
"user_id"
],
"given_keys": [
"service_name",
"system_id",
"user_id"
]
}
]
},
{
"prompt": "I would like to initiate an advertising campaign for our annual Summer Sale even",
"reply_first_160": "\n\n\nSummer Sale\n\n\n[\"Google Ads\", \"Facebook Ads\", \"Twitter Ads\"]",
"expected_call": true,
"n_calls": 1,
"calls": [
{
"name": "create_ad_campaign",
"arguments": {
"campaign_name": "Summer Sale",
"platforms": "[\"Google Ads\", \"Facebook Ads\", \"Twitter Ads\"]",
"budget": "10000",
"start_date": "2023-06-01",
"end_date": "2023-07-31",
"target_audience": "{\"location\": \"United States\", \"interests\": [\"hiking\", \"camping\", \"beach-related recreation\"], \"age_range\": [25, 40]}"
}
}
],
"scores": [
{
"parse": true,
"name_ok": true,
"schema_ok": true,
"expected_keys": [
"budget",
"campaign_name",
"end_date",
"platforms",
"start_date",
"target_audience"
],
"given_keys": [
"budget",
"campaign_name",
"end_date",
"platforms",
"start_date",
"target_audience"
]
}
]
},
{
"prompt": "I am planning an interactive virtual game night named \"FunTriviaNight\" and requi",
"reply_first_160": "\n\n\nFunTriviaNight\n\n\n10\n\n bool:`",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that checks if a string is a palindrome while ignoring case and non-alphanumeric characters:\n\n```python\ndef is_palindrome(s: str) -> bo"
},
{
"prompt": "Write a Python function `def merge_intervals(intervals: list",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that merges overlapping intervals:\n\n```python\ndef merge_intervals(intervals: list[list[int]]) -> list[list[int]]:\n \"\"\"\n Merge ove"
},
{
"prompt": "Write a Python function `def two_sum(nums: list[int], target",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that finds the indices of two numbers that sum to the target:\n\n```python\ndef two_sum(nums: list[int], target: int) -> list[int]:\n \"\""
},
{
"prompt": "Write a Python function `def flatten(nested: list) -> list:`",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that flattens arbitrarily nested lists using an iterative approach to avoid recursion limits:\n\n```python\ndef flatten(nested: list) -> l"
},
{
"prompt": "Write a Python function `def parse_csv_line(line: str) -> li",
"ast_ok": false,
"compile_ok": null,
"truncated": 0,
"reply_first_160": "```python\ndef parse_csv_line(line: str) -> list[str]:\n \"\"\"\n Parse a CSV line according to RFC 4180 specification.\n \n Handles:\n - Quoted fields (w"
},
{
"prompt": "Write a Python function `def lru_cache(k: int):` returning a",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "```python\nfrom collections import OrderedDict\nfrom functools import wraps\n\ndef lru_cache(k: int):\n \"\"\"\n Returns a decorator that implements LRU (Least Rec"
},
{
"prompt": "Write a Python function `def is_anagram(a: str, b: str) -> b",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that checks if two strings are anagrams of each other:\n\n```python\ndef is_anagram(a: str, b: str) -> bool:\n \"\"\"\n Check if two stri"
},
{
"prompt": "Write a Python function `def topological_order(graph: dict[s",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Looking at this problem, I need to implement topological sorting to find a valid ordering of nodes in a directed graph, or return None if there's a cycle.\n\nI'll"
},
{
"prompt": "Write a Python function `def tokenise(s: str) -> list[str]:`",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that tokenizes a simple expression language:\n\n```python\ndef tokenise(s: str) -> list[str]:\n \"\"\"\n Tokenize a simple expression lan"
},
{
"prompt": "Write a Python function `def slugify(text: str) -> str:` pro",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that creates URL-safe ASCII slugs from unicode text:\n\n```python\nimport re\nimport unicodedata\n\ndef slugify(text: str) -> str:\n \"\"\"\n "
},
{
"prompt": "Write a Python function `def read_jsonl(path: str) -> list[d",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that reads a JSONL file streaming one record at a time:\n\n```python\nimport json\nfrom typing import List, Dict\n\ndef read_jsonl(path: str)"
},
{
"prompt": "Write a Python function `def binary_search(arr: list[int], t",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that implements binary search:\n\n```python\ndef binary_search(arr: list[int], target: int) -> int:\n \"\"\"\n Performs binary search on "
},
{
"prompt": "Write a Python function `def unique_in_order(s: str) -> list",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that removes adjacent duplicate characters while preserving the order:\n\n```python\ndef unique_in_order(s: str) -> list[str]:\n \"\"\"\n "
},
{
"prompt": "Write a Python function `def safe_eval(expr: str) -> int:` e",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "```python\ndef safe_eval(expr: str) -> int:\n def parse_expression(tokens, index):\n # Parse addition and subtraction\n left, index = parse_term(to"
},
{
"prompt": "Write a Python function `def dedupe_preserve_order(items: li",
"ast_ok": true,
"compile_ok": true,
"truncated": 0,
"reply_first_160": "Here's a Python function that removes duplicates while preserving the original order:\n\n```python\ndef dedupe_preserve_order(items: list) -> list:\n \"\"\"\n Rem"
}
]
},
{
"section": "security_mcq",
"n_questions": 0,
"accuracy": 0.0,
"details": []
}
]
}