Skip to content

Commit d0761f3

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v3.6.0 from ks-backend
1 parent a784b51 commit d0761f3

26 files changed

Lines changed: 1866 additions & 5 deletions

‎.openapi-generator/FILES‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ docs/DataSourceTableResponse.md
123123
docs/DataSourcesApi.md
124124
docs/DefaultApi.md
125125
docs/DefinitionOutputStat.md
126+
docs/DiagnosticTraceFailureReason.md
127+
docs/DiagnosticTraceItem.md
128+
docs/DiagnosticTraceStatus.md
129+
docs/DiagnosticsApi.md
130+
docs/DiagnosticsResponse.md
126131
docs/DiffFormat.md
127132
docs/DiffRow.md
128133
docs/DiffRowType.md
@@ -376,6 +381,7 @@ docs/TimeseriesPoint.md
376381
docs/ToolDisplayType.md
377382
docs/ToolPart.md
378383
docs/ToolStatus.md
384+
docs/TraceKind.md
379385
docs/TranscriptionResponse.md
380386
docs/TranscriptionsApi.md
381387
docs/TransferOwnerRequest.md
@@ -466,6 +472,7 @@ ksapi/api/chunk_lineages_api.py
466472
ksapi/api/chunks_api.py
467473
ksapi/api/data_sources_api.py
468474
ksapi/api/default_api.py
475+
ksapi/api/diagnostics_api.py
469476
ksapi/api/document_checkout_api.py
470477
ksapi/api/document_versions_api.py
471478
ksapi/api/documents_api.py
@@ -602,6 +609,10 @@ ksapi/models/data_source_schema_response.py
602609
ksapi/models/data_source_sync_response.py
603610
ksapi/models/data_source_table_response.py
604611
ksapi/models/definition_output_stat.py
612+
ksapi/models/diagnostic_trace_failure_reason.py
613+
ksapi/models/diagnostic_trace_item.py
614+
ksapi/models/diagnostic_trace_status.py
615+
ksapi/models/diagnostics_response.py
605616
ksapi/models/diff_format.py
606617
ksapi/models/diff_row.py
607618
ksapi/models/diff_row_type.py
@@ -835,6 +846,7 @@ ksapi/models/timeseries_point.py
835846
ksapi/models/tool_display_type.py
836847
ksapi/models/tool_part.py
837848
ksapi/models/tool_status.py
849+
ksapi/models/trace_kind.py
838850
ksapi/models/transcription_response.py
839851
ksapi/models/transfer_owner_request.py
840852
ksapi/models/transfer_owner_response.py
@@ -1027,6 +1039,11 @@ test/test_data_source_table_response.py
10271039
test/test_data_sources_api.py
10281040
test/test_default_api.py
10291041
test/test_definition_output_stat.py
1042+
test/test_diagnostic_trace_failure_reason.py
1043+
test/test_diagnostic_trace_item.py
1044+
test/test_diagnostic_trace_status.py
1045+
test/test_diagnostics_api.py
1046+
test/test_diagnostics_response.py
10301047
test/test_diff_format.py
10311048
test/test_diff_row.py
10321049
test/test_diff_row_type.py
@@ -1280,6 +1297,7 @@ test/test_timeseries_point.py
12801297
test/test_tool_display_type.py
12811298
test/test_tool_part.py
12821299
test/test_tool_status.py
1300+
test/test_trace_kind.py
12831301
test/test_transcription_response.py
12841302
test/test_transcriptions_api.py
12851303
test/test_transfer_owner_request.py
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# DiagnosticTraceFailureReason
2+
3+
4+
## Enum
5+
6+
* `TOO_LARGE` (value: `'too_large'`)
7+
8+
* `CLICKHOUSE_ERROR` (value: `'clickhouse_error'`)
9+
10+
* `MALFORMED_TRACE` (value: `'malformed_trace'`)
11+
12+
* `NO_TRACE` (value: `'no_trace'`)
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+

