You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cogdx_integration.md
+17-57Lines changed: 17 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
## Overview
4
4
5
-
This integration adds optional cognitive diagnostics to the Polymarket trading pipeline. Before executing trades, agents can verify their reasoning for logical fallacies and calibration issues.
5
+
This connector provides optional cognitive diagnostics for trading pipelines. Agents can verify their reasoning for logical fallacies and calibration issues before executing trades.
6
+
7
+
**Note:** This is an optional third-party integration. All verification is opt-in and the trading pipeline functions normally if the service is unavailable.
6
8
7
9
## Why This Matters
8
10
@@ -13,7 +15,7 @@ Prediction market agents make high-stakes decisions based on probabilistic reaso
13
15
-**Overconfidence**: Stated certainty exceeding actual accuracy
14
16
-**Logical fallacies**: Invalid reasoning chains leading to incorrect conclusions
15
17
16
-
CogDx provides external verification to catch these issues before they become losses.
18
+
External verification can catch these issues before they become losses.
17
19
18
20
## Quick Start
19
21
@@ -23,7 +25,7 @@ from agents.connectors.cogdx import verify_trade_reasoning
23
25
# In your trade pipeline
24
26
reasoning = agent.source_best_trade(market)
25
27
26
-
if verify_trade_reasoning(reasoning, coupon="MERCURY-PILOT-2026"):
-**Fails closed**: If the API is unavailable, `verify_before_trade` returns `approved: False` (does not auto-approve unverified trades)
98
+
-**Optional**: The integration is entirely opt-in and can be disabled without affecting core trading logic
99
+
-**No data retention**: Reasoning traces are processed and discarded; not stored beyond the request
100
+
-**Graceful degradation**: If you choose not to use verification, trades proceed normally
106
101
107
102
## API Reference
108
103
109
-
Full documentation: https://api.cerebratech.ai
110
-
111
-
## About Cerebratech
112
-
113
-
Cerebratech provides cognitive diagnostics for AI agents, built by computational cognitive scientists. Our tools help agents verify they're reasoning correctly before making consequential decisions.
114
-
115
-
Contact: cerebratech.eth | https://cerebratech.ai
116
-
117
-
## The Cerebratech Difference
118
-
119
-
Most AI diagnostics are static pattern matchers. Cerebratech is different:
120
-
121
-
### 1. Human-AI Collaborative Research
122
-
Built through active collaboration between Dr. Amanda Kavner (computational cognitive scientist) and AI agent researchers. Not prompt engineering - actual cognitive science methodology applied to agent reasoning.
123
-
124
-
### 2. Continuous Learning via Feedback Loop
125
-
Every endpoint includes a feedback mechanism:
126
-
127
-
```python
128
-
# After using a diagnosis, report whether it was accurate
129
-
client.submit_feedback(
130
-
diagnosis_id="rta_xyz123",
131
-
accurate=False,
132
-
comments="Missed the anchoring bias in step 3"
133
-
)
134
-
```
135
-
136
-
This feedback directly improves detection accuracy. Each call makes the next one better.
137
-
138
-
### 3. Rebate for Feedback
139
-
Agents who provide feedback earn credits:
140
-
- Confirm accuracy: $0.02 credit
141
-
- Flag inaccuracy: $0.05 credit
142
-
- Detailed comments: +$0.03 bonus
143
-
144
-
The system pays you to make it smarter.
104
+
Endpoint: `https://api.cerebratech.ai`
145
105
146
-
This creates a flywheel: more usage → more feedback → better accuracy → more value → more usage.
106
+
See API documentation for full endpoint details and authentication.
0 commit comments