inbox wording cleanup
This commit is contained in:
+11
-11
@@ -32,8 +32,8 @@ type askArgs struct {
|
||||
func (m *Manager) askTool(l *live) mcp.Tool {
|
||||
return mcp.Tool{
|
||||
Name: "ask_human",
|
||||
Description: "Ask the human a question through their inbox. Use this for every question; never ask in plain prose. " +
|
||||
"The human answers from their inbox without having read your transcript, so every question must stand on its own: " +
|
||||
Description: "Ask the human a question. Use this for every question; never ask in plain prose. " +
|
||||
"The human may answer without having read your transcript, so every question must stand on its own: " +
|
||||
"put the background they need in context. " +
|
||||
"Write the choices inline in context as Markdown list items: " +
|
||||
"`- ( ) choice` for pick-one choices (mark the one you recommend `- (*) choice`), or " +
|
||||
@@ -163,7 +163,7 @@ func (m *Manager) ask(ctx context.Context, l *live, raw json.RawMessage) (string
|
||||
slog.Error("answer question while away", "item", id, "user", creator.Login, "err", err)
|
||||
}
|
||||
|
||||
filed := fmt.Sprintf("Question filed in the human's inbox. question_id: %s. ", id)
|
||||
filed := fmt.Sprintf("Question filed for the human. question_id: %s. ", id)
|
||||
rest := fmt.Sprintf("The answer will arrive as your next message. "+
|
||||
"If the human answers it some other way, such as in a chat message, withdraw it with cancel_question and question_id %q.", id)
|
||||
|
||||
@@ -207,8 +207,8 @@ type cancelArgs struct {
|
||||
func (m *Manager) cancelQuestionTool(l *live) mcp.Tool {
|
||||
return mcp.Tool{
|
||||
Name: "cancel_question",
|
||||
Description: "Withdraw a question you asked with ask_human that is still waiting in the human's inbox, " +
|
||||
"for example because the human answered it in a chat message instead. It is removed from the inbox and no answer to it will arrive.",
|
||||
Description: "Withdraw a question you asked with ask_human that is still waiting for an answer, " +
|
||||
"for example because the human answered it in a chat message instead. It is removed and no answer to it will arrive.",
|
||||
InputSchema: json.RawMessage(`{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -247,7 +247,7 @@ func (m *Manager) cancelQuestion(ctx context.Context, l *live, raw json.RawMessa
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return fmt.Sprintf("Question %s withdrawn from the human's inbox.", item.Id), nil
|
||||
return fmt.Sprintf("Question %s withdrawn.", item.Id), nil
|
||||
}
|
||||
|
||||
func (m *Manager) validateAsk(ctx context.Context, l *live, args askArgs) error {
|
||||
@@ -529,13 +529,13 @@ func responseIDs(pending []store.Pending) []string {
|
||||
|
||||
func deliveryMessage(pending []store.Pending) string {
|
||||
b := &strings.Builder{}
|
||||
b.WriteString("Responses from your inbox:\n")
|
||||
|
||||
for _, p := range pending {
|
||||
for i, p := range pending {
|
||||
r := p.Response
|
||||
b.WriteString("\n")
|
||||
if i > 0 {
|
||||
b.WriteString("\n")
|
||||
}
|
||||
|
||||
fmt.Fprintf(b, "Your question %s: %s\n", p.Item.Id, p.Item.Payload["question"])
|
||||
fmt.Fprintf(b, "You asked: %s\n", p.Item.Payload["question"])
|
||||
|
||||
switch r.Type {
|
||||
case api.Option:
|
||||
|
||||
Reference in New Issue
Block a user