anthropics / anthropics/claude-agent-sdk-python

Prevent agents from interacting with the user

未關閉
#197 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Python
星號
8.1k
分支
1.3k
平均合併
2 天 31 分鐘
30 天內合併 PR
1

描述

Using `ClaudeSDKClient`, agents will sometimes try to interact with the user at different times during complex query execution to ask for approval e.g. "Shall I begin?" or "Do you want me to continue?", even when the system prompt explicitly instructs the model to act autonomously and not ask for any user input or feedback.
Is there a systematic way to prevent this behaviour beside prompt engineering?

Looking at the documentation, It seems `query` is intended for unidirectional tasks like this one while `ClaudeSDKClient` is actually designed for conversations. However, unlike `ClaudeSDKClient`, `query` does not allow the use of custom tools through MCP servers which I require.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。