リファレンス › AI — 4 個のコマンド
promptai
入力: prompt (word or list)
出力: none
Initializes an AI session with role or behavior instructions. The prompt defines how the AI should behave in subsequent interactions. The session is stored internally for use by other AI commands. See instructai, interactai, askai, resetai
promptai |You are playing a game of five-card poker. The cards are represented by two characters, the number of the card and the suit, eg 3H for three of hearts.|
instructai
入力: state (word or list)
出力: none
Sends state information to the current AI session. Use this to inform the AI about the current turtleSpaces environment or any relevant context. Requires an active AI session (call promptai first). See promptai, interactai, resetai
instructai [The turtle is at position 0 0 0 facing north.]
interactai
入力: prompt (word or list)
出力: list
Sends a prompt to the AI and receives Logo code or data in response. The AI response is parsed as Logo code and returned as a list that can be run or processed. Requires an active AI session (call promptai first). See promptai, instructai, resetai
make "discard interactai (
phrase |Here are your cards:| :p1
|. Select the cards to replace by their names (eg AS).|
)
resetai
入力: none
出力: none
Ends and deletes the current AI session. Has no effect if no session is active. Use this to start fresh with a new AI context. See promptai, instructai, interactai
resetai