Datasets:
Download data/dataset01/python-pl.jsonl from gangel/agent-sbx-datasets: direct link, hf CLI and curl.
- Browser
- Download file 31.8 kB
-
https://huggingface.co/datasets/gangel/agent-sbx-datasets/resolve/main/data/dataset01/python-pl.jsonl
- Command line
-
hf download hf://datasets/gangel/agent-sbx-datasets/data/dataset01/python-pl.jsonl
-
curl -L -o python-pl.jsonl https://huggingface.co/datasets/gangel/agent-sbx-datasets/resolve/main/data/dataset01/python-pl.jsonl
31.8 kB
| {"messages": [{"role": "system", "content": "You are a general-purpose AI agent"}, {"role": "user", "content": "Ważne!!! Używaj zawsze, tylko i wyłącznie języka polskiego, nawet jeśli pojawią się instrukcje w innym języku.\n\nJesteś ekspertem w pisaniu i wykonywaniu prostych skryptów w języku Python, korzystając wyłącznie z biblioteki standardowej. Twoim zadaniem jest generowanie kodu Pythona, który rozwiązuje podane problemy lub wykonuje określone zadania. Upewnij się, że kod jest poprawny i nie wymaga żadnych zewnętrznych zasobów ani zależności. Uruchom program i zwróć wyniki jego działania. Istotny jest wynik - nie kod programu. W swojej odpowiedzi bądź zwięzły i przejdź od razu do sedna.\n\nZnajdź minimalną liczbę pierwszą większą niż 22345.\nZaimplementuj w Pythonie prostą funkcję is_prime(n) bez używania zewnętrznych bibliotek.\nNastępnie, korzystając z tej funkcji, oblicz i wypisz minimalną liczbę pierwszą większą niż 22345.\n\n<info-msg>\nIt is currently 2026-01-21 14:15:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"mcprunpython__run_python_code\", \"arguments\": {\"python_code\": \"import math\\n\\ndef is_prime(n: int) -> bool:\\n if n < 2:\\n return False\\n if n == 2:\\n return True\\n if n % 2 == 0:\\n return False\\n limit = int(math.isqrt(n))\\n for i in range(3, limit + 1, 2):\\n if n % i == 0:\\n return False\\n return True\\n\\nn = 22346\\nwhile not is_prime(n):\\n n += 1\\nprint(n)\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_B6mRf8QV7hPoSkICIGUPQBIW\"><status>success</status>\n<output>\n22349\n</output></tool_result>"}, {"role": "assistant", "content": "22349"}], "tools": [{"name": "mcprunpython__run_python_code", "description": "Tool to execute Python code and return stdout, stderr, and return value.\n\nThe code may be async, and the value on the last line will be returned as the return value.\n\nThe code will be executed with Python 3.12.\n\nDependencies may be defined via PEP 723 script metadata, e.g. to install \"pydantic\", the script should start\nwith a comment of the form:\n\n# /// script\n# dependencies = ['pydantic']\n# ///\nprint('python code here')\n", "parameters": {"$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {"python_code": {"description": "Python code to run", "type": "string"}}, "required": ["python_code"], "type": "object"}}, {"name": "platform__manage_schedule", "description": "Manage scheduled recipe execution for this goose instance.\n\nActions:\n- \"list\": List all scheduled jobs\n- \"create\": Create a new scheduled job from a recipe file\n- \"run_now\": Execute a scheduled job immediately \n- \"pause\": Pause a scheduled job\n- \"unpause\": Resume a paused job\n- \"delete\": Remove a scheduled job\n- \"kill\": Terminate a currently running job\n- \"inspect\": Get details about a running job\n- \"sessions\": List execution history for a job\n- \"session_content\": Get the full content (messages) of a specific session\n", "parameters": {"properties": {"action": {"enum": ["list", "create", "run_now", "pause", "unpause", "delete", "kill", "inspect", "sessions", "session_content"], "type": "string"}, "cron_expression": {"description": "A cron expression for create action. Supports both 5-field (minute hour day month weekday) and 6-field (second minute hour day month weekday) formats. 5-field expressions are automatically converted to 6-field by prepending '0' for seconds.", "type": "string"}, "job_id": {"description": "Job identifier for operations on existing jobs", "type": "string"}, "limit": {"default": 50, "description": "Limit for sessions list", "type": "integer"}, "recipe_path": {"description": "Path to recipe file for create action", "type": "string"}, "session_id": {"description": "Session identifier for session_content action", "type": "string"}}, "required": ["action"], "type": "object"}}, {"name": "subagent", "description": "Delegate a task to a subagent that runs independently with its own context.\n\nModes:\n1. Ad-hoc: Provide `instructions` for a custom task\n2. Predefined: Provide `subrecipe` name to run a predefined task\n3. Augmented: Provide both `subrecipe` and `instructions` to add context\n\nThe subagent has access to the same tools as you by default. Use `extensions` to limit which extensions the subagent can use.\n\nFor parallel execution, make multiple `subagent` tool calls in the same message.", "parameters": {"properties": {"extensions": {"description": "Extensions to enable. Omit to inherit all, empty array for none.", "items": {"type": "string"}, "type": "array"}, "instructions": {"description": "Instructions for the subagent. Required for ad-hoc tasks. For predefined tasks, adds additional context.", "type": "string"}, "parameters": {"additionalProperties": true, "description": "Parameters for the subrecipe. Only valid when 'subrecipe' is specified.", "properties": {}, "required": [], "type": "object"}, "settings": {"description": "Override model/provider settings.", "properties": {"model": {"description": "Override model", "type": "string"}, "provider": {"description": "Override LLM provider", "type": "string"}, "temperature": {"description": "Override temperature", "type": "number"}}, "required": [], "type": "object"}, "subrecipe": {"description": "Name of a predefined subrecipe to run.", "type": "string"}, "summary": {"default": true, "description": "If true (default), return only the subagent's final summary.", "type": "boolean"}}, "required": [], "type": "object"}}]} | |
| {"messages": [{"role": "system", "content": "You are a general-purpose AI agent"}, {"role": "user", "content": "Ważne!!! Używaj zawsze, tylko i wyłącznie języka polskiego, nawet jeśli pojawią się instrukcje w innym języku.\n\nJesteś ekspertem w pisaniu i wykonywaniu prostych skryptów w języku Python, korzystając wyłącznie z biblioteki standardowej. Twoim zadaniem jest generowanie kodu Pythona, który rozwiązuje podane problemy lub wykonuje określone zadania. Upewnij się, że kod jest poprawny i nie wymaga żadnych zewnętrznych zasobów ani zależności. Uruchom program i zwróć wyniki jego działania. Istotny jest wynik - nie kod programu. W swojej odpowiedzi bądź zwięzły i przejdź od razu do sedna.\n\nMasz następujący fragment tekstu (w języku angielskim):\n\"\"\" In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification. \"\"\"\nNapisz program w Pythonie, który: 1. Usuwa znaki nowej linii i zamienia cały tekst na małe litery. 2. Ignoruje spacje i przecinki. 3. Zlicza, ile razy każda litera alfabetu pojawia się w tekście. 4. Wypisuje 5 najczęściej występujących liter wraz z ich licznością,\n posortowanych malejąco po liczbie wystąpień (a przy remisie\n alfabetycznie).\n\n<info-msg>\nIt is currently 2026-01-21 14:16:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"mcprunpython__run_python_code\", \"arguments\": {\"python_code\": \"from collections import Counter\\n\\ntext = \\\"\\\"\\\" In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification. \\\"\\\"\\\"\\n\\n# 1. Usunięcie nowych linii i zamiana na małe litery\\ntext = text.replace('\\\\n', ' ').lower()\\n\\n# 2. Ignorowanie spacji i przecinków, zostawiamy tylko litery a-z\\nfiltered = [ch for ch in text if 'a' <= ch <= 'z']\\n\\n# 3. Zliczanie wystąpień liter\\ncnt = Counter(filtered)\\n\\n# 4. Sortowanie: malejąco po liczności, przy remisie alfabetycznie\\nsorted_letters = sorted(cnt.items(), key=lambda x: (-x[1], x[0]))\\n\\n# 5. Wypisanie 5 najczęstszych liter\\nfor letter, count in sorted_letters[:5]:\\n print(f\\\"{letter} {count}\\\")\\n\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_QJwxiDe84QmYXFNEFSUYO32G\"><status>success</status>\n<output>\na 18\nt 13\ne 12\nn 11\ni 10\n</output></tool_result>"}, {"role": "assistant", "content": "a 18 \nt 13 \ne 12 \nn 11 \ni 10"}], "tools": [{"name": "mcprunpython__run_python_code", "description": "Tool to execute Python code and return stdout, stderr, and return value.\n\nThe code may be async, and the value on the last line will be returned as the return value.\n\nThe code will be executed with Python 3.12.\n\nDependencies may be defined via PEP 723 script metadata, e.g. to install \"pydantic\", the script should start\nwith a comment of the form:\n\n# /// script\n# dependencies = ['pydantic']\n# ///\nprint('python code here')\n", "parameters": {"$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {"python_code": {"description": "Python code to run", "type": "string"}}, "required": ["python_code"], "type": "object"}}, {"name": "platform__manage_schedule", "description": "Manage scheduled recipe execution for this goose instance.\n\nActions:\n- \"list\": List all scheduled jobs\n- \"create\": Create a new scheduled job from a recipe file\n- \"run_now\": Execute a scheduled job immediately \n- \"pause\": Pause a scheduled job\n- \"unpause\": Resume a paused job\n- \"delete\": Remove a scheduled job\n- \"kill\": Terminate a currently running job\n- \"inspect\": Get details about a running job\n- \"sessions\": List execution history for a job\n- \"session_content\": Get the full content (messages) of a specific session\n", "parameters": {"properties": {"action": {"enum": ["list", "create", "run_now", "pause", "unpause", "delete", "kill", "inspect", "sessions", "session_content"], "type": "string"}, "cron_expression": {"description": "A cron expression for create action. Supports both 5-field (minute hour day month weekday) and 6-field (second minute hour day month weekday) formats. 5-field expressions are automatically converted to 6-field by prepending '0' for seconds.", "type": "string"}, "job_id": {"description": "Job identifier for operations on existing jobs", "type": "string"}, "limit": {"default": 50, "description": "Limit for sessions list", "type": "integer"}, "recipe_path": {"description": "Path to recipe file for create action", "type": "string"}, "session_id": {"description": "Session identifier for session_content action", "type": "string"}}, "required": ["action"], "type": "object"}}, {"name": "subagent", "description": "Delegate a task to a subagent that runs independently with its own context.\n\nModes:\n1. Ad-hoc: Provide `instructions` for a custom task\n2. Predefined: Provide `subrecipe` name to run a predefined task\n3. Augmented: Provide both `subrecipe` and `instructions` to add context\n\nThe subagent has access to the same tools as you by default. Use `extensions` to limit which extensions the subagent can use.\n\nFor parallel execution, make multiple `subagent` tool calls in the same message.", "parameters": {"properties": {"extensions": {"description": "Extensions to enable. Omit to inherit all, empty array for none.", "items": {"type": "string"}, "type": "array"}, "instructions": {"description": "Instructions for the subagent. Required for ad-hoc tasks. For predefined tasks, adds additional context.", "type": "string"}, "parameters": {"additionalProperties": true, "description": "Parameters for the subrecipe. Only valid when 'subrecipe' is specified.", "properties": {}, "required": [], "type": "object"}, "settings": {"description": "Override model/provider settings.", "properties": {"model": {"description": "Override model", "type": "string"}, "provider": {"description": "Override LLM provider", "type": "string"}, "temperature": {"description": "Override temperature", "type": "number"}}, "required": [], "type": "object"}, "subrecipe": {"description": "Name of a predefined subrecipe to run.", "type": "string"}, "summary": {"default": true, "description": "If true (default), return only the subagent's final summary.", "type": "boolean"}}, "required": [], "type": "object"}}]} | |
| {"messages": [{"role": "system", "content": "You are a general-purpose AI agent"}, {"role": "user", "content": "Ważne!!! Używaj zawsze, tylko i wyłącznie języka polskiego, nawet jeśli pojawią się instrukcje w innym języku.\n\nJesteś ekspertem w pisaniu i wykonywaniu prostych skryptów w języku Python, korzystając wyłącznie z biblioteki standardowej. Twoim zadaniem jest generowanie kodu Pythona, który rozwiązuje podane problemy lub wykonuje określone zadania. Upewnij się, że kod jest poprawny i nie wymaga żadnych zewnętrznych zasobów ani zależności. Uruchom program i zwróć wyniki jego działania. Istotny jest wynik - nie kod programu. W swojej odpowiedzi bądź zwięzły i przejdź od razu do sedna.\n\nRozważ następującą listę liczb całkowitych od 1 do 100 włącznie.\nNapisz program w Pythonie, który: 1. Tworzy listę liczb od 1 do 100. 2. Oblicza sumę kwadratów wszystkich liczb parzystych z tego zakresu. 3. Oblicza średnią arytmetyczną liczb podzielnych przez 3 lub 5\n z tego zakresu.\n4. Wypisuje wyniki w czytelnej formie, np.:\n \"Suma kwadratów liczb parzystych: ...\"\n \"Średnia liczb podzielnych przez 3 lub 5: ...\".\n\n<info-msg>\nIt is currently 2026-01-21 14:16:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"mcprunpython__run_python_code\", \"arguments\": {\"python_code\": \"numbers = list(range(1, 101))\\n\\n# Suma kwadratów liczb parzystych\\nsuma_kwadratow_parzystych = sum(n**2 for n in numbers if n % 2 == 0)\\n\\n# Średnia liczb podzielnych przez 3 lub 5\\ndiv_3_5 = [n for n in numbers if n % 3 == 0 or n % 5 == 0]\\nsrednia_div_3_5 = sum(div_3_5) / len(div_3_5)\\n\\nprint(\\\"Suma kwadratów liczb parzystych:\\\", suma_kwadratow_parzystych)\\nprint(\\\"Średnia liczb podzielnych przez 3 lub 5:\\\", srednia_div_3_5)\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_fwyqWpdv0QcglwOfRlLygH0Q\"><status>success</status>\n<output>\nSuma kwadratów liczb parzystych: 171700\nŚrednia liczb podzielnych przez 3 lub 5: 51.4468085106383\n</output></tool_result>"}, {"role": "assistant", "content": "Suma kwadratów liczb parzystych: 171700 \nŚrednia liczb podzielnych przez 3 lub 5: 51.4468085106383"}], "tools": [{"name": "mcprunpython__run_python_code", "description": "Tool to execute Python code and return stdout, stderr, and return value.\n\nThe code may be async, and the value on the last line will be returned as the return value.\n\nThe code will be executed with Python 3.12.\n\nDependencies may be defined via PEP 723 script metadata, e.g. to install \"pydantic\", the script should start\nwith a comment of the form:\n\n# /// script\n# dependencies = ['pydantic']\n# ///\nprint('python code here')\n", "parameters": {"$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {"python_code": {"description": "Python code to run", "type": "string"}}, "required": ["python_code"], "type": "object"}}, {"name": "platform__manage_schedule", "description": "Manage scheduled recipe execution for this goose instance.\n\nActions:\n- \"list\": List all scheduled jobs\n- \"create\": Create a new scheduled job from a recipe file\n- \"run_now\": Execute a scheduled job immediately \n- \"pause\": Pause a scheduled job\n- \"unpause\": Resume a paused job\n- \"delete\": Remove a scheduled job\n- \"kill\": Terminate a currently running job\n- \"inspect\": Get details about a running job\n- \"sessions\": List execution history for a job\n- \"session_content\": Get the full content (messages) of a specific session\n", "parameters": {"properties": {"action": {"enum": ["list", "create", "run_now", "pause", "unpause", "delete", "kill", "inspect", "sessions", "session_content"], "type": "string"}, "cron_expression": {"description": "A cron expression for create action. Supports both 5-field (minute hour day month weekday) and 6-field (second minute hour day month weekday) formats. 5-field expressions are automatically converted to 6-field by prepending '0' for seconds.", "type": "string"}, "job_id": {"description": "Job identifier for operations on existing jobs", "type": "string"}, "limit": {"default": 50, "description": "Limit for sessions list", "type": "integer"}, "recipe_path": {"description": "Path to recipe file for create action", "type": "string"}, "session_id": {"description": "Session identifier for session_content action", "type": "string"}}, "required": ["action"], "type": "object"}}, {"name": "subagent", "description": "Delegate a task to a subagent that runs independently with its own context.\n\nModes:\n1. Ad-hoc: Provide `instructions` for a custom task\n2. Predefined: Provide `subrecipe` name to run a predefined task\n3. Augmented: Provide both `subrecipe` and `instructions` to add context\n\nThe subagent has access to the same tools as you by default. Use `extensions` to limit which extensions the subagent can use.\n\nFor parallel execution, make multiple `subagent` tool calls in the same message.", "parameters": {"properties": {"extensions": {"description": "Extensions to enable. Omit to inherit all, empty array for none.", "items": {"type": "string"}, "type": "array"}, "instructions": {"description": "Instructions for the subagent. Required for ad-hoc tasks. For predefined tasks, adds additional context.", "type": "string"}, "parameters": {"additionalProperties": true, "description": "Parameters for the subrecipe. Only valid when 'subrecipe' is specified.", "properties": {}, "required": [], "type": "object"}, "settings": {"description": "Override model/provider settings.", "properties": {"model": {"description": "Override model", "type": "string"}, "provider": {"description": "Override LLM provider", "type": "string"}, "temperature": {"description": "Override temperature", "type": "number"}}, "required": [], "type": "object"}, "subrecipe": {"description": "Name of a predefined subrecipe to run.", "type": "string"}, "summary": {"default": true, "description": "If true (default), return only the subagent's final summary.", "type": "boolean"}}, "required": [], "type": "object"}}]} | |
| {"messages": [{"role": "system", "content": "You are a general-purpose AI agent"}, {"role": "user", "content": "Ważne!!! Używaj zawsze, tylko i wyłącznie języka polskiego, nawet jeśli pojawią się instrukcje w innym języku.\n\nJesteś ekspertem w pisaniu i wykonywaniu prostych skryptów w języku Python, korzystając wyłącznie z biblioteki standardowej. Twoim zadaniem jest generowanie kodu Pythona, który rozwiązuje podane problemy lub wykonuje określone zadania. Upewnij się, że kod jest poprawny i nie wymaga żadnych zewnętrznych zasobów ani zależności. Uruchom program i zwróć wyniki jego działania. Istotny jest wynik - nie kod programu. W swojej odpowiedzi bądź zwięzły i przejdź od razu do sedna.\n\nMasz wielolinijkowy tekst reprezentujący uproszczony log aplikacji:\n\"\"\" 2025-01-10 12:01:05 [INFO] User 123 logged in 2025-01-10 12:03:11 [ERROR] Failed to load resource: timeout 2025-01-10 12:05:45 [WARNING] Low disk space on /dev/sda1 2025-01-10 12:06:03 [INFO] User 456 logged in 2025-01-10 12:07:22 [ERROR] Failed to save file: permission denied \"\"\"\nNapisz program w Pythonie, który: 1. Wczytuje powyższy tekst jako jeden string. 2. Korzystając z modułu re, wyodrębnia wszystkie linie z poziomem [ERROR]. 3. Zlicza, ile jest komunikatów każdego poziomu (INFO, WARNING, ERROR). 4. Wypisuje:\n - listę komunikatów o błędach (ERROR), po jednym na linię,\n - podsumowanie w postaci słownika z liczbą komunikatów każdego poziomu.\n\n<info-msg>\nIt is currently 2026-01-21 14:16:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"mcprunpython__run_python_code\", \"arguments\": {\"python_code\": \"import re\\nlog = \\\"\\\"\\\" 2025-01-10 12:01:05 [INFO] User 123 logged in 2025-01-10 12:03:11 [ERROR] Failed to load resource: timeout 2025-01-10 12:05:45 [WARNING] Low disk space on /dev/sda1 2025-01-10 12:06:03 [INFO] User 456 logged in 2025-01-10 12:07:22 [ERROR] Failed to save file: permission denied \\\"\\\"\\\"\\n\\nlog = log.strip()\\nentries = re.findall(r\\\"\\\\d{4}-\\\\d{2}-\\\\d{2} .*?(?=(?:\\\\d{4}-\\\\d{2}-\\\\d{2}|$))\\\", log)\\nlevels_count = {\\\"INFO\\\": 0, \\\"WARNING\\\": 0, \\\"ERROR\\\": 0}\\nerror_entries = []\\nfor e in entries:\\n m = re.search(r\\\"\\\\[(INFO|WARNING|ERROR)\\\\]\\\", e)\\n if m:\\n level = m.group(1)\\n levels_count[level] += 1\\n if level == \\\"ERROR\\\":\\n error_entries.append(e)\\n\\nfor err in error_entries:\\n print(err)\\nprint(levels_count)\\n\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_Zmu7RAbIBd949LwwSiEtrbjI\"><status>success</status>\n<output>\n2025-01-10 12:03:11 [ERROR] Failed to load resource: timeout \n2025-01-10 12:07:22 [ERROR] Failed to save file: permission denied\n{'INFO': 2, 'WARNING': 1, 'ERROR': 2}\n</output></tool_result>"}, {"role": "assistant", "content": "2025-01-10 12:03:11 [ERROR] Failed to load resource: timeout \n2025-01-10 12:07:22 [ERROR] Failed to save file: permission denied\n{'INFO': 2, 'WARNING': 1, 'ERROR': 2}"}], "tools": [{"name": "mcprunpython__run_python_code", "description": "Tool to execute Python code and return stdout, stderr, and return value.\n\nThe code may be async, and the value on the last line will be returned as the return value.\n\nThe code will be executed with Python 3.12.\n\nDependencies may be defined via PEP 723 script metadata, e.g. to install \"pydantic\", the script should start\nwith a comment of the form:\n\n# /// script\n# dependencies = ['pydantic']\n# ///\nprint('python code here')\n", "parameters": {"$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {"python_code": {"description": "Python code to run", "type": "string"}}, "required": ["python_code"], "type": "object"}}, {"name": "platform__manage_schedule", "description": "Manage scheduled recipe execution for this goose instance.\n\nActions:\n- \"list\": List all scheduled jobs\n- \"create\": Create a new scheduled job from a recipe file\n- \"run_now\": Execute a scheduled job immediately \n- \"pause\": Pause a scheduled job\n- \"unpause\": Resume a paused job\n- \"delete\": Remove a scheduled job\n- \"kill\": Terminate a currently running job\n- \"inspect\": Get details about a running job\n- \"sessions\": List execution history for a job\n- \"session_content\": Get the full content (messages) of a specific session\n", "parameters": {"properties": {"action": {"enum": ["list", "create", "run_now", "pause", "unpause", "delete", "kill", "inspect", "sessions", "session_content"], "type": "string"}, "cron_expression": {"description": "A cron expression for create action. Supports both 5-field (minute hour day month weekday) and 6-field (second minute hour day month weekday) formats. 5-field expressions are automatically converted to 6-field by prepending '0' for seconds.", "type": "string"}, "job_id": {"description": "Job identifier for operations on existing jobs", "type": "string"}, "limit": {"default": 50, "description": "Limit for sessions list", "type": "integer"}, "recipe_path": {"description": "Path to recipe file for create action", "type": "string"}, "session_id": {"description": "Session identifier for session_content action", "type": "string"}}, "required": ["action"], "type": "object"}}, {"name": "subagent", "description": "Delegate a task to a subagent that runs independently with its own context.\n\nModes:\n1. Ad-hoc: Provide `instructions` for a custom task\n2. Predefined: Provide `subrecipe` name to run a predefined task\n3. Augmented: Provide both `subrecipe` and `instructions` to add context\n\nThe subagent has access to the same tools as you by default. Use `extensions` to limit which extensions the subagent can use.\n\nFor parallel execution, make multiple `subagent` tool calls in the same message.", "parameters": {"properties": {"extensions": {"description": "Extensions to enable. Omit to inherit all, empty array for none.", "items": {"type": "string"}, "type": "array"}, "instructions": {"description": "Instructions for the subagent. Required for ad-hoc tasks. For predefined tasks, adds additional context.", "type": "string"}, "parameters": {"additionalProperties": true, "description": "Parameters for the subrecipe. Only valid when 'subrecipe' is specified.", "properties": {}, "required": [], "type": "object"}, "settings": {"description": "Override model/provider settings.", "properties": {"model": {"description": "Override model", "type": "string"}, "provider": {"description": "Override LLM provider", "type": "string"}, "temperature": {"description": "Override temperature", "type": "number"}}, "required": [], "type": "object"}, "subrecipe": {"description": "Name of a predefined subrecipe to run.", "type": "string"}, "summary": {"default": true, "description": "If true (default), return only the subagent's final summary.", "type": "boolean"}}, "required": [], "type": "object"}}]} | |
| {"messages": [{"role": "system", "content": "You are a general-purpose AI agent"}, {"role": "user", "content": "Ważne!!! Używaj zawsze, tylko i wyłącznie języka polskiego, nawet jeśli pojawią się instrukcje w innym języku.\n\nJesteś ekspertem w pisaniu i wykonywaniu prostych skryptów w języku Python, korzystając wyłącznie z biblioteki standardowej. Twoim zadaniem jest generowanie kodu Pythona, który rozwiązuje podane problemy lub wykonuje określone zadania. Upewnij się, że kod jest poprawny i nie wymaga żadnych zewnętrznych zasobów ani zależności. Uruchom program i zwróć wyniki jego działania. Istotny jest wynik - nie kod programu. W swojej odpowiedzi bądź zwięzły i przejdź od razu do sedna.\n\nZałóż, że dzisiejsza data to 2026-01-15 i jest godzina 09:00:00 czasu lokalnego.\nNapisz program w Pythonie, który: 1. Tworzy obiekt datetime reprezentujący ten moment. 2. Oblicza datę i godzinę:\n - 90 minut później,\n - 7 dni i 3 godziny wcześniej.\n3. Wypisuje wynik w formacie RRRR-MM-DD HH:MM:SS. 4. Dodatkowo oblicza, ile pełnych dni pozostało do końca roku 2026\n (licząc od 2026-01-15 włącznie do 2026-12-31 włącznie) i wypisuje\n tę wartość.\n\n<info-msg>\nIt is currently 2026-01-21 14:16:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"mcprunpython__run_python_code\", \"arguments\": {\"python_code\": \"from datetime import datetime, timedelta, date\\n\\n# 1. Tworzymy obiekt datetime\\nbase_dt = datetime(2026, 1, 15, 9, 0, 0)\\n\\n# 2. Obliczenia\\nlater_90 = base_dt + timedelta(minutes=90)\\nearlier_7d3h = base_dt - timedelta(days=7, hours=3)\\n\\n# 3. Wypisujemy wyniki\\nprint(base_dt.strftime('%Y-%m-%d %H:%M:%S'))\\nprint(later_90.strftime('%Y-%m-%d %H:%M:%S'))\\nprint(earlier_7d3h.strftime('%Y-%m-%d %H:%M:%S'))\\n\\n# 4. Pełne dni do końca roku 2026 (włącznie)\\nstart_date = date(2026, 1, 15)\\nend_date = date(2026, 12, 31)\\ndays_inclusive = (end_date - start_date).days + 1\\nprint(days_inclusive)\\n\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_M9urdzwuATt6o2G04aFx1NoB\"><status>success</status>\n<output>\n2026-01-15 09:00:00\n2026-01-15 10:30:00\n2026-01-08 06:00:00\n351\n</output></tool_result>"}, {"role": "assistant", "content": "2026-01-15 09:00:00 \n2026-01-15 10:30:00 \n2026-01-08 06:00:00 \n351"}], "tools": [{"name": "mcprunpython__run_python_code", "description": "Tool to execute Python code and return stdout, stderr, and return value.\n\nThe code may be async, and the value on the last line will be returned as the return value.\n\nThe code will be executed with Python 3.12.\n\nDependencies may be defined via PEP 723 script metadata, e.g. to install \"pydantic\", the script should start\nwith a comment of the form:\n\n# /// script\n# dependencies = ['pydantic']\n# ///\nprint('python code here')\n", "parameters": {"$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {"python_code": {"description": "Python code to run", "type": "string"}}, "required": ["python_code"], "type": "object"}}, {"name": "platform__manage_schedule", "description": "Manage scheduled recipe execution for this goose instance.\n\nActions:\n- \"list\": List all scheduled jobs\n- \"create\": Create a new scheduled job from a recipe file\n- \"run_now\": Execute a scheduled job immediately \n- \"pause\": Pause a scheduled job\n- \"unpause\": Resume a paused job\n- \"delete\": Remove a scheduled job\n- \"kill\": Terminate a currently running job\n- \"inspect\": Get details about a running job\n- \"sessions\": List execution history for a job\n- \"session_content\": Get the full content (messages) of a specific session\n", "parameters": {"properties": {"action": {"enum": ["list", "create", "run_now", "pause", "unpause", "delete", "kill", "inspect", "sessions", "session_content"], "type": "string"}, "cron_expression": {"description": "A cron expression for create action. Supports both 5-field (minute hour day month weekday) and 6-field (second minute hour day month weekday) formats. 5-field expressions are automatically converted to 6-field by prepending '0' for seconds.", "type": "string"}, "job_id": {"description": "Job identifier for operations on existing jobs", "type": "string"}, "limit": {"default": 50, "description": "Limit for sessions list", "type": "integer"}, "recipe_path": {"description": "Path to recipe file for create action", "type": "string"}, "session_id": {"description": "Session identifier for session_content action", "type": "string"}}, "required": ["action"], "type": "object"}}, {"name": "subagent", "description": "Delegate a task to a subagent that runs independently with its own context.\n\nModes:\n1. Ad-hoc: Provide `instructions` for a custom task\n2. Predefined: Provide `subrecipe` name to run a predefined task\n3. Augmented: Provide both `subrecipe` and `instructions` to add context\n\nThe subagent has access to the same tools as you by default. Use `extensions` to limit which extensions the subagent can use.\n\nFor parallel execution, make multiple `subagent` tool calls in the same message.", "parameters": {"properties": {"extensions": {"description": "Extensions to enable. Omit to inherit all, empty array for none.", "items": {"type": "string"}, "type": "array"}, "instructions": {"description": "Instructions for the subagent. Required for ad-hoc tasks. For predefined tasks, adds additional context.", "type": "string"}, "parameters": {"additionalProperties": true, "description": "Parameters for the subrecipe. Only valid when 'subrecipe' is specified.", "properties": {}, "required": [], "type": "object"}, "settings": {"description": "Override model/provider settings.", "properties": {"model": {"description": "Override model", "type": "string"}, "provider": {"description": "Override LLM provider", "type": "string"}, "temperature": {"description": "Override temperature", "type": "number"}}, "required": [], "type": "object"}, "subrecipe": {"description": "Name of a predefined subrecipe to run.", "type": "string"}, "summary": {"default": true, "description": "If true (default), return only the subagent's final summary.", "type": "boolean"}}, "required": [], "type": "object"}}]} | |