‎docs/DiagnosticTraceItem.md‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# DiagnosticTraceItem
2+
3+
One trace of the conversation; stats and the link are null unless ready.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**status** | [**DiagnosticTraceStatus**](DiagnosticTraceStatus.md) | |
10+
**kind** | [**TraceKind**](TraceKind.md) | |
11+
**reason** | [**DiagnosticTraceFailureReason**](DiagnosticTraceFailureReason.md) | | [optional]
12+
**trace_id** | **str** | |
13+
**run_id** | **UUID** | | [optional]
14+
**thread_id** | **UUID** | | [optional]
15+
**message_id** | **UUID** | | [optional]
16+
**user_id** | **UUID** | |
17+
**started_at** | **datetime** | |
18+
**ended_at** | **datetime** | | [optional]
19+
**duration_ms** | **int** | | [optional]
20+
**model** | **str** | | [optional]
21+
**generations** | **int** | | [optional]
22+
**tool_calls** | **int** | | [optional]
23+
**subagents** | **int** | | [optional]
24+
**input_tokens** | **int** | | [optional]
25+
**output_tokens** | **int** | | [optional]
26+
**cached_tokens** | **int** | | [optional]
27+
**reasoning_tokens** | **int** | | [optional]
28+
**max_context** | **int** | | [optional]
29+
**degenerate_gens** | **int** | | [optional]
30+
**self_doubt_per_1k** | **float** | | [optional]
31+
**cache_rate** | **float** | | [optional]
32+
**reasoning_share** | **float** | | [optional]
33+
**single_tool_rate** | **float** | | [optional]
34+
**n_events** | **int** | | [optional]
35+
**metrics** | **Dict[str, object]** | | [optional]
36+
**trace_complete** | **bool** | | [optional]
37+
**corrupt_results** | **bool** | | [optional]
38+
**backend_version** | **str** | | [optional]
39+
**schema_version** | **int** | | [optional]
40+
**title** | **str** | | [optional]
41+
**path** | **str** | | [optional]
42+
**workflow_id** | **UUID** | | [optional]
43+
**workflow_name** | **str** | | [optional]
44+
**state** | **str** | | [optional]
45+
**run_label** | **str** | | [optional]
46+
**trace_url** | **str** | | [optional]
47+
**expires_in_seconds** | **int** | | [optional]
48+
49+
## Example
50+
51+
```python
52+
from ksapi.models.diagnostic_trace_item import DiagnosticTraceItem
53+
54+
# TODO update the JSON string below
55+
json = "{}"
56+
# create an instance of DiagnosticTraceItem from a JSON string
57+
diagnostic_trace_item_instance = DiagnosticTraceItem.from_json(json)
58+
# print the JSON string representation of the object
59+
print(DiagnosticTraceItem.to_json())
60+
61+
# convert the object into a dict
62+
diagnostic_trace_item_dict = diagnostic_trace_item_instance.to_dict()
63+
# create an instance of DiagnosticTraceItem from a dict
64+
diagnostic_trace_item_from_dict = DiagnosticTraceItem.from_dict(diagnostic_trace_item_dict)
65+
```
66+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
67+
68+

‎docs/DiagnosticTraceStatus.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# DiagnosticTraceStatus
2+
3+
4+
## Enum
5+
6+
* `READY` (value: `'ready'`)
7+
8+
* `PENDING` (value: `'pending'`)
9+
10+
* `FAILED` (value: `'failed'`)
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

