Skip to content
pi-c Artifact [0bc6560816]
Login

Artifact [0bc6560816]

Artifact 0bc6560816c845c68c412c1ad73554b19e835a5e03bd3e9a669061c197612ec3:


Questions

Sometimes a conversation cannot go on until a person answers: the model asked to start a loop or a goal, and it waits for your OK. pic keeps each such question in the journal until one answer comes, so it survives a crash or a closed terminal, and you can answer it from wherever you are: the terminal, a phone, another shell, or a program on pic --mode rpc. The first answer is the one that counts; any later one is refused and told what was answered, and by whom.

A question is one of three kinds:

In the terminal

The interface puts a question of its conversation to you in one line as soon as it is asked. For a yes or no, y and n answer; for a choice, type to narrow the list and Enter picks; for text, type it and press Enter. Esc leaves it waiting, to answer later from anywhere. A loop or goal the model asked for is asked as before (loops).

From a shell

pic answer lists the questions every conversation of the workspace is waiting on: id, conversation, kind, title and the choices. pic answer 3 true answers question 3; a choice is given by its text (pic answer 4 dev), and text as it is. pic loop approve L2 and pic loop decline L2 answer a loop's OK too.

pic attach shows a question of the conversation it follows as it is asked, as Pi's extension_ui_request in JSON and as a line in text. With -i, Pi's extension_ui_response line ({"type":"extension_ui_response","id":"3","confirmed":true}) answers it.

On a phone

With remote control on, the phone shows each question as a card with its answers, and sends a notification when one is asked.

In RPC mode

get_asks lists the conversation's questions and answer_ask answers one; Pi's extension_ui_response answers one by its id (RPC commands).

When nobody answers

A question waits for 7 days, then closes unanswered. A loop stopped while it waits for your OK takes its question with it. If pic stops while it waits, the question stays open: answer it, and the next pic to take up the conversation goes on with that answer, without asking again.