Datasets:
Download data/dataset01/postgres-pl.jsonl from gangel/agent-sbx-datasets: direct link, hf CLI and curl.
- Browser
- Download file 112 kB
-
https://huggingface.co/datasets/gangel/agent-sbx-datasets/resolve/main/data/dataset01/postgres-pl.jsonl
- Command line
-
hf download hf://datasets/gangel/agent-sbx-datasets/data/dataset01/postgres-pl.jsonl
-
curl -L -o postgres-pl.jsonl https://huggingface.co/datasets/gangel/agent-sbx-datasets/resolve/main/data/dataset01/postgres-pl.jsonl
112 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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nWypisz 10 firm o najwyższych przychodach (revenues) z tabeli top1000revenue. Zwróć rank, name i revenues, posortowane malejąco po przychodach.\n\n<info-msg>\nIt is currently 2026-01-21 14:19:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT rank, name, revenues FROM top1000revenue ORDER BY revenues DESC NULLS LAST LIMIT 10;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_ovqDVFXzKQX2P0BffdloE1Qa\">[\n {\n \"rank\": 1,\n \"name\": \"Walmart\",\n \"revenues\": \"572754.00\"\n },\n {\n \"rank\": 2,\n \"name\": \"Amazon\",\n \"revenues\": \"469822.00\"\n },\n {\n \"rank\": 3,\n \"name\": \"Apple\",\n \"revenues\": \"365817.00\"\n },\n {\n \"rank\": 4,\n \"name\": \"CVS Health\",\n \"revenues\": \"292111.00\"\n },\n {\n \"rank\": 5,\n \"name\": \"UnitedHealth Group\",\n \"revenues\": \"287597.00\"\n },\n {\n \"rank\": 6,\n \"name\": \"Exxon Mobil\",\n \"revenues\": \"285640.00\"\n },\n {\n \"rank\": 7,\n \"name\": \"Berkshire Hathaway\",\n \"revenues\": \"276094.00\"\n },\n {\n \"rank\": 8,\n \"name\": \"Alphabet\",\n \"revenues\": \"257637.00\"\n },\n {\n \"rank\": 9,\n \"name\": \"McKesson\",\n \"revenues\": \"238228.00\"\n },\n {\n \"rank\": 10,\n \"name\": \"AmerisourceBergen\",\n \"revenues\": \"213988.80\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Oto 10 firm o najwyższych przychodach:\n\n```text\n rank | name | revenues\n------+---------------------+-----------\n 1 | Walmart | 572754.00\n 2 | Amazon | 469822.00\n 3 | Apple | 365817.00\n 4 | CVS Health | 292111.00\n 5 | UnitedHealth Group | 287597.00\n 6 | Exxon Mobil | 285640.00\n 7 | Berkshire Hathaway | 276094.00\n 8 | Alphabet | 257637.00\n 9 | McKesson | 238228.00\n 10 | AmerisourceBergen | 213988.80\n```"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nZnajdź 5 firm o największym dodatnim revenue_percent_change. Zwróć name, revenues oraz revenue_percent_change. Pomiń wiersze z NULL w tym polu.\n\n<info-msg>\nIt is currently 2026-01-21 14:19:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT name, revenues, revenue_percent_change\\nFROM top1000revenue\\nWHERE revenue_percent_change IS NOT NULL\\nORDER BY revenue_percent_change DESC\\nLIMIT 5;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_O39Z7nxLGT1ChaZ22snhi69R\">[\n {\n \"name\": \"Moderna\",\n \"revenues\": \"18471.00\",\n \"revenue_percent_change\": \"21.99\"\n },\n {\n \"name\": \"Change Healthcare\",\n \"revenues\": \"3090.40\",\n \"revenue_percent_change\": \"14.70\"\n },\n {\n \"name\": \"Annaly Capital Management\",\n \"revenues\": \"2836.20\",\n \"revenue_percent_change\": \"11.89\"\n },\n {\n \"name\": \"Coinbase Global\",\n \"revenues\": \"7839.40\",\n \"revenue_percent_change\": \"5.14\"\n },\n {\n \"name\": \"New Residential Investment\",\n \"revenues\": \"3533.10\",\n \"revenue_percent_change\": \"5.13\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Aby znaleźć 5 firm o największym dodatnim `revenue_percent_change` (bez wartości `NULL`), właściwe zapytanie SQL to:\n\n```sql\nSELECT\n name,\n revenues,\n revenue_percent_change\nFROM top1000revenue\nWHERE revenue_percent_change IS NOT NULL\nORDER BY revenue_percent_change DESC\nLIMIT 5;\n```\n\nWynik:\n\n| name | revenues | revenue_percent_change |\n|-----------------------------|-----------|-------------------------|\n| Moderna | 18471.00 | 21.99 |\n| Change Healthcare | 3090.40 | 14.70 |\n| Annaly Capital Management | 2836.20 | 11.89 |\n| Coinbase Global | 7839.40 | 5.14 |\n| New Residential Investment | 3533.10 | 5.13 |"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nOblicz średnią (AVG) i medianę przychodów (revenues) dla wszystkich firm. Zwróć oba wyniki w osobnych kolumnach.\n\n<info-msg>\nIt is currently 2026-01-21 14:19:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT AVG(revenues) AS avg_revenues, PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY revenues) AS median_revenues FROM top1000revenue;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_eWY2CfvrI47sSlSH5m5UrCAA\">[\n {\n \"avg_revenues\": \"17986.801400000000\",\n \"median_revenues\": 6375.5\n }\n]</tool_result>"}, {"role": "assistant", "content": "Oto wynik zapytania:\n\n```sql\nSELECT \n AVG(revenues) AS avg_revenues,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY revenues) AS median_revenues\nFROM top1000revenue;\n```\n\nRezultaty:\n- Średnie przychody (AVG): **17986.8014**\n- Mediana przychodów: **6375.5**"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nWypisz 10 firm z największą liczbą pracowników (employees). Zwróć name i employees, posortowane malejąco po liczbie pracowników.\n\n<info-msg>\nIt is currently 2026-01-21 14:19:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT name, employees FROM top1000revenue WHERE employees IS NOT NULL ORDER BY employees DESC LIMIT 10;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_NC3vNaU9Qzy8UNh5JsR8KinM\">[\n {\n \"name\": \"Walmart\",\n \"employees\": 2300000\n },\n {\n \"name\": \"Amazon\",\n \"employees\": 1608000\n },\n {\n \"name\": \"Home Depot\",\n \"employees\": 490600\n },\n {\n \"name\": \"FedEx\",\n \"employees\": 484000\n },\n {\n \"name\": \"Target\",\n \"employees\": 450000\n },\n {\n \"name\": \"Kroger\",\n \"employees\": 420000\n },\n {\n \"name\": \"UPS\",\n \"employees\": 400945\n },\n {\n \"name\": \"Starbucks\",\n \"employees\": 383000\n },\n {\n \"name\": \"Berkshire Hathaway\",\n \"employees\": 372000\n },\n {\n \"name\": \"UnitedHealth Group\",\n \"employees\": 350000\n }\n]</tool_result>"}, {"role": "assistant", "content": "Oto 10 firm z największą liczbą pracowników (tylko nie-NULL), posortowanych malejąco po `employees`:\n\n```sql\nSELECT name, employees\nFROM top1000revenue\nWHERE employees IS NOT NULL\nORDER BY employees DESC\nLIMIT 10;\n```\n\nWynik:\n\n| name | employees |\n|--------------------|-----------|\n| Walmart | 2300000 |\n| Amazon | 1608000 |\n| Home Depot | 490600 |\n| FedEx | 484000 |\n| Target | 450000 |\n| Kroger | 420000 |\n| UPS | 400945 |\n| Starbucks | 383000 |\n| Berkshire Hathaway | 372000 |\n| UnitedHealth Group | 350000 |"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nPolicz, ile firm ma ujemny zysk (profits < 0). Zwróć liczbę takich firm oraz ich procentowy udział w całej tabeli.\n\n<info-msg>\nIt is currently 2026-01-21 14:19:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT \\n COUNT(*) FILTER (WHERE profits < 0) AS negative_profit_firms,\\n COUNT(*) AS total_firms,\\n ROUND(100.0 * COUNT(*) FILTER (WHERE profits < 0) / COUNT(*), 2) AS negative_profit_percentage\\nFROM top1000revenue;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_duCdHxU6UyCnV6evROryzps2\">[\n {\n \"negative_profit_firms\": \"114\",\n \"total_firms\": \"1000\",\n \"negative_profit_percentage\": \"11.40\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Wyniki dla tabeli `top1000revenue`:\n\n- Liczba firm z ujemnym zyskiem (`profits < 0`): **114**\n- Łączna liczba firm w tabeli: **1000**\n- Procentowy udział firm z ujemnym zyskiem: **11,40%**"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nZnajdź 10 firm o największym spadku profits_percent_change. Pomiń wartości NULL. Zwróć name, profits oraz profits_percent_change, posortowane rosnąco po zmianie zysku.\n\n<info-msg>\nIt is currently 2026-01-21 14:19:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT name, profits, profits_percent_change\\nFROM top1000revenue\\nWHERE profits_percent_change IS NOT NULL\\nORDER BY profits_percent_change ASC\\nLIMIT 10;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_xIF0VVnaSspb5FY7KFVNJhbo\">[\n {\n \"name\": \"Ohio National Mutual\",\n \"profits\": \"-85.20\",\n \"profits_percent_change\": \"-1774.96\"\n },\n {\n \"name\": \"AES\",\n \"profits\": \"-409.00\",\n \"profits_percent_change\": \"-9.89\"\n },\n {\n \"name\": \"McKesson\",\n \"profits\": \"-4539.00\",\n \"profits_percent_change\": \"-6.04\"\n },\n {\n \"name\": \"Hyster-Yale Materials Handling\",\n \"profits\": \"-173.00\",\n \"profits_percent_change\": \"-5.66\"\n },\n {\n \"name\": \"Xerox Holdings\",\n \"profits\": \"-455.00\",\n \"profits_percent_change\": \"-3.37\"\n },\n {\n \"name\": \"Sprague Resources\",\n \"profits\": \"-68.90\",\n \"profits_percent_change\": \"-3.04\"\n },\n {\n \"name\": \"Vistra\",\n \"profits\": \"-1274.00\",\n \"profits_percent_change\": \"-3.00\"\n },\n {\n \"name\": \"Mattress Firm Group\",\n \"profits\": \"-165.10\",\n \"profits_percent_change\": \"-2.31\"\n },\n {\n \"name\": \"Americold Realty Trust\",\n \"profits\": \"-30.50\",\n \"profits_percent_change\": \"-2.24\"\n },\n {\n \"name\": \"Brookdale Senior Living\",\n \"profits\": \"-99.30\",\n \"profits_percent_change\": \"-2.21\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Oto 10 firm o największym spadku `profits_percent_change` (bez wartości NULL), posortowane rosnąco po zmianie zysku:\n\n```sql\nSELECT\n name,\n profits,\n profits_percent_change\nFROM top1000revenue\nWHERE profits_percent_change IS NOT NULL\nORDER BY profits_percent_change ASC\nLIMIT 10;\n```\n\nWyniki:\n\n| name | profits | profits_percent_change |\n|-----------------------------|----------|-------------------------|\n| Ohio National Mutual | -85.20 | -1774.96 |\n| AES | -409.00 | -9.89 |\n| McKesson | -4539.00 | -6.04 |\n| Hyster-Yale Materials Handling | -173.00 | -5.66 |\n| Xerox Holdings | -455.00 | -3.37 |\n| Sprague Resources | -68.90 | -3.04 |\n| Vistra | -1274.00 | -3.00 |\n| Mattress Firm Group | -165.10 | -2.31 |\n| Americold Realty Trust | -30.50 | -2.24 |\n| Brookdale Senior Living | -99.30 | -2.21 |"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nOblicz korelację pomiędzy revenues a market_value. Zwróć wynik jako jedną liczbę.\n\n<info-msg>\nIt is currently 2026-01-21 14:19:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT corr(revenues, market_value) AS corr_revenue_market_value FROM top1000revenue;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_pM7HZWbDVPWoGWUgcTc8g4Yi\">[\n {\n \"corr_revenue_market_value\": 0.615787654314063\n }\n]</tool_result>"}, {"role": "assistant", "content": "0.615787654314063"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nWypisz 10 firm o największej wartości assets. Zwróć rank, name i assets.\n\n<info-msg>\nIt is currently 2026-01-21 14:20:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT rank, name, assets FROM top1000revenue ORDER BY assets DESC NULLS LAST LIMIT 10;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_Loemd24KY5814R9SpNZ7Th4z\">[\n {\n \"rank\": 33,\n \"name\": \"Fannie Mae\",\n \"assets\": \"4229166.00\"\n },\n {\n \"rank\": 24,\n \"name\": \"JPMorgan Chase\",\n \"assets\": \"3743567.00\"\n },\n {\n \"rank\": 36,\n \"name\": \"Bank of America\",\n \"assets\": \"3169495.00\"\n },\n {\n \"rank\": 56,\n \"name\": \"Freddie Mac\",\n \"assets\": \"3025586.00\"\n },\n {\n \"rank\": 44,\n \"name\": \"Citigroup\",\n \"assets\": \"2291413.00\"\n },\n {\n \"rank\": 41,\n \"name\": \"Wells Fargo\",\n \"assets\": \"1948068.00\"\n },\n {\n \"rank\": 57,\n \"name\": \"Goldman Sachs Group\",\n \"assets\": \"1463988.00\"\n },\n {\n \"rank\": 61,\n \"name\": \"Morgan Stanley\",\n \"assets\": \"1188140.00\"\n },\n {\n \"rank\": 7,\n \"name\": \"Berkshire Hathaway\",\n \"assets\": \"958784.00\"\n },\n {\n \"rank\": 51,\n \"name\": \"Prudential Financial\",\n \"assets\": \"937582.00\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Oto 10 firm o największej wartości `assets`:\n\n```sql\nSELECT rank, name, assets\nFROM top1000revenue\nORDER BY assets DESC NULLS LAST\nLIMIT 10;\n```\n\nWynik:\n\n| rank | name | assets |\n|------|----------------------|-------------|\n| 33 | Fannie Mae | 4229166.00 |\n| 24 | JPMorgan Chase | 3743567.00 |\n| 36 | Bank of America | 3169495.00 |\n| 56 | Freddie Mac | 3025586.00 |\n| 44 | Citigroup | 2291413.00 |\n| 41 | Wells Fargo | 1948068.00 |\n| 57 | Goldman Sachs Group | 1463988.00 |\n| 61 | Morgan Stanley | 1188140.00 |\n| 7 | Berkshire Hathaway | 958784.00 |\n| 51 | Prudential Financial | 937582.00 |"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nPolicz, ile firm ma revenue_percent_change większy niż 0.5. Zwróć liczbę firm i ich procentowy udział.\n\n<info-msg>\nIt is currently 2026-01-21 14:20:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT\\n COUNT(*) FILTER (WHERE revenue_percent_change > 0.5) AS cnt_gt_05,\\n COUNT(*) AS total,\\n 100.0 * COUNT(*) FILTER (WHERE revenue_percent_change > 0.5) / COUNT(*) AS pct_gt_05\\nFROM top1000revenue;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_lNXoRhAX7XQNbJJ17cWSOAye\">[\n {\n \"cnt_gt_05\": \"145\",\n \"total\": \"1000\",\n \"pct_gt_05\": \"14.5000000000000000\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Wyniki dla tabeli `top1000revenue`:\n\n- Liczba firm z `revenue_percent_change > 0.5`: **145**\n- Procentowy udział takich firm w całej próbie: **14,5%** (145 z 1000)"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nWypisz wszystkie firmy, które mają market_value większy niż 100000. Zwróć name, market_value i revenues.\n\n<info-msg>\nIt is currently 2026-01-21 14:20:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT name, market_value, revenues FROM top1000revenue WHERE market_value > 100000;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_Cod47Myai9W5xCcpsQOoM4BB\">[\n {\n \"name\": \"General Electric\",\n \"market_value\": \"100810.20\",\n \"revenues\": \"74196.00\"\n },\n {\n \"name\": \"Boeing\",\n \"market_value\": \"113058.70\",\n \"revenues\": \"62286.00\"\n },\n {\n \"name\": \"Airbnb\",\n \"market_value\": \"110419.90\",\n \"revenues\": \"5991.80\"\n },\n {\n \"name\": \"ServiceNow\",\n \"market_value\": \"111378.00\",\n \"revenues\": \"5896.00\"\n },\n {\n \"name\": \"Salesforce\",\n \"market_value\": \"210196.80\",\n \"revenues\": \"26492.00\"\n },\n {\n \"name\": \"Intuitive Surgical\",\n \"market_value\": \"108361.90\",\n \"revenues\": \"5710.10\"\n },\n {\n \"name\": \"Stryker\",\n \"market_value\": \"100978.10\",\n \"revenues\": \"17108.00\"\n },\n {\n \"name\": \"Walt Disney\",\n \"market_value\": \"249718.10\",\n \"revenues\": \"67418.00\"\n },\n {\n \"name\": \"Intuit\",\n \"market_value\": \"135987.60\",\n \"revenues\": \"9633.00\"\n },\n {\n \"name\": \"American Tower\",\n \"market_value\": \"114527.40\",\n \"revenues\": \"9356.90\"\n },\n {\n \"name\": \"Prologis\",\n \"market_value\": \"119524.50\",\n \"revenues\": \"4759.40\"\n },\n {\n \"name\": \"S&P Global\",\n \"market_value\": \"142343.50\",\n \"revenues\": \"8297.00\"\n },\n {\n \"name\": \"Advanced Micro Devices\",\n \"market_value\": \"177936.10\",\n \"revenues\": \"16434.00\"\n },\n {\n \"name\": \"NextEra Energy\",\n \"market_value\": \"166264.10\",\n \"revenues\": \"17069.00\"\n },\n {\n \"name\": \"Raytheon Technologies\",\n \"market_value\": \"147640.90\",\n \"revenues\": \"64388.00\"\n },\n {\n \"name\": \"PayPal Holdings\",\n \"market_value\": \"134732.80\",\n \"revenues\": \"25371.00\"\n },\n {\n \"name\": \"Starbucks\",\n \"market_value\": \"104642.80\",\n \"revenues\": \"29060.60\"\n },\n {\n \"name\": \"Charter Communications\",\n \"market_value\": \"112803.40\",\n \"revenues\": \"51682.00\"\n },\n {\n \"name\": \"Adobe\",\n \"market_value\": \"215280.50\",\n \"revenues\": \"15785.00\"\n },\n {\n \"name\": \"Costco Wholesale\",\n \"market_value\": \"255230.70\",\n \"revenues\": \"195929.00\"\n },\n {\n \"name\": \"Netflix\",\n \"market_value\": \"166304.10\",\n \"revenues\": \"29697.80\"\n },\n {\n \"name\": \"Tesla\",\n \"market_value\": \"1113707.80\",\n \"revenues\": \"53823.00\"\n },\n {\n \"name\": \"Honeywell International\",\n \"market_value\": \"133381.00\",\n \"revenues\": \"34392.00\"\n },\n {\n \"name\": \"Eli Lilly\",\n \"market_value\": \"272723.60\",\n \"revenues\": \"28318.40\"\n },\n {\n \"name\": \"Nike\",\n \"market_value\": \"212779.10\",\n \"revenues\": \"44538.00\"\n },\n {\n \"name\": \"IBM\",\n \"market_value\": \"116928.30\",\n \"revenues\": \"72344.00\"\n },\n {\n \"name\": \"Charles Schwab\",\n \"market_value\": \"159675.90\",\n \"revenues\": \"18996.00\"\n },\n {\n \"name\": \"Applied Materials\",\n \"market_value\": \"116431.40\",\n \"revenues\": \"23063.00\"\n },\n {\n \"name\": \"Amgen\",\n \"market_value\": \"134700.80\",\n \"revenues\": \"25979.00\"\n },\n {\n \"name\": \"BlackRock\",\n \"market_value\": \"116186.20\",\n \"revenues\": \"19374.00\"\n },\n {\n \"name\": \"Deere\",\n \"market_value\": \"127456.60\",\n \"revenues\": \"44024.00\"\n },\n {\n \"name\": \"Elevance Health\",\n \"market_value\": \"118533.50\",\n \"revenues\": \"138639.00\"\n },\n {\n \"name\": \"Lockheed Martin\",\n \"market_value\": \"117648.20\",\n \"revenues\": \"67044.00\"\n },\n {\n \"name\": \"Danaher\",\n \"market_value\": \"209993.40\",\n \"revenues\": \"29453.00\"\n },\n {\n \"name\": \"Caterpillar\",\n \"market_value\": \"119406.60\",\n \"revenues\": \"50971.00\"\n },\n {\n \"name\": \"Union Pacific\",\n \"market_value\": \"171681.60\",\n \"revenues\": \"21804.00\"\n },\n {\n \"name\": \"Broadcom\",\n \"market_value\": \"257086.50\",\n \"revenues\": \"27450.00\"\n },\n {\n \"name\": \"Bristol-Myers Squibb\",\n \"market_value\": \"155203.50\",\n \"revenues\": \"46385.00\"\n },\n {\n \"name\": \"Abbott Laboratories\",\n \"market_value\": \"208725.80\",\n \"revenues\": \"43075.00\"\n },\n {\n \"name\": \"McDonald's\",\n \"market_value\": \"183873.60\",\n \"revenues\": \"23222.90\"\n },\n {\n \"name\": \"PepsiCo\",\n \"market_value\": \"231528.20\",\n \"revenues\": \"79474.00\"\n },\n {\n \"name\": \"Thermo Fisher Scientific\",\n \"market_value\": \"231057.40\",\n \"revenues\": \"39211.00\"\n },\n {\n \"name\": \"Texas Instruments\",\n \"market_value\": \"169329.60\",\n \"revenues\": \"18344.00\"\n },\n {\n \"name\": \"CVS Health\",\n \"market_value\": \"132839.20\",\n \"revenues\": \"292111.00\"\n },\n {\n \"name\": \"American Express\",\n \"market_value\": \"141613.00\",\n \"revenues\": \"43663.00\"\n },\n {\n \"name\": \"ConocoPhillips\",\n \"market_value\": \"129605.10\",\n \"revenues\": \"48349.00\"\n },\n {\n \"name\": \"Lowe's\",\n \"market_value\": \"133761.10\",\n \"revenues\": \"96250.00\"\n },\n {\n \"name\": \"Mastercard\",\n \"market_value\": \"349330.50\",\n \"revenues\": \"18884.00\"\n },\n {\n \"name\": \"Qualcomm\",\n \"market_value\": \"172228.10\",\n \"revenues\": \"33566.00\"\n },\n {\n \"name\": \"Philip Morris International\",\n \"market_value\": \"145614.70\",\n \"revenues\": \"31405.00\"\n },\n {\n \"name\": \"Nvidia\",\n \"market_value\": \"684878.60\",\n \"revenues\": \"26914.00\"\n },\n {\n \"name\": \"Coca-Cola\",\n \"market_value\": \"268769.70\",\n \"revenues\": \"38655.00\"\n },\n {\n \"name\": \"Cisco Systems\",\n \"market_value\": \"231636.40\",\n \"revenues\": \"49818.00\"\n },\n {\n \"name\": \"AbbVie\",\n \"market_value\": \"286332.40\",\n \"revenues\": \"56197.00\"\n },\n {\n \"name\": \"Visa\",\n \"market_value\": \"480022.50\",\n \"revenues\": \"24105.00\"\n },\n {\n \"name\": \"UPS\",\n \"market_value\": \"186816.60\",\n \"revenues\": \"97287.00\"\n },\n {\n \"name\": \"Merck\",\n \"market_value\": \"207400.50\",\n \"revenues\": \"51216.00\"\n },\n {\n \"name\": \"Walmart\",\n \"market_value\": \"409795.00\",\n \"revenues\": \"572754.00\"\n },\n {\n \"name\": \"Oracle\",\n \"market_value\": \"220736.60\",\n \"revenues\": \"40479.00\"\n },\n {\n \"name\": \"Comcast\",\n \"market_value\": \"212245.80\",\n \"revenues\": \"116385.00\"\n },\n {\n \"name\": \"Procter & Gamble\",\n \"market_value\": \"366271.60\",\n \"revenues\": \"76118.00\"\n },\n {\n \"name\": \"Morgan Stanley\",\n \"market_value\": \"155685.60\",\n \"revenues\": \"61121.00\"\n },\n {\n \"name\": \"Chevron\",\n \"market_value\": \"317120.10\",\n \"revenues\": \"162465.00\"\n },\n {\n \"name\": \"Home Depot\",\n \"market_value\": \"309312.60\",\n \"revenues\": \"151157.00\"\n },\n {\n \"name\": \"UnitedHealth Group\",\n \"market_value\": \"479830.30\",\n \"revenues\": \"287597.00\"\n },\n {\n \"name\": \"Intel\",\n \"market_value\": \"202635.80\",\n \"revenues\": \"79024.00\"\n },\n {\n \"name\": \"AT&T\",\n \"market_value\": \"169262.40\",\n \"revenues\": \"168864.00\"\n },\n {\n \"name\": \"Johnson & Johnson\",\n \"market_value\": \"466046.70\",\n \"revenues\": \"93775.00\"\n },\n {\n \"name\": \"Wells Fargo\",\n \"market_value\": \"184225.00\",\n \"revenues\": \"82407.00\"\n },\n {\n \"name\": \"Goldman Sachs Group\",\n \"market_value\": \"117667.60\",\n \"revenues\": \"64989.00\"\n },\n {\n \"name\": \"Citigroup\",\n \"market_value\": \"105330.10\",\n \"revenues\": \"79865.00\"\n },\n {\n \"name\": \"Pfizer\",\n \"market_value\": \"292385.30\",\n \"revenues\": \"81288.00\"\n },\n {\n \"name\": \"Verizon Communications\",\n \"market_value\": \"213837.10\",\n \"revenues\": \"133613.00\"\n },\n {\n \"name\": \"Exxon Mobil\",\n \"market_value\": \"349652.40\",\n \"revenues\": \"285640.00\"\n },\n {\n \"name\": \"Bank of America\",\n \"market_value\": \"332433.30\",\n \"revenues\": \"93851.00\"\n },\n {\n \"name\": \"Amazon\",\n \"market_value\": \"1658807.30\",\n \"revenues\": \"469822.00\"\n },\n {\n \"name\": \"Meta Platforms\",\n \"market_value\": \"605251.00\",\n \"revenues\": \"117929.00\"\n },\n {\n \"name\": \"JPMorgan Chase\",\n \"market_value\": \"402526.90\",\n \"revenues\": \"127202.00\"\n },\n {\n \"name\": \"Microsoft\",\n \"market_value\": \"2311358.90\",\n \"revenues\": \"168088.00\"\n },\n {\n \"name\": \"Alphabet\",\n \"market_value\": \"1842326.10\",\n \"revenues\": \"257637.00\"\n },\n {\n \"name\": \"Berkshire Hathaway\",\n \"market_value\": \"779542.30\",\n \"revenues\": \"276094.00\"\n },\n {\n \"name\": \"Apple\",\n \"market_value\": \"2849537.60\",\n \"revenues\": \"365817.00\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Oto firmy, które mają `market_value > 100000` (zwracam `name`, `market_value`, `revenues`):\n\n| name | market_value | revenues |\n|----------------------------|--------------|-----------:|\n| General Electric | 100810.20 | 74196.00 |\n| Boeing | 113058.70 | 62286.00 |\n| Airbnb | 110419.90 | 5991.80 |\n| ServiceNow | 111378.00 | 5896.00 |\n| Salesforce | 210196.80 | 26492.00 |\n| Intuitive Surgical | 108361.90 | 5710.10 |\n| Stryker | 100978.10 | 17108.00 |\n| Walt Disney | 249718.10 | 67418.00 |\n| Intuit | 135987.60 | 9633.00 |\n| American Tower | 114527.40 | 9356.90 |\n| Prologis | 119524.50 | 4759.40 |\n| S&P Global | 142343.50 | 8297.00 |\n| Advanced Micro Devices | 177936.10 | 16434.00 |\n| NextEra Energy | 166264.10 | 17069.00 |\n| Raytheon Technologies | 147640.90 | 64388.00 |\n| PayPal Holdings | 134732.80 | 25371.00 |\n| Starbucks | 104642.80 | 29060.60 |\n| Charter Communications | 112803.40 | 51682.00 |\n| Adobe | 215280.50 | 15785.00 |\n| Costco Wholesale | 255230.70 | 195929.00 |\n| Netflix | 166304.10 | 29697.80 |\n| Tesla | 1113707.80 | 53823.00 |\n| Honeywell International | 133381.00 | 34392.00 |\n| Eli Lilly | 272723.60 | 28318.40 |\n| Nike | 212779.10 | 44538.00 |\n| IBM | 116928.30 | 72344.00 |\n| Charles Schwab | 159675.90 | 18996.00 |\n| Applied Materials | 116431.40 | 23063.00 |\n| Amgen | 134700.80 | 25979.00 |\n| BlackRock | 116186.20 | 19374.00 |\n| Deere | 127456.60 | 44024.00 |\n| Elevance Health | 118533.50 | 138639.00 |\n| Lockheed Martin | 117648.20 | 67044.00 |\n| Danaher | 209993.40 | 29453.00 |\n| Caterpillar | 119406.60 | 50971.00 |\n| Union Pacific | 171681.60 | 21804.00 |\n| Broadcom | 257086.50 | 27450.00 |\n| Bristol-Myers Squibb | 155203.50 | 46385.00 |\n| Abbott Laboratories | 208725.80 | 43075.00 |\n| McDonald's | 183873.60 | 23222.90 |\n| PepsiCo | 231528.20 | 79474.00 |\n| Thermo Fisher Scientific | 231057.40 | 39211.00 |\n| Texas Instruments | 169329.60 | 18344.00 |\n| CVS Health | 132839.20 | 292111.00 |\n| American Express | 141613.00 | 43663.00 |\n| ConocoPhillips | 129605.10 | 48349.00 |\n| Lowe's | 133761.10 | 96250.00 |\n| Mastercard | 349330.50 | 18884.00 |\n| Qualcomm | 172228.10 | 33566.00 |\n| Philip Morris International| 145614.70 | 31405.00 |\n| Nvidia | 684878.60 | 26914.00 |\n| Coca-Cola | 268769.70 | 38655.00 |\n| Cisco Systems | 231636.40 | 49818.00 |\n| AbbVie | 286332.40 | 56197.00 |\n| Visa | 480022.50 | 24105.00 |\n| UPS | 186816.60 | 97287.00 |\n| Merck | 207400.50 | 51216.00 |\n| Walmart | 409795.00 | 572754.00 |\n| Oracle | 220736.60 | 40479.00 |\n| Comcast | 212245.80 | 116385.00 |\n| Procter & Gamble | 366271.60 | 76118.00 |\n| Morgan Stanley | 155685.60 | 61121.00 |\n| Chevron | 317120.10 | 162465.00 |\n| Home Depot | 309312.60 | 151157.00 |\n| UnitedHealth Group | 479830.30 | 287597.00 |\n| Intel | 202635.80 | 79024.00 |\n| AT&T | 169262.40 | 168864.00 |\n| Johnson & Johnson | 466046.70 | 93775.00 |\n| Wells Fargo | 184225.00 | 82407.00 |\n| Goldman Sachs Group | 117667.60 | 64989.00 |\n| Citigroup | 105330.10 | 79865.00 |\n| Pfizer | 292385.30 | 81288.00 |\n| Verizon Communications | 213837.10 | 133613.00 |\n| Exxon Mobil | 349652.40 | 285640.00 |\n| Bank of America | 332433.30 | 93851.00 |\n| Amazon | 1658807.30 | 469822.00 |\n| Meta Platforms | 605251.00 | 117929.00 |\n| JPMorgan Chase | 402526.90 | 127202.00 |\n| Microsoft | 2311358.90 | 168088.00 |\n| Alphabet | 1842326.10 | 257637.00 |\n| Berkshire Hathaway | 779542.30 | 276094.00 |\n| Apple | 2849537.60 | 365817.00 |\n\nJeśli chcesz, mogę też podać dokładne zapytanie SQL użyte do uzyskania tych danych."}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nOblicz sumę profits dla wszystkich firm, gdzie profits_percent_change jest NULL. Zwróć wynik.\n\n<info-msg>\nIt is currently 2026-01-21 14:20:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT SUM(profits) AS sum_profits_null_change FROM top1000revenue WHERE profits_percent_change IS NULL;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_mm19p5AgWKSKchjJc1aDsQjj\">[\n {\n \"sum_profits_null_change\": \"209670.60\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Suma kolumny `profits` dla wszystkich firm, gdzie `profits_percent_change` jest `NULL`, wynosi:\n\n**209670.60**"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nWypisz 10 firm o największym wzroście change_in_rank (największa dodatnia wartość). Zwróć name i change_in_rank.\n\n<info-msg>\nIt is currently 2026-01-21 14:20:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT name, change_in_rank FROM top1000revenue WHERE change_in_rank IS NOT NULL ORDER BY change_in_rank DESC, name ASC LIMIT 10;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_t8NQjMi1XG4QyABSlwhpLSJY\">[\n {\n \"name\": \"Apollo Global Management\",\n \"change_in_rank\": 552\n },\n {\n \"name\": \"Live Nation Entertainment\",\n \"change_in_rank\": 486\n },\n {\n \"name\": \"Southwestern Energy\",\n \"change_in_rank\": 407\n },\n {\n \"name\": \"Opendoor Technologies\",\n \"change_in_rank\": 394\n },\n {\n \"name\": \"Carlyle Group\",\n \"change_in_rank\": 360\n },\n {\n \"name\": \"Caesars Entertainment\",\n \"change_in_rank\": 340\n },\n {\n \"name\": \"Cleveland-Cliffs\",\n \"change_in_rank\": 330\n },\n {\n \"name\": \"Diamondback Energy\",\n \"change_in_rank\": 302\n },\n {\n \"name\": \"Blackstone\",\n \"change_in_rank\": 295\n },\n {\n \"name\": \"Continental Resources\",\n \"change_in_rank\": 274\n }\n]</tool_result>"}, {"role": "assistant", "content": "Oto 10 firm z największym wzrostem pozycji (change_in_rank) w rankingu:\n\n```sql\nSELECT\n name,\n change_in_rank\nFROM top1000revenue\nWHERE change_in_rank IS NOT NULL\nORDER BY change_in_rank DESC, name ASC\nLIMIT 10;\n```\n\nWynik:\n\n1. Apollo Global Management – 552 \n2. Live Nation Entertainment – 486 \n3. Southwestern Energy – 407 \n4. Opendoor Technologies – 394 \n5. Carlyle Group – 360 \n6. Caesars Entertainment – 340 \n7. Cleveland-Cliffs – 330 \n8. Diamondback Energy – 302 \n9. Blackstone – 295 \n10. Continental Resources – 274"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nOblicz średnią wartość revenues dla firm, które mają profits < 0, i porównaj z średnią revenues dla firm z profits >= 0. Zwróć oba wyniki.\n\n<info-msg>\nIt is currently 2026-01-21 14:20:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT \\n AVG(CASE WHEN profits < 0 THEN revenues END) AS avg_revenues_profits_negative,\\n AVG(CASE WHEN profits >= 0 THEN revenues END) AS avg_revenues_profits_nonnegative\\nFROM top1000revenue;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_O6BoSEUC043hVgI01tMQmgw9\">[\n {\n \"avg_revenues_profits_negative\": \"9625.1473684210526316\",\n \"avg_revenues_profits_nonnegative\": \"19109.492185730464\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Oto wyniki:\n\n- Średnie `revenues` dla firm z `profits < 0`: **9625.15**\n- Średnie `revenues` dla firm z `profits >= 0`: **19109.49**\n\nCzyli firmy z dodatnimi (lub zerowymi) zyskami mają średnio około dwukrotnie wyższe przychody niż firmy ze stratą."}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nWypisz top 5 firm z najwyższą wartością market_value, ale tylko te, które mają revenues powyżej średniej z całej tabeli. Zwróć name, revenues, market_value.\n\n<info-msg>\nIt is currently 2026-01-21 14:20:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT name, revenues, market_value\\nFROM top1000revenue\\nWHERE revenues > (SELECT AVG(revenues) FROM top1000revenue)\\n AND market_value IS NOT NULL\\nORDER BY market_value DESC\\nLIMIT 5;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_H2gIquNYigyYEwR6Cw8w7fsL\">[\n {\n \"name\": \"Apple\",\n \"revenues\": \"365817.00\",\n \"market_value\": \"2849537.60\"\n },\n {\n \"name\": \"Microsoft\",\n \"revenues\": \"168088.00\",\n \"market_value\": \"2311358.90\"\n },\n {\n \"name\": \"Alphabet\",\n \"revenues\": \"257637.00\",\n \"market_value\": \"1842326.10\"\n },\n {\n \"name\": \"Amazon\",\n \"revenues\": \"469822.00\",\n \"market_value\": \"1658807.30\"\n },\n {\n \"name\": \"Tesla\",\n \"revenues\": \"53823.00\",\n \"market_value\": \"1113707.80\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Oto przykładowe zapytanie SQL oraz wynik spełniający Twoje kryteria.\n\n### Zapytanie SQL\n\n```sql\nSELECT\n name,\n revenues,\n market_value\nFROM top1000revenue\nWHERE revenues > (\n SELECT AVG(revenues)\n FROM top1000revenue\n )\n AND market_value IS NOT NULL\nORDER BY market_value DESC\nLIMIT 5;\n```\n\n### Wynik (top 5 firm)\n\n| name | revenues | market_value |\n|-----------|------------|--------------|\n| Apple | 365817.00 | 2849537.60 |\n| Microsoft | 168088.00 | 2311358.90 |\n| Alphabet | 257637.00 | 1842326.10 |\n| Amazon | 469822.00 | 1658807.30 |\n| Tesla | 53823.00 | 1113707.80 |"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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 analize danych i pracy z bazami danych SQL. Twoje analiza jest zwięzła i na temat.\n\nBaza danych ma następjącą tabelę:\n ```sqlite\n CREATE TABLE top1000revenue (\n rank INTEGER,\n name TEXT,\n revenues NUMERIC,\n revenue_percent_change NUMERIC,\n profits NUMERIC,\n profits_percent_change NUMERIC,\n assets NUMERIC,\n market_value NUMERIC,\n change_in_rank INTEGER,\n employees INTEGER\n );\n ```\nPrzykład kilku pierwszych wyników:\nHere is some sample data in the table:\n\n```sql\nINSERT INTO top1000revenue (rank, name, revenues, revenue_percent_change, profits, profits_percent_change, assets, market_value, change_in_rank, employees) VALUES\n(48, 'General Electric',74196.00,-0.07,-6520.00,-2.14,198874.00,100810.20,-10.00,168000.00),\n(9, 'McKesson',238228.00,0.03,-4539.00,-6.04,65015.00,45857.80,-2.00,67500.00),\n(914, 'WeWork',2570.10,-0.25,-4439.00,NULL,21756.20,4937.40,NULL,4400.00),\n(60, 'Boeing',62286.00,0.07,-4202.00,NULL,138552.00,113058.70,-6.00,142000.00),\n(233, 'Cheniere Energy',15864.00,0.70,-2343.00,NULL,39258.00,35272.30,95.00,1550.00),\n(114, 'American Airlines Group',29882.00,0.72,-1993.00,NULL,66467.00,11847.20,60.00,123400.00),\n(146, 'United Airlines Holdings',24634.00,0.60,-1964.00,NULL,68175.00,15049.70,54.00,84100.00),\n```\n\nUwaga: nie wszystkie dane są w tabeli wypełnione (są wartości NULL)!!\n\nPolicz, ile firm ma więcej niż 100000 pracowników oraz jaki jest średni revenues dla tych firm.\n\n<info-msg>\nIt is currently 2026-01-21 14:21:00\nWorking directory: /private/tmp/goose-workdir\n\n</info-msg>"}, {"role": "assistant", "content": "<tool_call>{\"name\": \"example-servers_postgres__query\", \"arguments\": {\"sql\": \"SELECT COUNT(*) AS company_count, AVG(revenues) AS avg_revenues FROM top1000revenue WHERE employees > 100000;\"}}</tool_call>"}, {"role": "tool", "content": "<tool_result tool_call_id=\"call_hONufONpFbTajuqKe6SCwGFy\">[\n {\n \"company_count\": \"63\",\n \"avg_revenues\": \"101842.082539682540\"\n }\n]</tool_result>"}, {"role": "assistant", "content": "Wynik zapytania:\n\n- Liczba firm z więcej niż 100000 pracowników: **63**\n- Średnia wartość `revenues` dla tych firm: **101842.08** (w tych samych jednostkach, co kolumna `revenues`)"}], "tools": [{"name": "example-servers_postgres__query", "description": "Run a read-only SQL query", "parameters": {"properties": {"sql": {"type": "string"}}, "required": [], "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"}}]} | |