‎docs/DiagnosticsApi.md‎

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
# ksapi.DiagnosticsApi
2+
3+
All URIs are relative to *http://localhost:8000*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**compute_thread_diagnostics**](DiagnosticsApi.md#compute_thread_diagnostics) | **POST** /v1/diagnostics/threads/{thread_id} | Compute Thread Diagnostics Handler
8+
[**compute_workflow_run_diagnostics**](DiagnosticsApi.md#compute_workflow_run_diagnostics) | **POST** /v1/diagnostics/workflow-runs/{run_id} | Compute Workflow Run Diagnostics Handler
9+
10+
11+
# **compute_thread_diagnostics**
12+
> DiagnosticsResponse compute_thread_diagnostics(thread_id)
13+
14+
Compute Thread Diagnostics Handler
15+
16+
Stats and trace links for every turn; a run's thread answers as its run.
17+
18+
### Example
19+
20+
* Api Key Authentication (cookieAuth):
21+
* Bearer Authentication (bearerAuth):
22+
23+
```python
24+
import ksapi
25+
from ksapi.models.diagnostics_response import DiagnosticsResponse
26+
from ksapi.rest import ApiException
27+
from pprint import pprint
28+
29+
# Defining the host is optional and defaults to http://localhost:8000
30+
# See configuration.py for a list of all supported configuration parameters.
31+
configuration = ksapi.Configuration(
32+
host = "http://localhost:8000"
33+
)
34+
35+
# The client must configure the authentication and authorization parameters
36+
# in accordance with the API server security policy.
37+
# Examples for each auth method are provided below, use the example that
38+
# satisfies your auth use case.
39+
40+
# Configure API key authorization: cookieAuth
41+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
42+
43+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
44+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
45+
46+
# Configure Bearer authorization: bearerAuth
47+
configuration = ksapi.Configuration(
48+
access_token = os.environ["BEARER_TOKEN"]
49+
)
50+
51+
# Enter a context with an instance of the API client
52+
with ksapi.ApiClient(configuration) as api_client:
53+
# Create an instance of the API class
54+
api_instance = ksapi.DiagnosticsApi(api_client)
55+
thread_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID |
56+
57+
try:
58+
# Compute Thread Diagnostics Handler
59+
api_response = api_instance.compute_thread_diagnostics(thread_id)
60+
print("The response of DiagnosticsApi->compute_thread_diagnostics:\n")
61+
pprint(api_response)
62+
except Exception as e:
63+
print("Exception when calling DiagnosticsApi->compute_thread_diagnostics: %s\n" % e)
64+
```
65+
66+
67+
68+
### Parameters
69+
70+
71+
Name | Type | Description | Notes
72+
------------- | ------------- | ------------- | -------------
73+
**thread_id** | **UUID**| |
74+
75+
### Return type
76+
77+
[**DiagnosticsResponse**](DiagnosticsResponse.md)
78+
79+
### Authorization
80+
81+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
82+
83+
### HTTP request headers
84+
85+
- **Content-Type**: Not defined
86+
- **Accept**: application/json
87+
88+
### HTTP response details
89+
90+
| Status code | Description | Response headers |
91+
|-------------|-------------|------------------|
92+
**200** | Successful Response | - |
93+
**422** | Validation Error | - |
94+
**0** | Error response. | - |
95+
96+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
97+
98+
# **compute_workflow_run_diagnostics**
99+
> DiagnosticsResponse compute_workflow_run_diagnostics(run_id)
100+
101+
Compute Workflow Run Diagnostics Handler
102+
103+
Stats and trace links for the run's attempts and every turn in its thread.
104+
105+
### Example
106+
107+
* Api Key Authentication (cookieAuth):
108+
* Bearer Authentication (bearerAuth):
109+
110+
```python
111+
import ksapi
112+
from ksapi.models.diagnostics_response import DiagnosticsResponse
113+
from ksapi.rest import ApiException
114+
from pprint import pprint
115+
116+
# Defining the host is optional and defaults to http://localhost:8000
117+
# See configuration.py for a list of all supported configuration parameters.
118+
configuration = ksapi.Configuration(
119+
host = "http://localhost:8000"
120+
)
121+
122+
# The client must configure the authentication and authorization parameters
123+
# in accordance with the API server security policy.
124+
# Examples for each auth method are provided below, use the example that
125+
# satisfies your auth use case.
126+
127+
# Configure API key authorization: cookieAuth
128+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
129+
130+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
131+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
132+
133+
# Configure Bearer authorization: bearerAuth
134+
configuration = ksapi.Configuration(
135+
access_token = os.environ["BEARER_TOKEN"]
136+
)
137+
138+
# Enter a context with an instance of the API client
139+
with ksapi.ApiClient(configuration) as api_client:
140+
# Create an instance of the API class
141+
api_instance = ksapi.DiagnosticsApi(api_client)
142+
run_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID |
143+
144+
try:
145+
# Compute Workflow Run Diagnostics Handler
146+
api_response = api_instance.compute_workflow_run_diagnostics(run_id)
147+
print("The response of DiagnosticsApi->compute_workflow_run_diagnostics:\n")
148+
pprint(api_response)
149+
except Exception as e:
150+
print("Exception when calling DiagnosticsApi->compute_workflow_run_diagnostics: %s\n" % e)
151+
```
152+
153+
154+
155+
### Parameters
156+
157+
158+
Name | Type | Description | Notes
159+
------------- | ------------- | ------------- | -------------
160+
**run_id** | **UUID**| |
161+
162+
### Return type
163+
164+
[**DiagnosticsResponse**](DiagnosticsResponse.md)
165+
166+
### Authorization
167+
168+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
169+
170+
### HTTP request headers
171+
172+
- **Content-Type**: Not defined
173+
- **Accept**: application/json
174+
175+
### HTTP response details
176+
177+
| Status code | Description | Response headers |
178+
|-------------|-------------|------------------|
179+
**200** | Successful Response | - |
180+
**422** | Validation Error | - |
181+
**0** | Error response. | - |
182+
183+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
184+

‎docs/DiagnosticsResponse.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# DiagnosticsResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**final** | **bool** | True when no item is pending. |
9+
**traces** | [**List[DiagnosticTraceItem]**](DiagnosticTraceItem.md) | |
10+
11+
## Example
12+
13+
```python
14+
from ksapi.models.diagnostics_response import DiagnosticsResponse
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of DiagnosticsResponse from a JSON string
19+
diagnostics_response_instance = DiagnosticsResponse.from_json(json)
20+
# print the JSON string representation of the object
21+
print(DiagnosticsResponse.to_json())
22+
23+
# convert the object into a dict
24+
diagnostics_response_dict = diagnostics_response_instance.to_dict()
25+
# create an instance of DiagnosticsResponse from a dict
26+
diagnostics_response_from_dict = DiagnosticsResponse.from_dict(diagnostics_response_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

‎docs/TraceKind.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TraceKind
2+
3+
4+
## Enum
5+
6+
* `WORKFLOW_RUN` (value: `'workflow_run'`)
7+
8+
* `CHAT_TURN` (value: `'chat_turn'`)
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

0 commit comments

Comments
 (0)