{
  "file": "F33-sdk-remote-client.md",
  "bullet": "Ask, generate and set a title (`F33.conversation-ask-title`).",
  "ids": [
    "F33.conversation-ask-title"
  ],
  "line": 1099,
  "script": "E0=$(control-agent-server api GET \"<redacted:session-cookie>/$CID/events/count\" --field .)\ncontrol-agent-server exec --env PYTHONPATH=\"$F33\" --env CID=\"$CID\" --save F33.conversation-ask-title/probe -- .venv/bin/python - <<'PY'\nimport os\nimport uuid\nimport f33\nfrom openhands.sdk import Conversation\n\nconv = Conversation(agent=f33.agent(), workspace=f33.workspace(\"run\"), conversation_id=uuid.UUID(os.environ[\"CID\"]),\n                    visualizer=None, delete_on_close=False)\nanswer = conv.ask_agent(\"Answer with one word, yes or no: did you create a file?\")\nassert isinstance(answer, str) and answer.strip(), answer\ntitle = conv.generate_title(max_length=40)\nassert isinstance(title, str) and 0 < len(title) <= 40, title\nconv.set_title(\"qa-f33 title\")\nf33.emit(\"ask\", answer=answer[:80], title=title)\nconv.close()\nPY\ncontrol-agent-server api GET \"<redacted:session-cookie>/$CID/events/count\" --check . eq \"$E0\"\ncontrol-agent-server api GET \"<redacted:session-cookie>/$CID\" --check title eq 'qa-f33 title' --check execution_status eq finished \\\n  --save F33.conversation-ask-title/get\n",
  "exit_code": 0,
  "elapsed_ms": 20603,
  "failed_line": null,
  "failed_command": null,
  "stdout": "{\n  \"ok\": true,\n  \"exit_code\": 0,\n  \"elapsed_ms\": 18651,\n  \"stdout_tail\": \"{\\\"answer\\\": \\\"yes\\\", \\\"title\\\": \\\"\\\\u2705 Create qa-f33-run.txt with hi\\\"}\\n\",\n  \"stderr_tail\": \"\",\n  \"saved\": \"/workspace/verification-artifacts/runs/20261013-034709-4e02-map-f33/evidence/F33.conversation-ask-title/probe.json\"\n}\n{\n  \"ok\": true,\n  \"status\": 200,\n  \"request\": {\n    \"method\": \"GET\",\n    \"path\": \"<redacted:session-cookie>/509f43e5-db9b-4175-ad8c-a93486d75498/events/count\",\n    \"query\": [],\n    \"auth\": \"header\",\n    \"body\": null,\n    \"files\": []\n  },\n  \"response\": {\n    \"status\": 200,\n    \"headers\": {\n      \"content-length\": \"2\",\n      \"content-type\": \"application/json\"\n    },\n    \"body\": 12,\n    \"truncated\": false\n  },\n  \"elapsed_ms\": 60,\n  \"checks\": [\n    {\n      \"check\": \". eq 12\",\n      \"ok\": true,\n      \"actual\": \"12\"\n    }\n  ]\n}\n{\n  \"ok\": true,\n  \"status\": 200,\n  \"request\": {\n    \"method\": \"GET\",\n    \"path\": \"<redacted:session-cookie>/509f43e5-db9b-4175-ad8c-a93486d75498\",\n    \"query\": [],\n    \"auth\": \"header\",\n    \"body\": null,\n    \"files\": []\n  },\n  \"response\": {\n    \"status\": 200,\n    \"headers\": {\n      \"content-length\": \"5392\",\n      \"content-type\": \"application/json\"\n    },\n    \"body\": {\n      \"id\": \"509f43e5-db9b-4175-ad8c-a93486d75498\",\n      \"workspace\": {\n        \"working_dir\": \"/workspace/verification-artifacts/runs/20261013-034709-4e02-map-f33/fixtures/qa-f33/run\",\n        \"kind\": \"LocalWorkspace\"\n      },\n      \"persistence_dir\": \"/workspace/verification-artifacts/runs/20261013-034709-4e02-map-f33/server/workspace/conversations/509f43e5db9b4175ad8ca93486d75498\",\n      \"max_iterations\": 500,\n      \"stuck_detection\": true,\n      \"execution_status\": \"finished\",\n      \"confirmation_policy\": {\n        \"kind\": \"NeverConfirm\"\n      },\n      \"security_analyzer\": null,\n      \"activated_knowledge_skills\": [],\n      \"invoked_skills\": [],\n      \"blocked_actions\": {},\n      \"blocked_messages\": {},\n      \"last_user_message_id\": \"e56cf690-af51-49c3-ac91-ee91fbb69c22\",\n      \"leaf_event_id\": \"f54a9e9e-ad6b-4deb-8e0c-541ffbe9dc07\",\n      \"stats\": {\n        \"usage_to_metrics\": {\n          \"qa-f33\": {\n            \"model_name\": \"deepseek/deepseek-flash\",\n            \"accumulated_cost\": 0.0010988039999999999,\n            \"max_budget_per_task\": null,\n            \"accumulated_token_usage\": {\n              \"model\": \"deepseek/deepseek-flash\",\n              \"prompt_tokens\": 10603,\n              \"completion_tokens\": 711,\n              \"cache_read_tokens\": 9984,\n              \"cache_write_tokens\": 0,\n              \"reasoning_tokens\": 432,\n              \"context_window\": 1000000,\n              \"per_turn_token\": 5443,\n              \"response_id\": \"\"\n            },\n            \"costs\": [\n              {\n                \"model\": \"deepseek/deepseek-flash\",\n                \"cost\": 0.00024128399999999998,\n                \"timestamp\": 1791863248.0002918\n              },\n              {\n                \"model\": \"deepseek/deepseek-flash\",\n                \"cost\": 0.0005347679999999999,\n                \"timestamp\": 1791863249.765625\n              },\n              {\n                \"model\": \"deepseek/deepseek-flash\",\n                \"cost\": 0.000322752,\n                \"timestamp\": 1791863249.9394965\n              }\n            ],\n            \"response_latencies\": [\n              {\n                \"model\": \"deepseek/deepseek-flash\",\n                \"latency\": 1.0761008262634277,\n                \"response_id\": \"4ef8fd41-3427-4077-a365-8413d1809d29\"\n              },\n              {\n                \"model\": \"deepseek/deepseek-flash\",\n                \"latency\": 1.3359699249267578,\n                \"response_id\": \"bff55d96-25e3-40b0-9b15-430e915d032a\"\n              },\n              {\n                \"model\": \"deepseek/deepseek-flash\",\n                \"latency\": 1.509573221206665,\n                \"response_id\": \"9f585539-31bc-4972-b2f8-c213a9ce2dc7\"\n              }\n            ],\n            \"token_usages\": [\n              {\n                \"model\": \"deepseek/deepseek-flash\",\n                \"prompt_tokens\": 5035,\n                \"completion_tokens\": 134,\n                \"cache_read_tokens\": 4864,\n                \"cache_write_tokens\": 0,\n                \"reasoning_tokens\": 22,\n                \"context_window\": 1000000,\n                \"per_turn_token\": 5169,\n                \"response_id\": \"4ef8fd41-3427-4077-a365-8413d1809d29\"\n              },\n              {\n                \"model\": \"deepseek/deepseek-flash\",\n                \"prompt_tokens\": 300,\n                \"completion_tokens\": 402,\n                \"cache_read_tokens\": 128,\n                \"cache_write_tokens\": 0,\n                \"reasoning_tokens\": 391,\n                \"context_window\": 1000000,\n                \"per_turn_token\": 702,\n                \"response_id\": \"bff55d96-25e3-40b0-9b15-430e915d032a\"\n              },\n              {\n                \"model\": \"deepseek/deepseek-flash\",\n                \"prompt_tokens\": 5268,\n                \"completion_tokens\": 175,\n                \"cache_read_tokens\": 4992,\n                \"cache_write_tokens\": 0,\n                \"reasoning_tokens\": 19,\n                \"context_window\": 1000000,\n                \"per_turn_token\": 5443,\n                \"response_id\": \"9f585539-31bc-4972-b2f8-c213a9ce2dc7\"\n              }\n            ]\n          }\n        }\n      },\n      \"secret_registry\": {\n        \"secret_sources\": {}\n      },\n      \"agent_state\": {},\n      \"hook_config\": null,\n      \"title\": \"qa-f33 title\",\n      \"metrics\": null,\n      \"created_at\": \"2026-10-13T03:47:26.683560Z\",\n      \"updated_at\": \"2026-10-13T03:50:06.877653Z\",\n      \"forked_from_conversation_id\": null,\n      \"forked_from_event_id\": null,\n      \"parent_conversation_id\": null,\n      \"sub_conversation_ids\": [],\n      \"tags\": {},\n      \"current_model_id\": null,\n      \"available_models\": [],\n      \"supports_runtime_model_switch\": false,\n      \"launched_agent_profile\": null,\n      \"agent\": {\n        \"llm\": {\n          \"model\": \"deepseek/deepseek-flash\",\n          \"api_key\": null,\n          \"provider_connection_id\": null,\n          \"auth_type\": \"api_key\",\n          \"subscription_vendor\": null,\n          \"base_url\": null,\n          \"api_version\": null,\n          \"aws_access_key_id\": null,\n          \"aws_secret_access_key\": null,\n          \"aws_session_token\": null,\n          \"aws_region_name\": null,\n          \"aws_profile_name\": null,\n          \"aws_role_name\": null,\n          \"aws_session_name\": null,\n          \"aws_bedrock_runtime_endpoint\": null,\n          \"openrouter_site_url\": \"https://docs.all-hands.dev/\",\n          \"openrouter_app_name\": \"OpenHands\",\n          \"num_retries\": 5,\n          \"retry_multiplier\": 8.0,\n          \"retry_min_wait\": 8,\n          \"retry_max_wait\": 64,\n          \"timeout\": 300,\n          \"stream_idle_timeout\": 300.0,\n          \"max_message_chars\": 30000,\n          \"temperature\": null,\n          \"top_p\": null,\n          \"top_k\": null,\n          \"max_input_tokens\": null,\n          \"max_output_tokens\": null,\n          \"model_canonical_name\": null,\n          \"api_mode\": \"auto\",\n          \"capability_overrides\": {},\n          \"extra_headers\": null,\n          \"input_cost_per_token\": null,\n          \"output_cost_per_token\": null,\n          \"ollama_base_url\": null,\n          \"stream\": false,\n          \"drop_params\": true,\n          \"disable_vision\": null,\n          \"disable_stop_word\": false,\n          \"caching_prompt\": true,\n          \"log_completions\": false,\n          \"log_completions_folder\": \"logs/completions\",\n          \"custom_tokenizer\": null,\n          \"native_tool_calling\": true,\n          \"force_string_serializer\": null,\n          \"inline_image_urls\": null,\n          \"reasoning_effort\": \"high\",\n          \"reasoning_summary\": null,\n          \"enable_encrypted_reasoning\": true,\n          \"prompt_cache_retention\": \"24h\",\n          \"extended_thinking_budget\": 200000,\n          \"seed\": null,\n          \"usage_id\": \"qa-f33\",\n          \"litellm_extra_body\": {},\n          \"is_subscription\": false\n        },\n        \"tools\": [\n          {\n            \"name\": \"terminal\",\n            \"params\": {}\n          }\n        ],\n        \"mcp_config\": {},\n        \"filter_tools_regex\": null,\n        \"include_default_tools\": [\n          \"FinishTool\",\n          \"ThinkTool\"\n        ],\n        \"agent_context\": null,\n        \"system_prompt\": null,\n        \"system_prompt_filename\": \"system_prompt.j2\",\n        \"security_policy_filename\": \"security_policy.j2\",\n        \"system_prompt_kwargs\": {\n          \"llm_security_analyzer\": true\n        },\n        \"condenser\": null,\n        \"critic\": null,\n        \"tool_concurrency_limit\": 1,\n        \"persona\": null,\n        \"kind\": \"Agent\"\n      },\n      \"client_tools\": [],\n      \"tool_module_qualnames\": {\n        \"ClassifyAndSwitchLLMTool\": \"openhands.sdk.tool.builtins.classify_and_switch_llm\",\n        \"ask_oracle\": \"openhands.tools.ask_oracle.definition\",\n        \"file_editor\": \"openhands.tools.file_editor.definition\",\n        \"task_tool_set\": \"openhands.tools.task.definition\",\n        \"task\": \"openhands.tools.task.definition\",\n        \"task_tracker\": \"openhands.tools.task_tracker.definition\",\n        \"terminal\": \"openhands.tools.terminal.definition\",\n        \"workflow_tool_set\": \"openhands.tools.workflow.definition\",\n        \"workflow\": \"openhands.tools.workflow.definition\"\n      },\n      \"runtime_info\": {\n        \"runtime_status\": \"available\",\n        \"can_resume\": true,\n        \"runtime_error\": null\n      }\n    },\n    \"truncated\": false\n  },\n  \"elapsed_ms\": 96,\n  \"checks\": [\n    {\n      \"check\": \"title eq qa-f33 title\",\n      \"ok\": true,\n      \"actual\": \"qa-f33 title\"\n    },\n    {\n      \"check\": \"execution_status eq finished\",\n      \"ok\": true,\n      \"actual\": \"finished\"\n    }\n  ],\n  \"saved\": \"/workspace/verification-artifacts/runs/20261013-034709-4e02-map-f33/evidence/F33.conversation-ask-title/get.json\"\n}\n",
  "stderr": ""
}
