Skip to content

Commit 6869e2f

Browse files
authored
Merge pull request #3 from RoboFinSystems/release/0.1.11
Release v0.1.11 - Terminology Updates and Credit Model Changes
2 parents 00c2d19 + 83807e3 commit 6869e2f

45 files changed

Lines changed: 693 additions & 470 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"group": "build"
1818
},
1919
{
20-
"label": "Generate Client",
20+
"label": "Generate SDK",
2121
"type": "shell",
22-
"command": "just generate-client ${input:apiUrl}",
22+
"command": "just generate-sdk ${input:apiUrl}",
2323
"problemMatcher": [],
2424
"group": "build"
2525
},

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ clean:
7171
find . -type d -name "__pycache__" -exec rm -rf {} +
7272
find . -type f -name "*.pyc" -delete
7373

74-
# Generate Client from localhost API
75-
generate-client url="http://localhost:8000/openapi.json":
74+
# Generate SDK from localhost API
75+
generate-sdk url="http://localhost:8000/openapi.json":
7676
@echo "🚀 Generating Client from {{url}}..."
7777
rm -rf generated
7878
openapi-python-client generate --url {{url}} --output-path generated --config robosystems_client/sdk-config.yaml

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "robosystems-client"
3-
version = "0.1.10"
3+
version = "0.1.11"
44
description = "Python Client for RoboSystems financial graph database API"
55
readme = "README.md"
66
requires-python = ">=3.10"

