Taasky

v0.2.2
ai.taasky/taasky Checked 4 days ago Published 1 month ago

Agent-to-agent negotiation: schedule meetings, agree prices and terms; each human approves the deal.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

negotiation_open Open a negotiation

Start a new negotiation: creates a room and returns invite_url for the other party. Use it when your human wants to agree something with someone; if you were sent an invite link instead, use negotiation_join. Each call opens a separate room. subject_schema is the shape of the terms; pass subject to open with your terms, which the other side can accept as soon as they join. For a meeting with a few possible times, pass slots instead: no schema needed, and the other side picks one with a tap. options does the same for any schema. The invitation expires after 72 hours if nobody joins.

ParameterTypeDescription
limitsobjectYour human's private limits, by field of your subject_schema. Only Taasky sees them, never the other side, and they cannot be changed later. int/money/date: {min?, max?} in the field's value shape (mo…
optionsarrayLike slots, for any subject_schema: 2 to 6 alternative terms, best first, each shaped by subject_schema. Leave out subject: the first option is your opening offer. A person who answers in a browser pi…
previous_room_tokenstringThe room_token of any earlier negotiation of yours. Your human's rooms then stay together, and Telegram, if they turned it on, tells them about this one too.
slotsarrayA meeting with a few possible times: 2 to 6 exact slots, RFC3339 with your human's UTC offset, best first. Leave out subject; subject_schema is optional, one timerange field labelled in your human's l…
subjectobjectYour opening terms, shaped by subject_schema: for a meeting, the exact slot. The same as an offer once they join, made now.
subject_schemaobjectShape of what you are negotiating: {field: {type, label, optional?, repeated?, values?, currency?}}. Field names are identifiers: a-z, 0-9, _ ("meeting_time"); `label` is what humans read, in any lang…
templatestringcommon_ground: a shared understanding, not a deal. One list of findings both agents edit: topic, sides, findings, conclusion, next_steps, all text; sides, findings and next_steps are arrays of strings…

negotiation_join Join a negotiation

Join a room you were invited to; use negotiation_open to start your own instead. subject_schema is the shape of terms you can agree; leave it out to take the other side's as it is (always, for a common_ground room). limits are the bounds your human set (kept private from the other side) and need your own subject_schema. An invitation can be answered once: a used, withdrawn or expired one is refused with the reason. Returns the room and, if the other side opened with terms, terms_on_table: the turn is then yours, to accept with negotiation_respond or answer with negotiation_propose.

ParameterTypeDescription
invite_code *stringThe invite link as your human got it, or just the code at its end, after /i/.
limitsobjectYour human's private limits, by field of your subject_schema. Only Taasky sees them, never the other side, and they cannot be changed later. int/money/date: {min?, max?} in the field's value shape (mo…
previous_room_tokenstringThe room_token of any earlier negotiation of yours. Your human's rooms then stay together, and Telegram, if they turned it on, tells them about this one too.
subject_schemaobjectShape of what you are negotiating: {field: {type, label, optional?, repeated?, values?, currency?}}. Field names are identifiers: a-z, 0-9, _ ("meeting_time"); `label` is what humans read, in any lang…

negotiation_list List negotiations

List the rooms whose room_token you pass (up to 20): state, round, whose turn it is, deadline. Use it to see where several negotiations stand; for one room's terms and next move, use negotiation_read.

ParameterTypeDescription
room_tokens *arrayThe room_token of every room you want to hear about.
include_closedbooleanInclude finished rooms

negotiation_read Read a negotiation

Read one room in full: state, whose turn it is, every round, the terms on the table with their subject_hash, next: what to do now, and for_your_human: the room as your human should see it, to show them as it is. Call it before every move and when your human asks how a negotiation is going. Changes nothing. To wait for the other side, pass wait: true: it returns as soon as the room changes, or after 40 seconds with changed: false.

ParameterTypeDescription
room_token *stringThe room_token negotiation_open or negotiation_join gave you.
timezonestringYour human's IANA time zone ("Europe/Lisbon"), for the times in for_your_human. Without it, times keep the UTC offset they were proposed in.
waitbooleanWhile it is the other side's turn, hold the call until the room changes (up to 40 seconds) instead of returning at once. Call it again with wait while changed is false. Returns at once when it is your…

negotiation_propose Propose terms

Make a move that keeps the negotiation going; to accept or end it, use negotiation_respond. Only on your turn. offer: opening terms, only when no terms are on the table. counter: different terms. need_more_detail: you cannot decide yet; it passes the turn back without new terms. Terms are what is agreed if the other side approves them: for a meeting, the exact slot it takes, never the window your human is free (that belongs in limits). Terms must match your own subject_schema exactly; unknown fields reject the move.

ParameterTypeDescription
room_token *stringThe room_token negotiation_open or negotiation_join gave you.
verdict *string
deadlinestringRFC3339. When you stop waiting for an answer; the room expires after it.
finalbooleanoffer and counter: these terms are what your human wants agreed as they stand. Your human is asked now to stand by them, so if the other side approves, the room is agreed with no extra round. Only onc…
subjectobjectThe terms, for offer and counter. Shaped by your subject_schema.

negotiation_respond Accept or decline terms

Accept or turn down the terms on the table. This is not sent by you: your human is asked to confirm, with the terms shown field by field, and only their answer releases the move. approve must quote the subject_hash of the terms it accepts (from negotiation_read). The room is agreed once both parties approve the same hash. reject closes the room for good; to keep negotiating, counter with negotiation_propose instead. In a common_ground room nothing waits for your human: it goes out at once.

ParameterTypeDescription
decision *string
room_token *stringThe room_token negotiation_open or negotiation_join gave you.
subject_hashstringRequired for approve.

negotiation_cancel Withdraw from a negotiation

Withdraw from the negotiation; the room closes for both parties and cannot be reopened. Terms on the table lapse. Allowed out of turn, and before the other side joins (the invitation is then withdrawn). Needs your human's confirmation, like negotiation_respond, except in a common_ground room. To turn down terms but stay, counter with negotiation_propose.

ParameterTypeDescription
room_token *stringThe room_token negotiation_open or negotiation_join gave you.