\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": 2,
+ "calls": [
+ {
+ "name": "fetch_new_releases",
+ "arguments": {
+ "genre": "action",
+ "release_period": "this month",
+ "sort_by": "rating",
+ "limit": "5"
+ }
+ },
+ {
+ "name": "stream_movie",
+ "arguments": {
+ "movie_title": "Explosive Skies"
+ }
+ }
+ ],
+ "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"
+ ]
+ },
+ {
+ "parse": true,
+ "name_ok": true,
+ "schema_ok": true,
+ "expected_keys": [
+ "movie_title"
+ ],
+ "given_keys": [
+ "movie_title"
+ ]
+ }
+ ]
+ },
+ {
+ "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": 2,
+ "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]}"
+ }
+ },
+ {
+ "name": "fetch_campaign_performance",
+ "arguments": {
+ "campaign_id": "SummerSaleCampaignID",
+ "metrics": "[\"impressions\", \"clicks\", \"conversions\", \"cost_per_conversion\"]"
+ }
+ }
+ ],
+ "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"
+ ]
+ },
+ {
+ "parse": true,
+ "name_ok": true,
+ "schema_ok": true,
+ "expected_keys": [
+ "campaign_id",
+ "metrics"
+ ],
+ "given_keys": [
+ "campaign_id",
+ "metrics"
+ ]
+ }
+ ]
+ },
+ {
+ "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": "```python\ndef is_palindrome(s: str) -> bool:\n # Convert to lowercase and keep only alphanumeric characters\n cleaned = ''.join(char.lower() for char in s i"
+ },
+ {
+ "prompt": "Write a Python function `def merge_intervals(intervals: list",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\ndef merge_intervals(intervals: list[list[int]]) -> list[list[int]]:\n if not intervals:\n return []\n \n # Sort the intervals based on the"
+ },
+ {
+ "prompt": "Write a Python function `def two_sum(nums: list[int], target",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\ndef two_sum(nums: list[int], target: int) -> list[int]:\n seen = {}\n for i, num in enumerate(nums):\n complement = target - num\n if "
+ },
+ {
+ "prompt": "Write a Python function `def flatten(nested: list) -> list:`",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\ndef flatten(nested: list) -> list:\n \"\"\"\n Flattens an arbitrarily nested list structure into a single-level list.\n \n This implementation av"
+ },
+ {
+ "prompt": "Write a Python function `def parse_csv_line(line: str) -> li",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\nimport re\n\ndef parse_csv_line(line: str) -> list[str]:\n \"\"\"\n Parses a CSV line according to RFC 4180, handling quoted fields and escaped quotes."
+ },
+ {
+ "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\n\ndef lru_cache(k: int):\n def decorator(func):\n cache = OrderedDict()\n \n def wrapper(*args,"
+ },
+ {
+ "prompt": "Write a Python function `def is_anagram(a: str, b: str) -> b",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\nimport string\n\ndef is_anagram(a: str, b: str) -> bool:\n # Remove punctuation and spaces, convert to lowercase\n clean_a = ''.join(char.lower() fo"
+ },
+ {
+ "prompt": "Write a Python function `def topological_order(graph: dict[s",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\nfrom collections import deque\n\ndef topological_order(graph):\n in_degree = {node: 0 for node in graph}\n for node in graph:\n for neighbor i"
+ },
+ {
+ "prompt": "Write a Python function `def tokenise(s: str) -> list[str]:`",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\nimport re\n\ndef tokenise(s: str) -> list[str]:\n # Remove all whitespace from the string\n s = re.sub(r'\\s+', '', s)\n \n # Define a regular ex"
+ },
+ {
+ "prompt": "Write a Python function `def slugify(text: str) -> str:` pro",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\nimport re\nimport unicodedata\n\ndef slugify(text: str) -> str:\n # Normalize the text to NFKD form (decomposed form)\n normalized = unicodedata.norm"
+ },
+ {
+ "prompt": "Write a Python function `def read_jsonl(path: str) -> list[d",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\nimport json\n\ndef read_jsonl(path: str) -> list[dict]:\n with open(path, 'r') as f:\n for line in f:\n yield json.loads(line)\n```\nThi"
+ },
+ {
+ "prompt": "Write a Python function `def binary_search(arr: list[int], t",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\ndef binary_search(arr: list[int], target: int) -> int:\n left, right = 0, len(arr) - 1\n\n while left <= right:\n mid = (left + right) // 2\n "
+ },
+ {
+ "prompt": "Write a Python function `def unique_in_order(s: str) -> list",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\ndef unique_in_order(s: str) -> list[str]:\n if not s:\n return []\n result = [s[0]]\n for i in range(1, len(s)):\n if s[i] != s[i-1]"
+ },
+ {
+ "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 tokenize(s):\n tokens = []\n i = 0\n while i < len(s):\n if s[i].isdigit():\n "
+ },
+ {
+ "prompt": "Write a Python function `def dedupe_preserve_order(items: li",
+ "ast_ok": true,
+ "compile_ok": true,
+ "truncated": 0,
+ "reply_first_160": "```python\ndef dedupe_preserve_order(items: list) -> list:\n seen = set()\n result = []\n for item in items:\n if item not in seen:\n seen."
+ }
+ ]
+ },
+ {
+ "section": "security_mcq",
+ "n_questions": 0,
+ "accuracy": 0.0,
+ "details": []
+ }
+ ]
+}
\ No newline at end of file