robosystems_client/api/agent/query_financial_agent.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ def sync_detailed(
137137
- Fallback to status polling endpoint if SSE unavailable
138138
139139
**Credit Consumption:**
140-
- Variable based on complexity: 3-60 credits
141-
- Simple queries: 3-15 credits
142-
- Complex analysis: 15-60 credits
143-
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
140+
- AI operations consume credits based on actual token usage
141+
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
142+
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
143+
- Credits are consumed after operation completes based on actual usage
144144
145145
The agent automatically determines query complexity or you can force extended analysis.
146146
@@ -224,10 +224,10 @@ def sync(
224224
- Fallback to status polling endpoint if SSE unavailable
225225
226226
**Credit Consumption:**
227-
- Variable based on complexity: 3-60 credits
228-
- Simple queries: 3-15 credits
229-
- Complex analysis: 15-60 credits
230-
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
227+
- AI operations consume credits based on actual token usage
228+
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
229+
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
230+
- Credits are consumed after operation completes based on actual usage
231231
232232
The agent automatically determines query complexity or you can force extended analysis.
233233
@@ -306,10 +306,10 @@ async def asyncio_detailed(
306306
- Fallback to status polling endpoint if SSE unavailable
307307
308308
**Credit Consumption:**
309-
- Variable based on complexity: 3-60 credits
310-
- Simple queries: 3-15 credits
311-
- Complex analysis: 15-60 credits
312-
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
309+
- AI operations consume credits based on actual token usage
310+
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
311+
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
312+
- Credits are consumed after operation completes based on actual usage
313313
314314
The agent automatically determines query complexity or you can force extended analysis.
315315
@@ -391,10 +391,10 @@ async def asyncio(
391391
- Fallback to status polling endpoint if SSE unavailable
392392
393393
**Credit Consumption:**
394-
- Variable based on complexity: 3-60 credits
395-
- Simple queries: 3-15 credits
396-
- Complex analysis: 15-60 credits
397-
- Multiplied by graph tier (standard=1x, enterprise=2x, premium=4x)
394+
- AI operations consume credits based on actual token usage
395+
- Claude 4 Opus: ~15 credits per 1K input tokens, ~75 credits per 1K output tokens
396+
- Claude 4 Sonnet: ~3 credits per 1K input tokens, ~15 credits per 1K output tokens
397+
- Credits are consumed after operation completes based on actual usage
398398
399399
The agent automatically determines query complexity or you can force extended analysis.
400400

robosystems_client/api/backup/create_backup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ def _parse_response(
5050
response_400 = ErrorResponse.from_dict(response.json())
5151

5252
return response_400
53-
if response.status_code == 402:
54-
response_402 = ErrorResponse.from_dict(response.json())
55-
56-
return response_402
5753
if response.status_code == 403:
5854
response_403 = ErrorResponse.from_dict(response.json())
5955

robosystems_client/api/backup/export_backup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ def _parse_response(
4545
if response.status_code == 200:
4646
response_200 = response.json()
4747
return response_200
48-
if response.status_code == 402:
49-
response_402 = cast(Any, None)
50-
return response_402
5148
if response.status_code == 403:
5249
response_403 = cast(Any, None)
5350
return response_403

robosystems_client/api/backup/get_backup_download_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _get_kwargs(
3636

3737
_kwargs: dict[str, Any] = {
3838
"method": "get",
39-
"url": f"/v1/{graph_id}/backup/{backup_id}/download-url",
39+
"url": f"/v1/{graph_id}/backup/{backup_id}/download",
4040
"params": params,
4141
"cookies": cookies,
4242
}

robosystems_client/api/backup/restore_backup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ def _parse_response(
5050
response_400 = ErrorResponse.from_dict(response.json())
5151

5252
return response_400
53-
if response.status_code == 402:
54-
response_402 = ErrorResponse.from_dict(response.json())
55-
56-
return response_402
5753
if response.status_code == 403:
5854
response_403 = ErrorResponse.from_dict(response.json())
5955

robosystems_client/api/connections/create_connection.py

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ def _parse_response(
5252
response_400 = ErrorResponse.from_dict(response.json())
5353

5454
return response_400
55-
if response.status_code == 402:
56-
response_402 = ErrorResponse.from_dict(response.json())
57-
58-
return response_402
5955
if response.status_code == 403:
6056
response_403 = ErrorResponse.from_dict(response.json())
6157

@@ -118,10 +114,8 @@ def sync_detailed(
118114
- User completes bank authentication
119115
- Exchange public token for access
120116
121-
Credit consumption:
122-
- Base cost: 5.0 credits
123-
- Multiplied by graph tier
124-
- Additional credits consumed during data sync
117+
Note:
118+
This operation is FREE - no credit consumption required.
125119
126120
Args:
127121
graph_id (str): Graph database identifier
@@ -180,10 +174,8 @@ def sync(
180174
- User completes bank authentication
181175
- Exchange public token for access
182176
183-
Credit consumption:
184-
- Base cost: 5.0 credits
185-
- Multiplied by graph tier
186-
- Additional credits consumed during data sync
177+
Note:
178+
This operation is FREE - no credit consumption required.
187179
188180
Args:
189181
graph_id (str): Graph database identifier
@@ -237,10 +229,8 @@ async def asyncio_detailed(
237229
- User completes bank authentication
238230
- Exchange public token for access
239231
240-
Credit consumption:
241-
- Base cost: 5.0 credits
242-
- Multiplied by graph tier
243-
- Additional credits consumed during data sync
232+
Note:
233+
This operation is FREE - no credit consumption required.
244234
245235
Args:
246236
graph_id (str): Graph database identifier
@@ -297,10 +287,8 @@ async def asyncio(
297287
- User completes bank authentication
298288
- Exchange public token for access
299289
300-
Credit consumption:
301-
- Base cost: 5.0 credits
302-
- Multiplied by graph tier
303-
- Additional credits consumed during data sync
290+
Note:
291+
This operation is FREE - no credit consumption required.
304292
305293
Args:
306294
graph_id (str): Graph database identifier

robosystems_client/api/connections/delete_connection.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ def _parse_response(
4343
response_200 = SuccessResponse.from_dict(response.json())
4444

4545
return response_200
46-
if response.status_code == 402:
47-
response_402 = ErrorResponse.from_dict(response.json())
48-
49-
return response_402
5046
if response.status_code == 403:
5147
response_403 = ErrorResponse.from_dict(response.json())
5248

@@ -98,9 +94,8 @@ def sync_detailed(
9894
- Performs provider-specific cleanup
9995
- Revokes stored credentials
10096
101-
Credit consumption:
102-
- Base cost: 2.0 credits
103-
- Multiplied by graph tier
97+
Note:
98+
This operation is FREE - no credit consumption required.
10499
105100
Only users with admin role can delete connections.
106101
@@ -150,9 +145,8 @@ def sync(
150145
- Performs provider-specific cleanup
151146
- Revokes stored credentials
152147
153-
Credit consumption:
154-
- Base cost: 2.0 credits
155-
- Multiplied by graph tier
148+
Note:
149+
This operation is FREE - no credit consumption required.
156150
157151
Only users with admin role can delete connections.
158152
@@ -197,9 +191,8 @@ async def asyncio_detailed(
197191
- Performs provider-specific cleanup
198192
- Revokes stored credentials
199193
200-
Credit consumption:
201-
- Base cost: 2.0 credits
202-
- Multiplied by graph tier
194+
Note:
195+
This operation is FREE - no credit consumption required.
203196
204197
Only users with admin role can delete connections.
205198
@@ -247,9 +240,8 @@ async def asyncio(
247240
- Performs provider-specific cleanup
248241
- Revokes stored credentials
249242
250-
Credit consumption:
251-
- Base cost: 2.0 credits
252-
- Multiplied by graph tier
243+
Note:
244+
This operation is FREE - no credit consumption required.
253245
254246
Only users with admin role can delete connections.
255247

0 commit comments

Comments
 (0)