@reminix/sdk 0.10.0 → 0.11.0
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/CHANGELOG.md +34 -0
- package/README.md +47 -0
- package/client.d.mts +19 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +19 -4
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +57 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +57 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +108 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +102 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/agents.d.mts +257 -98
- package/resources/agents.d.mts.map +1 -1
- package/resources/agents.d.ts +257 -98
- package/resources/agents.d.ts.map +1 -1
- package/resources/agents.js +29 -3
- package/resources/agents.js.map +1 -1
- package/resources/agents.mjs +29 -3
- package/resources/agents.mjs.map +1 -1
- package/resources/conversations.d.mts +107 -0
- package/resources/conversations.d.mts.map +1 -0
- package/resources/conversations.d.ts +107 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +41 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +37 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/execution-logs.d.mts +93 -0
- package/resources/execution-logs.d.mts.map +1 -0
- package/resources/execution-logs.d.ts +93 -0
- package/resources/execution-logs.d.ts.map +1 -0
- package/resources/execution-logs.js +33 -0
- package/resources/execution-logs.js.map +1 -0
- package/resources/execution-logs.mjs +29 -0
- package/resources/execution-logs.mjs.map +1 -0
- package/resources/index.d.mts +5 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/projects.d.mts +1 -11
- package/resources/projects.d.mts.map +1 -1
- package/resources/projects.d.ts +1 -11
- package/resources/projects.d.ts.map +1 -1
- package/resources/tools.d.mts +152 -0
- package/resources/tools.d.mts.map +1 -0
- package/resources/tools.d.ts +152 -0
- package/resources/tools.d.ts.map +1 -0
- package/resources/tools.js +59 -0
- package/resources/tools.js.map +1 -0
- package/resources/tools.mjs +55 -0
- package/resources/tools.mjs.map +1 -0
- package/src/client.ts +94 -12
- package/src/core/pagination.ts +165 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/agents.ts +319 -109
- package/src/resources/conversations.ts +146 -0
- package/src/resources/execution-logs.ts +125 -0
- package/src/resources/index.ts +30 -6
- package/src/resources/projects.ts +1 -13
- package/src/resources/tools.ts +192 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Conversations extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get details of a specific conversation including all messages.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ConversationRetrieveResponse> {
|
|
15
|
+
return this._client.get(path`/conversations/${id}`, options);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* List conversations for the project with optional filtering.
|
|
20
|
+
*
|
|
21
|
+
* Conversations store chat history between users and agents. Use filters to narrow
|
|
22
|
+
* down results by agent name or identity fields.
|
|
23
|
+
*
|
|
24
|
+
* **Filters:**
|
|
25
|
+
*
|
|
26
|
+
* - `agent_name`: Filter by agent name
|
|
27
|
+
* - `identity.*`: Filter by identity fields (e.g., identity.user_id=user_123)
|
|
28
|
+
*/
|
|
29
|
+
list(
|
|
30
|
+
query: ConversationListParams | null | undefined = {},
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): PagePromise<ConversationsCursor, Conversation> {
|
|
33
|
+
return this._client.getAPIList('/conversations', Cursor<Conversation>, { query, ...options });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Delete a conversation and all its messages. This action cannot be undone.
|
|
38
|
+
*/
|
|
39
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
40
|
+
return this._client.delete(path`/conversations/${id}`, {
|
|
41
|
+
...options,
|
|
42
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type ConversationsCursor = Cursor<Conversation>;
|
|
48
|
+
|
|
49
|
+
export interface Conversation {
|
|
50
|
+
/**
|
|
51
|
+
* Unique conversation ID
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Agent name
|
|
57
|
+
*/
|
|
58
|
+
agentName: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* When the conversation was created
|
|
62
|
+
*/
|
|
63
|
+
createdAt: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Identity fields for conversation scoping
|
|
67
|
+
*/
|
|
68
|
+
identity: { [key: string]: unknown };
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Project ID
|
|
72
|
+
*/
|
|
73
|
+
projectId: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* When the conversation was last updated
|
|
77
|
+
*/
|
|
78
|
+
updatedAt: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface ConversationRetrieveResponse extends Conversation {
|
|
82
|
+
/**
|
|
83
|
+
* Conversation messages
|
|
84
|
+
*/
|
|
85
|
+
messages: Array<ConversationRetrieveResponse.Message>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export namespace ConversationRetrieveResponse {
|
|
89
|
+
export interface Message {
|
|
90
|
+
/**
|
|
91
|
+
* Unique message ID
|
|
92
|
+
*/
|
|
93
|
+
id: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Message content
|
|
97
|
+
*/
|
|
98
|
+
content: string | null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Conversation ID
|
|
102
|
+
*/
|
|
103
|
+
conversationId: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* When the message was created
|
|
107
|
+
*/
|
|
108
|
+
createdAt: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Tool name (for tool messages)
|
|
112
|
+
*/
|
|
113
|
+
name: string | null;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Message role
|
|
117
|
+
*/
|
|
118
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Tool call ID (for tool messages)
|
|
122
|
+
*/
|
|
123
|
+
toolCallId: string | null;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Tool calls (for assistant messages)
|
|
127
|
+
*/
|
|
128
|
+
toolCalls?: unknown;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface ConversationListParams extends CursorParams {
|
|
133
|
+
/**
|
|
134
|
+
* Filter by agent name
|
|
135
|
+
*/
|
|
136
|
+
agent_name?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare namespace Conversations {
|
|
140
|
+
export {
|
|
141
|
+
type Conversation as Conversation,
|
|
142
|
+
type ConversationRetrieveResponse as ConversationRetrieveResponse,
|
|
143
|
+
type ConversationsCursor as ConversationsCursor,
|
|
144
|
+
type ConversationListParams as ConversationListParams,
|
|
145
|
+
};
|
|
146
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class ExecutionLogs extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get details of a specific execution log by ID.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ExecutionLog> {
|
|
14
|
+
return this._client.get(path`/execution-logs/${id}`, options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* List execution logs for the project with optional filtering.
|
|
19
|
+
*
|
|
20
|
+
* Execution logs track all agent invocations, chats, and tool executions. Use
|
|
21
|
+
* filters to narrow down results by type, source, name, or status.
|
|
22
|
+
*
|
|
23
|
+
* **Filters:**
|
|
24
|
+
*
|
|
25
|
+
* - `type`: Filter by execution type (agent_execute, tool_execute)
|
|
26
|
+
* - `source`: Filter by request source (api, cli, dashboard, widget, sdk)
|
|
27
|
+
* - `name`: Filter by agent or tool name
|
|
28
|
+
* - `status`: Filter by result status (success, error, timeout)
|
|
29
|
+
*/
|
|
30
|
+
list(
|
|
31
|
+
query: ExecutionLogListParams | null | undefined = {},
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): PagePromise<ExecutionLogsCursor, ExecutionLog> {
|
|
34
|
+
return this._client.getAPIList('/execution-logs', Cursor<ExecutionLog>, { query, ...options });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type ExecutionLogsCursor = Cursor<ExecutionLog>;
|
|
39
|
+
|
|
40
|
+
export interface ExecutionLog {
|
|
41
|
+
/**
|
|
42
|
+
* Unique execution log ID
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* When the execution occurred
|
|
48
|
+
*/
|
|
49
|
+
createdAt: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Execution duration in milliseconds
|
|
53
|
+
*/
|
|
54
|
+
durationMs: number | null;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Error message (null for success)
|
|
58
|
+
*/
|
|
59
|
+
error: string | null;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Agent or tool name
|
|
63
|
+
*/
|
|
64
|
+
name: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Project ID
|
|
68
|
+
*/
|
|
69
|
+
projectId: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Where the request originated
|
|
73
|
+
*/
|
|
74
|
+
source: 'api' | 'cli' | 'dashboard' | 'widget' | 'sdk';
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Execution result status
|
|
78
|
+
*/
|
|
79
|
+
status: 'success' | 'error' | 'timeout';
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Type of execution
|
|
83
|
+
*/
|
|
84
|
+
type: 'agent_execute' | 'agent_chat' | 'tool_execute';
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Input parameters
|
|
88
|
+
*/
|
|
89
|
+
input?: unknown;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Output from execution (null for errors)
|
|
93
|
+
*/
|
|
94
|
+
output?: unknown;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface ExecutionLogListParams extends CursorParams {
|
|
98
|
+
/**
|
|
99
|
+
* Filter by agent or tool name
|
|
100
|
+
*/
|
|
101
|
+
name?: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Filter by request source
|
|
105
|
+
*/
|
|
106
|
+
source?: 'api' | 'cli' | 'dashboard' | 'widget' | 'sdk';
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Filter by execution status
|
|
110
|
+
*/
|
|
111
|
+
status?: 'success' | 'error' | 'timeout';
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Filter by execution type
|
|
115
|
+
*/
|
|
116
|
+
type?: 'agent_execute' | 'agent_chat' | 'tool_execute';
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export declare namespace ExecutionLogs {
|
|
120
|
+
export {
|
|
121
|
+
type ExecutionLog as ExecutionLog,
|
|
122
|
+
type ExecutionLogsCursor as ExecutionLogsCursor,
|
|
123
|
+
type ExecutionLogListParams as ExecutionLogListParams,
|
|
124
|
+
};
|
|
125
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -2,17 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Agents,
|
|
5
|
+
type Agent,
|
|
6
|
+
type AgentConfig,
|
|
5
7
|
type ChatMessage,
|
|
6
|
-
type Context,
|
|
7
8
|
type StreamChunk,
|
|
8
9
|
type AgentChatResponse,
|
|
9
|
-
type
|
|
10
|
+
type AgentExecuteResponse,
|
|
11
|
+
type AgentListParams,
|
|
10
12
|
type AgentChatParams,
|
|
11
13
|
type AgentChatParamsNonStreaming,
|
|
12
14
|
type AgentChatParamsStreaming,
|
|
13
|
-
type
|
|
14
|
-
type
|
|
15
|
-
type
|
|
15
|
+
type AgentExecuteParams,
|
|
16
|
+
type AgentExecuteParamsNonStreaming,
|
|
17
|
+
type AgentExecuteParamsStreaming,
|
|
18
|
+
type AgentsCursor,
|
|
16
19
|
} from './agents';
|
|
17
20
|
export { ClientTokens, type ClientTokenCreateResponse, type ClientTokenCreateParams } from './client-tokens';
|
|
18
|
-
export {
|
|
21
|
+
export {
|
|
22
|
+
Conversations,
|
|
23
|
+
type Conversation,
|
|
24
|
+
type ConversationRetrieveResponse,
|
|
25
|
+
type ConversationListParams,
|
|
26
|
+
type ConversationsCursor,
|
|
27
|
+
} from './conversations';
|
|
28
|
+
export {
|
|
29
|
+
ExecutionLogs,
|
|
30
|
+
type ExecutionLog,
|
|
31
|
+
type ExecutionLogListParams,
|
|
32
|
+
type ExecutionLogsCursor,
|
|
33
|
+
} from './execution-logs';
|
|
34
|
+
export { Projects, type Project } from './projects';
|
|
35
|
+
export {
|
|
36
|
+
Tools,
|
|
37
|
+
type Tool,
|
|
38
|
+
type ToolExecuteResponse,
|
|
39
|
+
type ToolListParams,
|
|
40
|
+
type ToolExecuteParams,
|
|
41
|
+
type ToolsCursor,
|
|
42
|
+
} from './tools';
|
|
@@ -24,18 +24,6 @@ export class Projects extends APIResource {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export interface PaginationCursor {
|
|
28
|
-
/**
|
|
29
|
-
* Whether there are more results available
|
|
30
|
-
*/
|
|
31
|
-
hasMore: boolean;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Cursor for the next page of results. Null if there are no more results.
|
|
35
|
-
*/
|
|
36
|
-
nextCursor: string | null;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
27
|
export interface Project {
|
|
40
28
|
/**
|
|
41
29
|
* Unique identifier for the project
|
|
@@ -96,5 +84,5 @@ export namespace Project {
|
|
|
96
84
|
}
|
|
97
85
|
|
|
98
86
|
export declare namespace Projects {
|
|
99
|
-
export { type
|
|
87
|
+
export { type Project as Project };
|
|
100
88
|
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Tools extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get details of a specific tool by name.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const tool = await client.tools.retrieve('x');
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
retrieve(name: string, options?: RequestOptions): APIPromise<Tool> {
|
|
19
|
+
return this._client.get(path`/tools/${name}`, options);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* List all tools in the project with optional filtering by type and status. Tools
|
|
24
|
+
* are automatically discovered from deployments.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* // Automatically fetches more pages as needed.
|
|
29
|
+
* for await (const tool of client.tools.list()) {
|
|
30
|
+
* // ...
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
list(
|
|
35
|
+
query: ToolListParams | null | undefined = {},
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): PagePromise<ToolsCursor, Tool> {
|
|
38
|
+
return this._client.getAPIList('/tools', Cursor<Tool>, { query, ...options });
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Execute a tool with the provided input parameters.
|
|
43
|
+
*
|
|
44
|
+
* **Timeout:** Tool executions have a 60-second timeout. If the tool takes longer
|
|
45
|
+
* to respond, you will receive a 504 Gateway Timeout error.
|
|
46
|
+
*
|
|
47
|
+
* **Use cases:**
|
|
48
|
+
*
|
|
49
|
+
* - Calling custom tools from your deployment
|
|
50
|
+
* - Executing utility functions
|
|
51
|
+
* - Integrating with external services via tools
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const response = await client.tools.execute('x', {
|
|
56
|
+
* input: { name: 'World', greeting: 'Hello' },
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
execute(name: string, body: ToolExecuteParams, options?: RequestOptions): APIPromise<ToolExecuteResponse> {
|
|
61
|
+
return this._client.post(path`/tools/${name}/execute`, { body, ...options });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type ToolsCursor = Cursor<Tool>;
|
|
66
|
+
|
|
67
|
+
export interface Tool {
|
|
68
|
+
/**
|
|
69
|
+
* Unique tool ID
|
|
70
|
+
*/
|
|
71
|
+
id: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Creation timestamp
|
|
75
|
+
*/
|
|
76
|
+
createdAt: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* User who created the tool (for managed tools)
|
|
80
|
+
*/
|
|
81
|
+
createdBy: string | null;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Tool description
|
|
85
|
+
*/
|
|
86
|
+
description: string | null;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* When the tool was discovered
|
|
90
|
+
*/
|
|
91
|
+
discoveredAt: string | null;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Tool name
|
|
95
|
+
*/
|
|
96
|
+
name: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* JSON Schema for agent input parameters
|
|
100
|
+
*/
|
|
101
|
+
output: Tool.Output | null;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* JSON Schema for agent input parameters
|
|
105
|
+
*/
|
|
106
|
+
parameters: Tool.Parameters | null;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Project ID
|
|
110
|
+
*/
|
|
111
|
+
projectId: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Tool status
|
|
115
|
+
*/
|
|
116
|
+
status: 'active' | 'inactive';
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Tool type: "managed" for platform-provided, or "{language}" for custom tools
|
|
120
|
+
* (e.g., "python", "typescript")
|
|
121
|
+
*/
|
|
122
|
+
type: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Last update timestamp
|
|
126
|
+
*/
|
|
127
|
+
updatedAt: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export namespace Tool {
|
|
131
|
+
/**
|
|
132
|
+
* JSON Schema for agent input parameters
|
|
133
|
+
*/
|
|
134
|
+
export interface Output {
|
|
135
|
+
type: string;
|
|
136
|
+
|
|
137
|
+
properties?: { [key: string]: unknown };
|
|
138
|
+
|
|
139
|
+
required?: Array<string>;
|
|
140
|
+
|
|
141
|
+
[k: string]: unknown;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* JSON Schema for agent input parameters
|
|
146
|
+
*/
|
|
147
|
+
export interface Parameters {
|
|
148
|
+
type: string;
|
|
149
|
+
|
|
150
|
+
properties?: { [key: string]: unknown };
|
|
151
|
+
|
|
152
|
+
required?: Array<string>;
|
|
153
|
+
|
|
154
|
+
[k: string]: unknown;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface ToolExecuteResponse {
|
|
159
|
+
/**
|
|
160
|
+
* Output from the tool execution.
|
|
161
|
+
*/
|
|
162
|
+
output?: unknown;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface ToolListParams extends CursorParams {
|
|
166
|
+
/**
|
|
167
|
+
* Filter by tool status
|
|
168
|
+
*/
|
|
169
|
+
status?: 'active' | 'inactive';
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Filter by tool type (python, typescript)
|
|
173
|
+
*/
|
|
174
|
+
type?: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface ToolExecuteParams {
|
|
178
|
+
/**
|
|
179
|
+
* Input parameters for the tool. Structure depends on tool definition.
|
|
180
|
+
*/
|
|
181
|
+
input: { [key: string]: unknown };
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export declare namespace Tools {
|
|
185
|
+
export {
|
|
186
|
+
type Tool as Tool,
|
|
187
|
+
type ToolExecuteResponse as ToolExecuteResponse,
|
|
188
|
+
type ToolsCursor as ToolsCursor,
|
|
189
|
+
type ToolListParams as ToolListParams,
|
|
190
|
+
type ToolExecuteParams as ToolExecuteParams,
|
|
191
|
+
};
|
|
192
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.11.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.11.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.11.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.11.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|