Every method of client.room in the C++ SDK.
hand#
Raise or lower the hand · tool room_hand
Raises the person's hand in the room in front, or lowers it; every member sees it beside the username.
Declaration
client.room
Json hand(const HandArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
up | bool | required |
Returns
Json — the tool’s answer as a Json value.
What it answers
What the tool's description says.
Example
client.room.hand(RoomApi::HandArgs(true))invite#
Invite to the room in front · tool room_invite
Invites a person to the room in front, as its creator's Invite… does — by username, or by the email address they sign in with (one of the two). By username the answer is invited or no account by that name; by email it is the same for every address (whether a message went to it), and the address stays in the creator's list until the person joins. The answer lands a moment later (room_read).
Declaration
client.room
Json invite(const InviteArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
email | std::string | optional | Or the email address the person signs in with. The answer is the same whether or not an account uses it; the room waits in that person's list when they sign in with it. |
username | std::string | optional | The person's username. No link and no code exist: a room invites a person by name. |
Returns
Json — the tool’s answer as a Json value.
What it answers
What the tool's description says.
Example
client.room.invite(RoomApi::InviteArgs())invite_withdraw#
Take back an invitation by email · tool room_invite_withdraw
Takes back an invitation by email to the room in front, as the Withdraw beside the address in its creator's Invite… sheet does: the room leaves that person's list. The creator's alone; the list lands a moment later (room_read's invited).
Declaration
client.room
Json invite_withdraw(const InviteWithdrawArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
email | std::string | required | The address invited by email, as room_read's invited lists it. |
Returns
Json — the tool’s answer as a Json value.
What it answers
What the tool's description says.
Example
client.room.invite_withdraw(RoomApi::InviteWithdrawArgs("…"))list#
List my rooms · tool room_list
The rooms the person is invited to or a member of, as the Rooms area lists them — name, what each is for, whether invited, its members and unread messages — and asks the rooms service for the list again (what it answers lands a moment later; call again).
Declaration
client.room
Json list()It takes no arguments.
Returns
Json — the tool’s answer as a Json value.
What it answers
What the tool's description says.
Example
client.room.list()make#
Make a room · tool room_make
Makes a room as the Make a room… sheet does — a name, what it is for, how long it keeps its messages (no default), whose wallet pays its Energy, and the person's acceptance of what every room refuses — and opens it. Making a room needs the account's package (Pro; the beta's own switch gives it).
Declaration
client.room
Json make(const MakeArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
name | std::string | required | The room's name, 1 to 60 characters. |
preset | std::string | required | Follow, discussion or team_trading. |
retention | std::string | required | How long its messages are kept: days7, days30, days365 or kept. Chosen, never assumed. |
attests | bool | required | The person's acceptance that every room refuses broker links, asking members for their accounts and selling access elsewhere. Must be true. |
energy_payer | std::string | optional | Whose wallet pays its Energy: creator (the default) or members. |
Returns
Json — the tool’s answer as a Json value.
What it answers
What the tool's description says.
Example
client.room.make(RoomApi::MakeArgs("…", "…", "…", true))open#
Open a room · tool room_open
Opens a room the person is a member of, or a market's public symbol room (sym:<CORE>), as a press on its row does: its socket connects and its chat, members and shared workbench land a moment later (room_read).
Declaration
client.room
Json open(const OpenArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
room | std::string | required | The room's id from room_list, or sym:<CORE> for a market's public symbol room (EURUSD for EURUSD_i). |
Returns
Json — the tool’s answer as a Json value.
What it answers
What the tool's description says.
Example
client.room.open(RoomApi::OpenArgs("…"))output_shown#
Show a model's output to the room, or keep it from it · tool room_output_shown
The room creator's choice of what the room in front carries of the models' outputs on the shared laboratory workbench, as the room's output chips do: every output but text is shown by default, and one kept back reaches no member, whoever leads. Answers what the room now carries.
Declaration
client.room
Json output_shown(const OutputShownArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
model | std::string | required | The model's name, as its output names it. |
output | std::string | required | The output's name within that model. |
shown | bool | required | true: the room sees it; false: it is kept from the room. |
Returns
Json — the tool’s answer as a Json value.
What it answers
Answers what the room now carries.
Example
client.room.output_shown(RoomApi::OutputShownArgs("…", "…", true))read#
Read the room in front · tool room_read
The room in front: its name, what it is for, the person's place in it, its members (username only, present, hand), the addresses its creator invited by email and nobody has joined from yet (invited, the creator's alone), its newest messages (who, when, text, whether an agent wrote it), whether its socket is connected and whether the person follows the room's clock.
Declaration
client.room
Json read(const ReadArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
limit | int64_t | optional | At most this many of the newest messages (default 50). |
Returns
Json — the tool’s answer as a Json value.
What it answers
What the tool's description says.
Example
client.room.read(RoomApi::ReadArgs())say#
Write in the room in front · tool room_say
Writes a message in the room in front, carrying the agent mark every member sees. Every room refuses broker links, referral links and codes before a message is posted (and a symbol room any link and messaging handle); a refusal lands as the room's refused (room_read).
Declaration
client.room
Json say(const SayArgs &args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
text | std::string | required | The message, at most 4 KB of plain text. |
Returns
Json — the tool’s answer as a Json value.
What it answers
What the tool's description says.
Example
client.room.say(RoomApi::SayArgs("…"))