@crestal/nation-sdk 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +51 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +126 -0
- package/api.ts +4195 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +3103 -0
- package/dist/api.js +2629 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +86 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +253 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +57 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AgentApi.md +167 -0
- package/docs/AgentAutonomous.md +33 -0
- package/docs/AgentExample.md +25 -0
- package/docs/AgentResponse.md +91 -0
- package/docs/AgentStatisticsResponse.md +49 -0
- package/docs/AgentUpdate.md +91 -0
- package/docs/AuthorType.md +23 -0
- package/docs/Chat.md +33 -0
- package/docs/ChatApi.md +516 -0
- package/docs/ChatMessage.md +63 -0
- package/docs/ChatMessageAttachment.md +23 -0
- package/docs/ChatMessageAttachmentType.md +13 -0
- package/docs/ChatMessageRequest.md +31 -0
- package/docs/ChatMessageSkillCall.md +35 -0
- package/docs/ChatMessagesResponse.md +25 -0
- package/docs/ChatUpdateRequest.md +21 -0
- package/docs/CreditAccount.md +45 -0
- package/docs/CreditApi.md +290 -0
- package/docs/CreditDebit.md +11 -0
- package/docs/CreditEvent.md +101 -0
- package/docs/CreditEventWithAgent.md +103 -0
- package/docs/CreditEventsResponse.md +25 -0
- package/docs/CreditTransactionResp.md +37 -0
- package/docs/CreditTransactionsResponse.md +25 -0
- package/docs/CreditType.md +13 -0
- package/docs/Direction.md +11 -0
- package/docs/EventType.md +31 -0
- package/docs/FeePercentage.md +19 -0
- package/docs/HTTPValidationError.md +20 -0
- package/docs/HealthApi.md +52 -0
- package/docs/LLMModelInfoWithProviderName.md +67 -0
- package/docs/LLMProvider.md +18 -0
- package/docs/MetadataApi.md +258 -0
- package/docs/OwnerType.md +13 -0
- package/docs/Skill.md +43 -0
- package/docs/TransactionType.md +39 -0
- package/docs/UpstreamType.md +15 -0
- package/docs/ValidationError.md +24 -0
- package/docs/ValidationErrorLocInner.md +18 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +31 -0
- package/tsconfig.json +21 -0
package/docs/AgentApi.md
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# AgentApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createAgent**](#createagent) | **POST** /agents | Create a new agent|
|
|
8
|
+
|[**getAgentById**](#getagentbyid) | **GET** /agents/{aid} | Get agent by ID|
|
|
9
|
+
|[**getAgentStatistics**](#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics|
|
|
10
|
+
|
|
11
|
+
# **createAgent**
|
|
12
|
+
> AgentResponse createAgent(agentUpdate)
|
|
13
|
+
|
|
14
|
+
Create a new agent owned by the current user. The agent will be initialized with the provided details.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
AgentApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
AgentUpdate
|
|
23
|
+
} from '@crestal/nation-sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new AgentApi(configuration);
|
|
27
|
+
|
|
28
|
+
let agentUpdate: AgentUpdate; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.createAgent(
|
|
31
|
+
agentUpdate
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **agentUpdate** | **AgentUpdate**| | |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**AgentResponse**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: application/json
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | Successful Response | - |
|
|
60
|
+
|**422** | Validation Error | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
64
|
+
# **getAgentById**
|
|
65
|
+
> AgentResponse getAgentById()
|
|
66
|
+
|
|
67
|
+
Retrieve a specific agent by its ID. Returns 404 if not found.
|
|
68
|
+
|
|
69
|
+
### Example
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import {
|
|
73
|
+
AgentApi,
|
|
74
|
+
Configuration
|
|
75
|
+
} from '@crestal/nation-sdk';
|
|
76
|
+
|
|
77
|
+
const configuration = new Configuration();
|
|
78
|
+
const apiInstance = new AgentApi(configuration);
|
|
79
|
+
|
|
80
|
+
let aid: string; //Agent ID (default to undefined)
|
|
81
|
+
|
|
82
|
+
const { status, data } = await apiInstance.getAgentById(
|
|
83
|
+
aid
|
|
84
|
+
);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
|Name | Type | Description | Notes|
|
|
90
|
+
|------------- | ------------- | ------------- | -------------|
|
|
91
|
+
| **aid** | [**string**] | Agent ID | defaults to undefined|
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Return type
|
|
95
|
+
|
|
96
|
+
**AgentResponse**
|
|
97
|
+
|
|
98
|
+
### Authorization
|
|
99
|
+
|
|
100
|
+
No authorization required
|
|
101
|
+
|
|
102
|
+
### HTTP request headers
|
|
103
|
+
|
|
104
|
+
- **Content-Type**: Not defined
|
|
105
|
+
- **Accept**: application/json
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### HTTP response details
|
|
109
|
+
| Status code | Description | Response headers |
|
|
110
|
+
|-------------|-------------|------------------|
|
|
111
|
+
|**200** | Successful Response | - |
|
|
112
|
+
|**422** | Validation Error | - |
|
|
113
|
+
|
|
114
|
+
[[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)
|
|
115
|
+
|
|
116
|
+
# **getAgentStatistics**
|
|
117
|
+
> AgentStatisticsResponse getAgentStatistics()
|
|
118
|
+
|
|
119
|
+
Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
120
|
+
|
|
121
|
+
### Example
|
|
122
|
+
|
|
123
|
+
```typescript
|
|
124
|
+
import {
|
|
125
|
+
AgentApi,
|
|
126
|
+
Configuration
|
|
127
|
+
} from '@crestal/nation-sdk';
|
|
128
|
+
|
|
129
|
+
const configuration = new Configuration();
|
|
130
|
+
const apiInstance = new AgentApi(configuration);
|
|
131
|
+
|
|
132
|
+
let aid: string; //ID of the agent (default to undefined)
|
|
133
|
+
|
|
134
|
+
const { status, data } = await apiInstance.getAgentStatistics(
|
|
135
|
+
aid
|
|
136
|
+
);
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Parameters
|
|
140
|
+
|
|
141
|
+
|Name | Type | Description | Notes|
|
|
142
|
+
|------------- | ------------- | ------------- | -------------|
|
|
143
|
+
| **aid** | [**string**] | ID of the agent | defaults to undefined|
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
**AgentStatisticsResponse**
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
No authorization required
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: Not defined
|
|
157
|
+
- **Accept**: application/json
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### HTTP response details
|
|
161
|
+
| Status code | Description | Response headers |
|
|
162
|
+
|-------------|-------------|------------------|
|
|
163
|
+
|**200** | Successful Response | - |
|
|
164
|
+
|**422** | Validation Error | - |
|
|
165
|
+
|
|
166
|
+
[[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)
|
|
167
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# AgentAutonomous
|
|
2
|
+
|
|
3
|
+
Autonomous agent configuration.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Unique identifier for the autonomous configuration | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**minutes** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**cron** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**prompt** | **string** | Special prompt used during autonomous operation | [default to undefined]
|
|
15
|
+
**enabled** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { AgentAutonomous } from '@crestal/nation-sdk';
|
|
21
|
+
|
|
22
|
+
const instance: AgentAutonomous = {
|
|
23
|
+
id,
|
|
24
|
+
name,
|
|
25
|
+
description,
|
|
26
|
+
minutes,
|
|
27
|
+
cron,
|
|
28
|
+
prompt,
|
|
29
|
+
enabled,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# AgentExample
|
|
2
|
+
|
|
3
|
+
Agent example configuration.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | Name of the example | [default to undefined]
|
|
10
|
+
**description** | **string** | Description of the example | [default to undefined]
|
|
11
|
+
**prompt** | **string** | Example prompt | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AgentExample } from '@crestal/nation-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: AgentExample = {
|
|
19
|
+
name,
|
|
20
|
+
description,
|
|
21
|
+
prompt,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# AgentResponse
|
|
2
|
+
|
|
3
|
+
Response model for Agent API.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [default to undefined]
|
|
10
|
+
**number** | **number** | | [default to undefined]
|
|
11
|
+
**created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [default to undefined]
|
|
12
|
+
**updated_at** | **string** | Timestamp when the agent was last updated, will ignore when importing | [default to undefined]
|
|
13
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**slug** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**external_website** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**picture** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**ticker** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**token_address** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**token_pool** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**mode** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**fee_percentage** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**owner** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**upstream_id** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**upstream_extra** | **object** | | [optional] [default to undefined]
|
|
26
|
+
**model** | **string** | AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent | [default to undefined]
|
|
27
|
+
**autonomous** | **Array<object>** | | [optional] [default to undefined]
|
|
28
|
+
**example_intro** | **string** | | [optional] [default to undefined]
|
|
29
|
+
**examples** | [**Array<AgentExample>**](AgentExample.md) | | [optional] [default to undefined]
|
|
30
|
+
**skills** | **object** | | [optional] [default to undefined]
|
|
31
|
+
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
32
|
+
**network_id** | **string** | | [optional] [default to undefined]
|
|
33
|
+
**cdp_network_id** | **string** | | [optional] [default to undefined]
|
|
34
|
+
**telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
35
|
+
**cdp_wallet_address** | **string** | | [default to undefined]
|
|
36
|
+
**has_twitter_linked** | **boolean** | Whether the agent has linked their Twitter account | [default to undefined]
|
|
37
|
+
**linked_twitter_username** | **string** | | [default to undefined]
|
|
38
|
+
**linked_twitter_name** | **string** | | [default to undefined]
|
|
39
|
+
**has_twitter_self_key** | **boolean** | Whether the agent has self-keyed their Twitter account | [default to undefined]
|
|
40
|
+
**has_telegram_self_key** | **boolean** | Whether the agent has self-keyed their Telegram account | [default to undefined]
|
|
41
|
+
**linked_telegram_username** | **string** | | [default to undefined]
|
|
42
|
+
**linked_telegram_name** | **string** | | [default to undefined]
|
|
43
|
+
**accept_image_input** | **boolean** | Whether the agent accepts image inputs in public mode | [default to undefined]
|
|
44
|
+
**accept_image_input_private** | **boolean** | Whether the agent accepts image inputs in private mode | [default to undefined]
|
|
45
|
+
|
|
46
|
+
## Example
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
import { AgentResponse } from '@crestal/nation-sdk';
|
|
50
|
+
|
|
51
|
+
const instance: AgentResponse = {
|
|
52
|
+
id,
|
|
53
|
+
number,
|
|
54
|
+
created_at,
|
|
55
|
+
updated_at,
|
|
56
|
+
name,
|
|
57
|
+
slug,
|
|
58
|
+
description,
|
|
59
|
+
external_website,
|
|
60
|
+
picture,
|
|
61
|
+
ticker,
|
|
62
|
+
token_address,
|
|
63
|
+
token_pool,
|
|
64
|
+
mode,
|
|
65
|
+
fee_percentage,
|
|
66
|
+
owner,
|
|
67
|
+
upstream_id,
|
|
68
|
+
upstream_extra,
|
|
69
|
+
model,
|
|
70
|
+
autonomous,
|
|
71
|
+
example_intro,
|
|
72
|
+
examples,
|
|
73
|
+
skills,
|
|
74
|
+
wallet_provider,
|
|
75
|
+
network_id,
|
|
76
|
+
cdp_network_id,
|
|
77
|
+
telegram_entrypoint_enabled,
|
|
78
|
+
cdp_wallet_address,
|
|
79
|
+
has_twitter_linked,
|
|
80
|
+
linked_twitter_username,
|
|
81
|
+
linked_twitter_name,
|
|
82
|
+
has_twitter_self_key,
|
|
83
|
+
has_telegram_self_key,
|
|
84
|
+
linked_telegram_username,
|
|
85
|
+
linked_telegram_name,
|
|
86
|
+
accept_image_input,
|
|
87
|
+
accept_image_input_private,
|
|
88
|
+
};
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# AgentStatisticsResponse
|
|
2
|
+
|
|
3
|
+
Response model for agent statistics.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**agent_id** | **string** | ID of the agent | [default to undefined]
|
|
10
|
+
**account_id** | **string** | ID of the agent\'s credit account | [default to undefined]
|
|
11
|
+
**balance** | **string** | Total balance of the agent\'s account | [default to undefined]
|
|
12
|
+
**total_income** | **string** | Total income from all credit events | [default to undefined]
|
|
13
|
+
**net_income** | **string** | Net income from all credit events | [default to undefined]
|
|
14
|
+
**permanent_income** | **string** | Permanent income from all credit events | [default to undefined]
|
|
15
|
+
**permanent_profit** | **string** | Permanent profit from all credit events | [default to undefined]
|
|
16
|
+
**last_24h_income** | **string** | Income from last 24 hours | [default to undefined]
|
|
17
|
+
**last_24h_permanent_income** | **string** | Permanent income from last 24 hours | [default to undefined]
|
|
18
|
+
**avg_action_cost** | **string** | Average action cost | [default to undefined]
|
|
19
|
+
**min_action_cost** | **string** | Minimum action cost | [default to undefined]
|
|
20
|
+
**max_action_cost** | **string** | Maximum action cost | [default to undefined]
|
|
21
|
+
**low_action_cost** | **string** | Low action cost | [default to undefined]
|
|
22
|
+
**medium_action_cost** | **string** | Medium action cost | [default to undefined]
|
|
23
|
+
**high_action_cost** | **string** | High action cost | [default to undefined]
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { AgentStatisticsResponse } from '@crestal/nation-sdk';
|
|
29
|
+
|
|
30
|
+
const instance: AgentStatisticsResponse = {
|
|
31
|
+
agent_id,
|
|
32
|
+
account_id,
|
|
33
|
+
balance,
|
|
34
|
+
total_income,
|
|
35
|
+
net_income,
|
|
36
|
+
permanent_income,
|
|
37
|
+
permanent_profit,
|
|
38
|
+
last_24h_income,
|
|
39
|
+
last_24h_permanent_income,
|
|
40
|
+
avg_action_cost,
|
|
41
|
+
min_action_cost,
|
|
42
|
+
max_action_cost,
|
|
43
|
+
low_action_cost,
|
|
44
|
+
medium_action_cost,
|
|
45
|
+
high_action_cost,
|
|
46
|
+
};
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# AgentUpdate
|
|
2
|
+
|
|
3
|
+
Agent update model.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | | [default to undefined]
|
|
10
|
+
**slug** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**external_website** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**picture** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**ticker** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**token_address** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**token_pool** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**mode** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**fee_percentage** | [**FeePercentage**](FeePercentage.md) | | [optional] [default to undefined]
|
|
19
|
+
**purpose** | **string** | | [default to undefined]
|
|
20
|
+
**personality** | **string** | | [default to undefined]
|
|
21
|
+
**principles** | **string** | | [default to undefined]
|
|
22
|
+
**owner** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**upstream_id** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**upstream_extra** | **object** | | [optional] [default to undefined]
|
|
25
|
+
**model** | **string** | AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent, venice-uncensored | [optional] [default to 'gpt-4.1-mini']
|
|
26
|
+
**prompt** | **string** | | [optional] [default to undefined]
|
|
27
|
+
**prompt_append** | **string** | | [optional] [default to undefined]
|
|
28
|
+
**temperature** | **number** | | [optional] [default to undefined]
|
|
29
|
+
**frequency_penalty** | **number** | | [optional] [default to undefined]
|
|
30
|
+
**presence_penalty** | **number** | | [optional] [default to undefined]
|
|
31
|
+
**short_term_memory_strategy** | **string** | | [optional] [default to undefined]
|
|
32
|
+
**autonomous** | [**Array<AgentAutonomous>**](AgentAutonomous.md) | | [optional] [default to undefined]
|
|
33
|
+
**example_intro** | **string** | | [optional] [default to undefined]
|
|
34
|
+
**examples** | [**Array<AgentExample>**](AgentExample.md) | | [optional] [default to undefined]
|
|
35
|
+
**skills** | **object** | | [optional] [default to undefined]
|
|
36
|
+
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
37
|
+
**network_id** | **string** | | [optional] [default to undefined]
|
|
38
|
+
**cdp_network_id** | **string** | | [optional] [default to undefined]
|
|
39
|
+
**twitter_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
40
|
+
**twitter_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
41
|
+
**twitter_config** | **object** | | [optional] [default to undefined]
|
|
42
|
+
**telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
43
|
+
**telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
44
|
+
**telegram_config** | **object** | | [optional] [default to undefined]
|
|
45
|
+
|
|
46
|
+
## Example
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
import { AgentUpdate } from '@crestal/nation-sdk';
|
|
50
|
+
|
|
51
|
+
const instance: AgentUpdate = {
|
|
52
|
+
name,
|
|
53
|
+
slug,
|
|
54
|
+
description,
|
|
55
|
+
external_website,
|
|
56
|
+
picture,
|
|
57
|
+
ticker,
|
|
58
|
+
token_address,
|
|
59
|
+
token_pool,
|
|
60
|
+
mode,
|
|
61
|
+
fee_percentage,
|
|
62
|
+
purpose,
|
|
63
|
+
personality,
|
|
64
|
+
principles,
|
|
65
|
+
owner,
|
|
66
|
+
upstream_id,
|
|
67
|
+
upstream_extra,
|
|
68
|
+
model,
|
|
69
|
+
prompt,
|
|
70
|
+
prompt_append,
|
|
71
|
+
temperature,
|
|
72
|
+
frequency_penalty,
|
|
73
|
+
presence_penalty,
|
|
74
|
+
short_term_memory_strategy,
|
|
75
|
+
autonomous,
|
|
76
|
+
example_intro,
|
|
77
|
+
examples,
|
|
78
|
+
skills,
|
|
79
|
+
wallet_provider,
|
|
80
|
+
network_id,
|
|
81
|
+
cdp_network_id,
|
|
82
|
+
twitter_entrypoint_enabled,
|
|
83
|
+
twitter_entrypoint_prompt,
|
|
84
|
+
twitter_config,
|
|
85
|
+
telegram_entrypoint_enabled,
|
|
86
|
+
telegram_entrypoint_prompt,
|
|
87
|
+
telegram_config,
|
|
88
|
+
};
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# AuthorType
|
|
2
|
+
|
|
3
|
+
Type of message author.
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `Agent` (value: `'agent'`)
|
|
8
|
+
|
|
9
|
+
* `Trigger` (value: `'trigger'`)
|
|
10
|
+
|
|
11
|
+
* `Skill` (value: `'skill'`)
|
|
12
|
+
|
|
13
|
+
* `Telegram` (value: `'telegram'`)
|
|
14
|
+
|
|
15
|
+
* `Twitter` (value: `'twitter'`)
|
|
16
|
+
|
|
17
|
+
* `Web` (value: `'web'`)
|
|
18
|
+
|
|
19
|
+
* `System` (value: `'system'`)
|
|
20
|
+
|
|
21
|
+
* `Api` (value: `'api'`)
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Chat.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Chat
|
|
2
|
+
|
|
3
|
+
Chat model with all fields including server-generated ones.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Unique identifier for the chat | [optional] [default to undefined]
|
|
10
|
+
**agent_id** | **string** | ID of the agent this chat belongs to | [default to undefined]
|
|
11
|
+
**user_id** | **string** | User ID of the chat | [default to undefined]
|
|
12
|
+
**summary** | **string** | Summary of the chat | [optional] [default to '']
|
|
13
|
+
**rounds** | **number** | Number of rounds in the chat | [optional] [default to 0]
|
|
14
|
+
**created_at** | **string** | Timestamp when this chat was created | [default to undefined]
|
|
15
|
+
**updated_at** | **string** | Timestamp when this chat was updated | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { Chat } from '@crestal/nation-sdk';
|
|
21
|
+
|
|
22
|
+
const instance: Chat = {
|
|
23
|
+
id,
|
|
24
|
+
agent_id,
|
|
25
|
+
user_id,
|
|
26
|
+
summary,
|
|
27
|
+
rounds,
|
|
28
|
+
created_at,
|
|
29
|
+
updated_at,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|