Appearance
politiclaw_record_stance_signal
- Label: Record PolitiClaw stance signal
- Group: Configuration and preferences
- Source file:
packages/politiclaw-plugin/src/tools/preferences.ts
Description
Record a single agree/disagree/skip signal from the user on a specific bill. Rep scoring reads the latest agree/disagree signal per bill to decide whether a rep's vote was aligned or conflicted. For first-time setup or full reconfiguration, prefer politiclaw_configure.
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
direction | yes | "agree" | "disagree" | "skip" | |
source | yes | "onboarding" | "monitoring" | "dashboard" | "review" | |
billId | yes | string | Bill id this signal applies to. |
weight | no | number | Signal strength (> 0); defaults to 1.0. |
Raw Schema
json
{
"type": "object",
"required": [
"direction",
"source",
"billId"
],
"properties": {
"direction": {
"anyOf": [
{
"const": "agree",
"type": "string"
},
{
"const": "disagree",
"type": "string"
},
{
"const": "skip",
"type": "string"
}
]
},
"source": {
"anyOf": [
{
"const": "onboarding",
"type": "string"
},
{
"const": "monitoring",
"type": "string"
},
{
"const": "dashboard",
"type": "string"
},
{
"const": "review",
"type": "string"
}
]
},
"billId": {
"description": "Bill id this signal applies to.",
"type": "string"
},
"weight": {
"exclusiveMinimum": 0,
"description": "Signal strength (> 0); defaults to 1.0.",
"type": "number"
}
}
}