This commit is contained in:
@@ -48,15 +48,21 @@
|
||||
"person play theirs.\n"
|
||||
"\n"))
|
||||
|
||||
(def examples
|
||||
"Shared with tbd.agent.instructions/chat."
|
||||
(defn examples
|
||||
"Shared with tbd.agent.instructions/chat. `reads?` is whether looking something up (a todo's id,
|
||||
the board) takes its own call first (an outside agent's list_todos/get_tic_tac_toe) or is
|
||||
already in view (the chatbot's state, tbd.chat.schema/RunAgentInput's `state`) — the one place
|
||||
the two agents' examples differ."
|
||||
[reads?]
|
||||
(str "Examples:\n"
|
||||
"\"add a todo to buy milk\" -> create_todo{\"todos\":[{\"title\":\"buy milk\"}]} -> \"Added.\"\n"
|
||||
"\"tick off the milk one\" -> list_todos -> set_todo_done{\"todos\":[{\"id\":\"3f2b8c1e-5a47-4d0e-9b6a-1c2d3e4f5a6b\",\"done\":true}]} -> \"Ticked off.\"\n"
|
||||
"\"untick all my todos\" -> list_todos -> ONE set_todo_done with every todo in \"todos\" -> \"Unticked them all.\"\n"
|
||||
"\"tick off the milk one\" -> " (when reads? "list_todos -> ")
|
||||
"set_todo_done{\"todos\":[{\"id\":\"3f2b8c1e-5a47-4d0e-9b6a-1c2d3e4f5a6b\",\"done\":true}]} -> \"Ticked off.\"\n"
|
||||
"\"untick all my todos\" -> " (when reads? "list_todos -> ") "ONE set_todo_done with every todo in \"todos\" -> "
|
||||
"\"Unticked them all.\"\n"
|
||||
"\"add milk and eggs\" -> ONE create_todo with both titles in \"todos\" -> \"Added both.\"\n"
|
||||
"\"what's 19 and 4?\" -> add{\"x\":19,\"y\":4} -> \"23.\"\n"
|
||||
"\"play tic tac toe, you're O\" -> get_tic_tac_toe -> it is X's turn -> \"You're up, X starts.\""))
|
||||
"\"play tic tac toe, you're O\" -> " (when reads? "get_tic_tac_toe -> ") "it is X's turn -> \"You're up, X starts.\""))
|
||||
|
||||
;; --- An MCP client outside the page (Claude, Codex) ---
|
||||
|
||||
@@ -85,7 +91,7 @@
|
||||
"tell them so.\n"
|
||||
"\n"
|
||||
tic-tac-toe-rules
|
||||
examples))
|
||||
(examples true)))
|
||||
|
||||
(defn task
|
||||
"The prompt that hands an outside agent a job on the page: `guide`, then the user's `request` if
|
||||
|
||||
Reference in New Issue
Block a user