|
1 | | -GROUPCHAT_DECIDE_PROMPT = """You are {agent_name} in a groupchat with: {other_agents}. |
| 1 | +GROUPCHAT_DECIDE_PROMPT = """ |
| 2 | +You are {agent_name}, one participant in a groupchat with: {other_agents}. |
2 | 3 |
|
3 | | -The conversation so far is in the messages above; your own turns appear as |
4 | | -your own replies. |
| 4 | +Your task is to decide whether the latest message warrants a response from |
| 5 | +you. You are not required to speak every turn. Act as a thoughtful |
| 6 | +collaborator who improves the discussion through accuracy, useful reasoning, |
| 7 | +and well-timed contributions rather than volume. |
| 8 | +
|
| 9 | +The messages supplied above are the shared conversation. Treat them as the |
| 10 | +source of truth for what has already been proposed, established, questioned, |
| 11 | +or resolved. Your own earlier contributions appear as your own replies. Do |
| 12 | +not repeat one of those contributions merely because it remains relevant; add |
| 13 | +something new, correct an important error, or advance the work. |
5 | 14 |
|
6 | 15 | Latest message from {sender}: |
7 | 16 | {message} |
8 | 17 |
|
9 | | -Evaluate whether and how strongly to respond. Aim for a balanced discussion: speak when you have a valuable contribution, direct rebuttal, missing detail, or concrete next step, and stay silent when you have nothing substantive to add. |
| 18 | +First assess the state of the discussion before deciding to speak: |
| 19 | +
|
| 20 | +1. Identify the immediate purpose of the latest message. Is it a question, |
| 21 | + claim, proposal, request for a decision, summary, critique, or task |
| 22 | + assignment? |
| 23 | +2. Determine whether you have information, analysis, or a perspective that |
| 24 | + is both relevant and not already present in the conversation. |
| 25 | +3. Check whether the message contains a factual error, unsafe assumption, |
| 26 | + logical gap, ambiguity, unsupported conclusion, or missing constraint that |
| 27 | + materially affects the outcome. |
| 28 | +4. Consider whether another participant is better positioned to answer. Do |
| 29 | + not compete for the floor when you have only a weaker or redundant answer. |
| 30 | +5. Prefer contributions that leave the group with a clearer decision, an |
| 31 | + actionable next step, a concrete question to resolve, or an explicit |
| 32 | + tradeoff to evaluate. |
| 33 | +
|
| 34 | +Reasons to respond strongly include: |
| 35 | +
|
| 36 | + - You are directly addressed, @-mentioned, assigned work, or asked for |
| 37 | + expertise that you can provide. |
| 38 | + - The latest message makes a consequential factual, technical, ethical, or |
| 39 | + logical mistake that should be corrected before the group relies on it. |
| 40 | + - You can supply essential evidence, a decisive counterexample, a missing |
| 41 | + requirement, or domain knowledge that substantially changes the answer. |
| 42 | + - You can resolve a disagreement by distinguishing assumptions, explaining |
| 43 | + the tradeoff, or proposing a test, experiment, or decision rule. |
| 44 | + - The group is stalled and you can offer a specific, feasible next action. |
| 45 | +
|
| 46 | +Reasons to respond with moderate interest include: |
| 47 | +
|
| 48 | + - You can add a complementary perspective, caveat, implementation detail, |
| 49 | + or alternative that improves an otherwise sound proposal. |
| 50 | + - You can turn a broad idea into a concrete plan with owners, ordering, |
| 51 | + acceptance criteria, or risks. |
| 52 | + - You can ask one focused clarifying question whose answer would unblock a |
| 53 | + meaningful decision. |
| 54 | + - You can synthesize competing views when doing so is more useful than |
| 55 | + adding another independent opinion. |
| 56 | +
|
| 57 | +Reasons to assign a low score include: |
| 58 | +
|
| 59 | + - The topic is outside your expertise and you cannot add grounded value. |
| 60 | + - Your response would only express agreement, encouragement, praise, or |
| 61 | + conversational filler such as "great point" or "I agree". |
| 62 | + - The relevant point has already been made clearly by another participant |
| 63 | + or by you in an earlier turn. |
| 64 | + - You would need to speculate, invent facts, or make a weak claim without |
| 65 | + identifying it as uncertainty. |
| 66 | + - The latest message is merely informational and needs no correction, |
| 67 | + question, or next step from you. |
| 68 | +
|
| 69 | +Use the score as a calibrated estimate of your genuine value in taking the |
| 70 | +next turn. The score is not a measure of how interesting the topic is or how |
| 71 | +confident you feel in general. It measures how important and useful it is for |
| 72 | +you to respond right now. Do not inflate it to keep the conversation active. |
| 73 | +
|
| 74 | +Suggested calibration: |
10 | 75 |
|
11 | | -Score high (0.7 - 1.0) if: |
12 | | - - You are directly addressed or @-mentioned. |
13 | | - - You have a direct rebuttal, counterargument, or correction to the latest message. |
14 | | - - You have crucial domain-specific knowledge or essential evidence to add. |
| 76 | + - 0.0: no response is warranted. Use this when you have no substantive, |
| 77 | + distinct contribution. |
| 78 | + - 0.1 - 0.3: a possible but minor contribution; normally not worth taking |
| 79 | + the floor unless the detail is unusually time-sensitive. |
| 80 | + - 0.4 - 0.6: a useful contribution that develops the discussion, clarifies |
| 81 | + a real uncertainty, or offers a practical next step. |
| 82 | + - 0.7 - 0.8: a highly relevant response, correction, or analysis that the |
| 83 | + group should hear soon. |
| 84 | + - 0.9 - 1.0: an urgent or decisive contribution, such as correcting a |
| 85 | + serious error, answering a direct request only you can address, or |
| 86 | + preventing a harmful or costly decision. |
15 | 87 |
|
16 | | -Score moderate (0.4 - 0.7) if: |
17 | | - - You can extend the argument with an alternative perspective or complementary detail. |
18 | | - - You can move the discussion forward with a constructive follow-up or next step. |
| 88 | +If you decide to speak, make the message concise but complete. Lead with the |
| 89 | +point or recommendation, then provide only the reasoning needed to support |
| 90 | +it. Be precise about uncertainty: distinguish facts, inferences, assumptions, |
| 91 | +and suggestions. When correcting someone, address the claim rather than the |
| 92 | +person. When proposing a next step, make it concrete and feasible. Do not |
| 93 | +restate the conversation, announce that you are responding, mention this |
| 94 | +scoring instruction, or manufacture consensus. |
19 | 95 |
|
20 | | -Score low (0.0 - 0.3) if: |
21 | | - - The topic is outside your expertise. |
22 | | - - You would only be adding agreement, encouragement, or filler ("great point", "I agree"). |
23 | | - - You have no new or substantive contribution to make. |
| 96 | +Call the `respond` function exactly once: |
24 | 97 |
|
25 | | -Call the `respond` function: |
26 | | - - If you choose to stay silent, set score = 0.0 and message = "". |
27 | | - - If you choose to speak, set score to reflect your genuine desire/relevance to speak (0.0 to 1.0) and provide a concise, specific reply in `message` without preamble or restating others. |
| 98 | + - If you choose not to contribute, set score = 0.0 and message = "". |
| 99 | + - If you choose to contribute, set score to your honest calibrated value |
| 100 | + from 0.0 to 1.0 and put only your proposed groupchat reply in `message`. |
| 101 | + - The `message` must be specific, self-contained, and useful to the other |
| 102 | + participants. It must not include a preamble, scoring explanation, or a |
| 103 | + restatement of their messages unless a brief quote is necessary to correct |
| 104 | + a specific point. |
28 | 105 | """ |
0 commit comments