weave-typescript 0.51.2 → 0.52.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/dist/google/protobuf/duration.pb.d.ts +99 -0
- package/dist/google/protobuf/duration.pb.js +93 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/weave/authz/v1/index.d.ts +1 -0
- package/dist/weave/authz/v1/index.js +38 -0
- package/dist/weave/authz/v1/options.pb.d.ts +52 -0
- package/dist/weave/authz/v1/options.pb.js +403 -0
- package/dist/weave/filter/v1/index.d.ts +1 -0
- package/dist/weave/filter/v1/index.js +38 -0
- package/dist/{weaveapi/atc/v1/message.pb.d.ts → weave/filter/v1/options.pb.d.ts} +33 -21
- package/dist/weave/filter/v1/options.pb.js +417 -0
- package/dist/weave/index.d.ts +2 -0
- package/dist/weave/index.js +39 -0
- package/dist/weaveapi/agent/v1/agent.pb.d.ts +137 -188
- package/dist/weaveapi/agent/v1/agent.pb.js +891 -2151
- package/dist/weaveapi/agent/v1/index.d.ts +1 -1
- package/dist/weaveapi/agent/v1/index.js +2 -2
- package/dist/weaveapi/agent/v1/run.pb.d.ts +289 -0
- package/dist/weaveapi/agent/v1/run.pb.js +2763 -0
- package/dist/weaveapi/auth/v1/auth.pb.d.ts +67 -14
- package/dist/weaveapi/auth/v1/auth.pb.js +829 -89
- package/dist/weaveapi/auth/v1/index.d.ts +4 -1
- package/dist/weaveapi/auth/v1/index.js +5 -2
- package/dist/weaveapi/auth/v1/{service.pb.d.ts → organization_admin.pb.d.ts} +39 -530
- package/dist/weaveapi/auth/v1/{service.pb.js → organization_admin.pb.js} +2978 -5812
- package/dist/weaveapi/auth/v1/personal_access_token.pb.d.ts +114 -0
- package/dist/weaveapi/auth/v1/personal_access_token.pb.js +750 -0
- package/dist/weaveapi/auth/v1/profile.pb.d.ts +161 -0
- package/dist/weaveapi/auth/v1/profile.pb.js +1007 -0
- package/dist/weaveapi/auth/v1/session.pb.d.ts +460 -0
- package/dist/weaveapi/auth/v1/session.pb.js +3544 -0
- package/dist/weaveapi/chat/v1/chat.pb.d.ts +377 -149
- package/dist/weaveapi/chat/v1/chat.pb.js +3492 -1614
- package/dist/weaveapi/chat/v1/index.d.ts +0 -1
- package/dist/weaveapi/chat/v1/index.js +1 -2
- package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +95 -0
- package/dist/weaveapi/consolidation/v1/consolidation.pb.js +770 -1
- package/dist/weaveapi/consolidation/v1/index.d.ts +0 -1
- package/dist/weaveapi/consolidation/v1/index.js +1 -2
- package/dist/weaveapi/content/v1/content.pb.d.ts +63 -0
- package/dist/weaveapi/content/v1/content.pb.js +470 -0
- package/dist/weaveapi/content/v1/index.d.ts +1 -0
- package/dist/weaveapi/content/v1/index.js +38 -0
- package/dist/weaveapi/gateway/v1/gateway.pb.d.ts +247 -523
- package/dist/weaveapi/gateway/v1/gateway.pb.js +1648 -5783
- package/dist/weaveapi/gateway/v1/index.d.ts +0 -1
- package/dist/weaveapi/gateway/v1/index.js +1 -2
- package/dist/weaveapi/index.d.ts +5 -5
- package/dist/weaveapi/index.js +6 -6
- package/dist/weaveapi/inference/v1/generate.pb.d.ts +120 -0
- package/dist/weaveapi/inference/v1/generate.pb.js +1159 -0
- package/dist/weaveapi/inference/v1/index.d.ts +4 -0
- package/dist/weaveapi/{provider → inference}/v1/index.js +4 -2
- package/dist/weaveapi/{model → inference}/v1/model.pb.d.ts +52 -15
- package/dist/weaveapi/{model → inference}/v1/model.pb.js +529 -116
- package/dist/weaveapi/{model/v1/service.pb.d.ts → inference/v1/model_route.pb.d.ts} +182 -110
- package/dist/weaveapi/{model/v1/service.pb.js → inference/v1/model_route.pb.js} +2197 -1061
- package/dist/weaveapi/inference/v1/provider.pb.d.ts +264 -0
- package/dist/weaveapi/inference/v1/provider.pb.js +2590 -0
- package/dist/weaveapi/ingestion/v1/index.d.ts +0 -2
- package/dist/weaveapi/ingestion/v1/index.js +1 -3
- package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +543 -0
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +5550 -16
- package/dist/weaveapi/initialization/v1/index.d.ts +1 -0
- package/dist/weaveapi/initialization/v1/index.js +38 -0
- package/dist/weaveapi/initialization/v1/initialization.pb.d.ts +99 -0
- package/dist/weaveapi/initialization/v1/initialization.pb.js +510 -0
- package/dist/weaveapi/organization/v1/index.d.ts +0 -1
- package/dist/weaveapi/organization/v1/index.js +1 -2
- package/dist/weaveapi/organization/v1/organization.pb.d.ts +241 -0
- package/dist/weaveapi/organization/v1/organization.pb.js +1838 -1
- package/dist/weaveapi/reporting/index.d.ts +1 -0
- package/dist/weaveapi/reporting/index.js +38 -0
- package/dist/weaveapi/{task → reporting}/v1/index.d.ts +1 -1
- package/dist/weaveapi/{model → reporting}/v1/index.js +2 -2
- package/dist/weaveapi/reporting/v1/service.pb.d.ts +38 -0
- package/dist/weaveapi/reporting/v1/service.pb.js +167 -0
- package/dist/weaveapi/reporting/v1/usage.pb.d.ts +150 -0
- package/dist/weaveapi/reporting/v1/usage.pb.js +1837 -0
- package/dist/weaveapi/retrieval/v1/index.d.ts +0 -1
- package/dist/weaveapi/retrieval/v1/index.js +1 -2
- package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +96 -2
- package/dist/weaveapi/retrieval/v1/retrieval.pb.js +690 -10
- package/dist/weaveapi/tool/index.d.ts +1 -0
- package/dist/weaveapi/tool/index.js +38 -0
- package/dist/weaveapi/tool/v1/index.d.ts +1 -0
- package/dist/weaveapi/tool/v1/index.js +38 -0
- package/dist/weaveapi/tool/v1/tool.pb.d.ts +370 -0
- package/dist/weaveapi/tool/v1/tool.pb.js +2717 -0
- package/dist/weaveapi/workflow/v1/index.d.ts +1 -1
- package/dist/weaveapi/workflow/v1/index.js +2 -2
- package/dist/weaveapi/workflow/v1/run.pb.d.ts +244 -0
- package/dist/weaveapi/workflow/v1/run.pb.js +2084 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +122 -275
- package/dist/weaveapi/workflow/v1/workflow.pb.js +790 -3261
- package/dist/weavesql/weavedb/agent_sql.d.ts +173 -477
- package/dist/weavesql/weavedb/agent_sql.js +281 -758
- package/dist/weavesql/weavedb/authorization_outbox_sql.d.ts +261 -0
- package/dist/weavesql/weavedb/authorization_outbox_sql.js +445 -0
- package/dist/weavesql/weavedb/chat_sql.d.ts +103 -345
- package/dist/weavesql/weavedb/chat_sql.js +312 -597
- package/dist/weavesql/weavedb/document_consolidation_sql.d.ts +217 -0
- package/dist/weavesql/weavedb/document_consolidation_sql.js +486 -0
- package/dist/weavesql/weavedb/document_ingestion_sql.d.ts +1433 -0
- package/dist/weavesql/weavedb/document_ingestion_sql.js +3488 -0
- package/dist/weavesql/weavedb/document_retrieval_sql.d.ts +314 -0
- package/dist/weavesql/weavedb/document_retrieval_sql.js +965 -0
- package/dist/weavesql/weavedb/document_table_sql.d.ts +6 -6
- package/dist/weavesql/weavedb/document_table_sql.js +12 -12
- package/dist/weavesql/weavedb/identity_sql.d.ts +1014 -0
- package/dist/weavesql/weavedb/identity_sql.js +1811 -0
- package/dist/weavesql/weavedb/inference_model_route_sql.d.ts +161 -0
- package/dist/weavesql/weavedb/inference_model_route_sql.js +408 -0
- package/dist/weavesql/weavedb/inference_provider_sql.d.ts +125 -0
- package/dist/weavesql/weavedb/inference_provider_sql.js +228 -0
- package/dist/weavesql/weavedb/initialization_sql.d.ts +15 -0
- package/dist/weavesql/weavedb/initialization_sql.js +33 -0
- package/dist/weavesql/weavedb/model_catalog_sql.d.ts +6 -6
- package/dist/weavesql/weavedb/model_catalog_sql.js +6 -6
- package/dist/weavesql/weavedb/organization_sql.d.ts +22 -102
- package/dist/weavesql/weavedb/organization_sql.js +54 -262
- package/dist/weavesql/weavedb/tool_sql.d.ts +209 -0
- package/dist/weavesql/weavedb/tool_sql.js +407 -0
- package/dist/weavesql/weavedb/usage_sql.d.ts +356 -0
- package/dist/weavesql/weavedb/usage_sql.js +568 -0
- package/dist/weavesql/weavedb/workflow_sql.d.ts +159 -546
- package/dist/weavesql/weavedb/workflow_sql.js +281 -909
- package/package.json +2 -2
- package/dist/weaveapi/agent/v1/service.pb.d.ts +0 -397
- package/dist/weaveapi/agent/v1/service.pb.js +0 -3152
- package/dist/weaveapi/atc/v1/event.pb.d.ts +0 -134
- package/dist/weaveapi/atc/v1/event.pb.js +0 -1124
- package/dist/weaveapi/atc/v1/index.d.ts +0 -5
- package/dist/weaveapi/atc/v1/index.js +0 -42
- package/dist/weaveapi/atc/v1/message.pb.js +0 -287
- package/dist/weaveapi/atc/v1/process.pb.d.ts +0 -91
- package/dist/weaveapi/atc/v1/process.pb.js +0 -658
- package/dist/weaveapi/atc/v1/run.pb.d.ts +0 -71
- package/dist/weaveapi/atc/v1/run.pb.js +0 -525
- package/dist/weaveapi/atc/v1/service.pb.d.ts +0 -472
- package/dist/weaveapi/atc/v1/service.pb.js +0 -3093
- package/dist/weaveapi/chat/v1/service.pb.d.ts +0 -345
- package/dist/weaveapi/chat/v1/service.pb.js +0 -2545
- package/dist/weaveapi/consolidation/v1/service.pb.d.ts +0 -93
- package/dist/weaveapi/consolidation/v1/service.pb.js +0 -427
- package/dist/weaveapi/gateway/v1/service.pb.d.ts +0 -235
- package/dist/weaveapi/gateway/v1/service.pb.js +0 -651
- package/dist/weaveapi/ingestion/v1/service.pb.d.ts +0 -420
- package/dist/weaveapi/ingestion/v1/service.pb.js +0 -2311
- package/dist/weaveapi/ingestion/v1/table.pb.d.ts +0 -121
- package/dist/weaveapi/ingestion/v1/table.pb.js +0 -1478
- package/dist/weaveapi/model/v1/index.d.ts +0 -2
- package/dist/weaveapi/organization/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/organization/v1/service.pb.js +0 -1561
- package/dist/weaveapi/project/v1/index.d.ts +0 -2
- package/dist/weaveapi/project/v1/index.js +0 -39
- package/dist/weaveapi/project/v1/project.pb.d.ts +0 -105
- package/dist/weaveapi/project/v1/project.pb.js +0 -1004
- package/dist/weaveapi/project/v1/service.pb.d.ts +0 -247
- package/dist/weaveapi/project/v1/service.pb.js +0 -1994
- package/dist/weaveapi/provider/v1/index.d.ts +0 -2
- package/dist/weaveapi/provider/v1/provider.pb.d.ts +0 -137
- package/dist/weaveapi/provider/v1/provider.pb.js +0 -1000
- package/dist/weaveapi/provider/v1/service.pb.d.ts +0 -223
- package/dist/weaveapi/provider/v1/service.pb.js +0 -1888
- package/dist/weaveapi/retrieval/v1/service.pb.d.ts +0 -93
- package/dist/weaveapi/retrieval/v1/service.pb.js +0 -385
- package/dist/weaveapi/task/v1/index.js +0 -39
- package/dist/weaveapi/task/v1/service.pb.d.ts +0 -172
- package/dist/weaveapi/task/v1/service.pb.js +0 -1436
- package/dist/weaveapi/task/v1/task.pb.d.ts +0 -85
- package/dist/weaveapi/task/v1/task.pb.js +0 -802
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -392
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -3146
- /package/dist/{weaveapi/atc → weave/authz}/index.d.ts +0 -0
- /package/dist/{weaveapi/atc → weave/authz}/index.js +0 -0
- /package/dist/{weaveapi/model → weave/filter}/index.d.ts +0 -0
- /package/dist/{weaveapi/model → weave/filter}/index.js +0 -0
- /package/dist/weaveapi/{project → content}/index.d.ts +0 -0
- /package/dist/weaveapi/{project → content}/index.js +0 -0
- /package/dist/weaveapi/{provider → inference}/index.d.ts +0 -0
- /package/dist/weaveapi/{provider → inference}/index.js +0 -0
- /package/dist/weaveapi/{task → initialization}/index.d.ts +0 -0
- /package/dist/weaveapi/{task → initialization}/index.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * as agent from './agent.pb';
|
|
2
|
-
export * as
|
|
2
|
+
export * as run from './run.pb';
|
|
@@ -34,6 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.run = exports.agent = void 0;
|
|
38
38
|
exports.agent = __importStar(require("./agent.pb"));
|
|
39
|
-
exports.
|
|
39
|
+
exports.run = __importStar(require("./run.pb"));
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { Content } from "../../content/v1/content.pb";
|
|
4
|
+
import { GenerateConfig, GenerationDetails } from "../../inference/v1/generate.pb";
|
|
5
|
+
export declare const protobufPackage = "weaveapi.agent.v1";
|
|
6
|
+
export declare enum AgentRunStatus {
|
|
7
|
+
AGENT_RUN_STATUS_UNSPECIFIED = 0,
|
|
8
|
+
AGENT_RUN_STATUS_PENDING = 1,
|
|
9
|
+
AGENT_RUN_STATUS_RUNNING = 2,
|
|
10
|
+
AGENT_RUN_STATUS_WAITING = 3,
|
|
11
|
+
AGENT_RUN_STATUS_COMPLETED = 4,
|
|
12
|
+
AGENT_RUN_STATUS_FAILED = 5,
|
|
13
|
+
AGENT_RUN_STATUS_CANCELED = 6,
|
|
14
|
+
UNRECOGNIZED = -1
|
|
15
|
+
}
|
|
16
|
+
export declare function agentRunStatusFromJSON(object: any): AgentRunStatus;
|
|
17
|
+
export declare function agentRunStatusToJSON(object: AgentRunStatus): string;
|
|
18
|
+
export declare enum AgentRunEventKind {
|
|
19
|
+
AGENT_RUN_EVENT_KIND_UNSPECIFIED = 0,
|
|
20
|
+
AGENT_RUN_EVENT_KIND_CONTENT = 1,
|
|
21
|
+
AGENT_RUN_EVENT_KIND_TOOL_CONFIRMATION_REQUIRED = 2,
|
|
22
|
+
AGENT_RUN_EVENT_KIND_ERROR = 3,
|
|
23
|
+
AGENT_RUN_EVENT_KIND_COMPLETED = 4,
|
|
24
|
+
UNRECOGNIZED = -1
|
|
25
|
+
}
|
|
26
|
+
export declare function agentRunEventKindFromJSON(object: any): AgentRunEventKind;
|
|
27
|
+
export declare function agentRunEventKindToJSON(object: AgentRunEventKind): string;
|
|
28
|
+
export interface RunTurnRequest {
|
|
29
|
+
rootAgentId: string;
|
|
30
|
+
sessionId: string;
|
|
31
|
+
content: Content | undefined;
|
|
32
|
+
modelIdOverride: string;
|
|
33
|
+
generateConfigOverride: GenerateConfig | undefined;
|
|
34
|
+
toolConfirmation: ToolConfirmationResponse | undefined;
|
|
35
|
+
}
|
|
36
|
+
export interface RunTurnResponse {
|
|
37
|
+
event: RunEvent | undefined;
|
|
38
|
+
}
|
|
39
|
+
export interface RunLiveRequest {
|
|
40
|
+
start?: RunLiveStart | undefined;
|
|
41
|
+
input?: RunLiveInput | undefined;
|
|
42
|
+
toolConfirmation?: ToolConfirmationResponse | undefined;
|
|
43
|
+
}
|
|
44
|
+
export interface RunLiveResponse {
|
|
45
|
+
event: RunLiveEvent | undefined;
|
|
46
|
+
}
|
|
47
|
+
export interface GetAgentRunRequest {
|
|
48
|
+
agentRunId: string;
|
|
49
|
+
}
|
|
50
|
+
export interface GetAgentRunResponse {
|
|
51
|
+
agentRun: AgentRun | undefined;
|
|
52
|
+
}
|
|
53
|
+
export interface ListAgentRunsRequest {
|
|
54
|
+
rootAgentId: string;
|
|
55
|
+
chatSessionId: string;
|
|
56
|
+
status: AgentRunStatus;
|
|
57
|
+
pageSize: number;
|
|
58
|
+
pageOffset: number;
|
|
59
|
+
}
|
|
60
|
+
export interface ListAgentRunsResponse {
|
|
61
|
+
agentRuns: AgentRun[];
|
|
62
|
+
}
|
|
63
|
+
export interface ListAgentRunEventsRequest {
|
|
64
|
+
agentRunId: string;
|
|
65
|
+
afterSequence: number;
|
|
66
|
+
pageSize: number;
|
|
67
|
+
}
|
|
68
|
+
export interface ListAgentRunEventsResponse {
|
|
69
|
+
events: AgentRunEvent[];
|
|
70
|
+
}
|
|
71
|
+
export interface RunLiveStart {
|
|
72
|
+
rootAgentId: string;
|
|
73
|
+
sessionId: string;
|
|
74
|
+
}
|
|
75
|
+
export interface RunLiveInput {
|
|
76
|
+
content: Content | undefined;
|
|
77
|
+
}
|
|
78
|
+
export interface RunEvent {
|
|
79
|
+
eventId: string;
|
|
80
|
+
runId: string;
|
|
81
|
+
sessionId: string;
|
|
82
|
+
rootAgentId: string;
|
|
83
|
+
agentId: string;
|
|
84
|
+
timestamp: Date | undefined;
|
|
85
|
+
generationDetails: GenerationDetails | undefined;
|
|
86
|
+
content?: Content | undefined;
|
|
87
|
+
error?: Error | undefined;
|
|
88
|
+
toolConfirmationRequired?: ToolConfirmationRequired | undefined;
|
|
89
|
+
}
|
|
90
|
+
export interface RunLiveEvent {
|
|
91
|
+
runEvent: RunEvent | undefined;
|
|
92
|
+
partial: boolean;
|
|
93
|
+
turnComplete: boolean;
|
|
94
|
+
interrupted: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface AgentRun {
|
|
97
|
+
id: string;
|
|
98
|
+
orgId: string;
|
|
99
|
+
rootAgentId: string;
|
|
100
|
+
startedByUserId: string;
|
|
101
|
+
chatSessionId: string;
|
|
102
|
+
status: AgentRunStatus;
|
|
103
|
+
input: {
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
} | undefined;
|
|
106
|
+
output: {
|
|
107
|
+
[key: string]: any;
|
|
108
|
+
} | undefined;
|
|
109
|
+
modelId: string;
|
|
110
|
+
inferenceModelRouteId: string;
|
|
111
|
+
generateConfig: GenerateConfig | undefined;
|
|
112
|
+
generationDetails: GenerationDetails | undefined;
|
|
113
|
+
errorCode: string;
|
|
114
|
+
errorMessage: string;
|
|
115
|
+
startedAt: Date | undefined;
|
|
116
|
+
completedAt: Date | undefined;
|
|
117
|
+
runtimeInvocationId: string;
|
|
118
|
+
}
|
|
119
|
+
export interface AgentRunEvent {
|
|
120
|
+
id: string;
|
|
121
|
+
orgId: string;
|
|
122
|
+
agentRunId: string;
|
|
123
|
+
sequence: number;
|
|
124
|
+
kind: AgentRunEventKind;
|
|
125
|
+
agentId: string;
|
|
126
|
+
payload: {
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
} | undefined;
|
|
129
|
+
generationDetails: GenerationDetails | undefined;
|
|
130
|
+
timestamp: Date | undefined;
|
|
131
|
+
}
|
|
132
|
+
export interface Error {
|
|
133
|
+
code: string;
|
|
134
|
+
message: string;
|
|
135
|
+
}
|
|
136
|
+
export interface ToolConfirmationRequired {
|
|
137
|
+
confirmationId: string;
|
|
138
|
+
toolCallId: string;
|
|
139
|
+
toolName: string;
|
|
140
|
+
arguments: {
|
|
141
|
+
[key: string]: any;
|
|
142
|
+
} | undefined;
|
|
143
|
+
hint: string;
|
|
144
|
+
payload: {
|
|
145
|
+
[key: string]: any;
|
|
146
|
+
} | undefined;
|
|
147
|
+
}
|
|
148
|
+
export interface ToolConfirmationResponse {
|
|
149
|
+
confirmationId: string;
|
|
150
|
+
confirmed: boolean;
|
|
151
|
+
payload: {
|
|
152
|
+
[key: string]: any;
|
|
153
|
+
} | undefined;
|
|
154
|
+
}
|
|
155
|
+
export declare const RunTurnRequest: MessageFns<RunTurnRequest>;
|
|
156
|
+
export declare const RunTurnResponse: MessageFns<RunTurnResponse>;
|
|
157
|
+
export declare const RunLiveRequest: MessageFns<RunLiveRequest>;
|
|
158
|
+
export declare const RunLiveResponse: MessageFns<RunLiveResponse>;
|
|
159
|
+
export declare const GetAgentRunRequest: MessageFns<GetAgentRunRequest>;
|
|
160
|
+
export declare const GetAgentRunResponse: MessageFns<GetAgentRunResponse>;
|
|
161
|
+
export declare const ListAgentRunsRequest: MessageFns<ListAgentRunsRequest>;
|
|
162
|
+
export declare const ListAgentRunsResponse: MessageFns<ListAgentRunsResponse>;
|
|
163
|
+
export declare const ListAgentRunEventsRequest: MessageFns<ListAgentRunEventsRequest>;
|
|
164
|
+
export declare const ListAgentRunEventsResponse: MessageFns<ListAgentRunEventsResponse>;
|
|
165
|
+
export declare const RunLiveStart: MessageFns<RunLiveStart>;
|
|
166
|
+
export declare const RunLiveInput: MessageFns<RunLiveInput>;
|
|
167
|
+
export declare const RunEvent: MessageFns<RunEvent>;
|
|
168
|
+
export declare const RunLiveEvent: MessageFns<RunLiveEvent>;
|
|
169
|
+
export declare const AgentRun: MessageFns<AgentRun>;
|
|
170
|
+
export declare const AgentRunEvent: MessageFns<AgentRunEvent>;
|
|
171
|
+
export declare const Error: MessageFns<Error>;
|
|
172
|
+
export declare const ToolConfirmationRequired: MessageFns<ToolConfirmationRequired>;
|
|
173
|
+
export declare const ToolConfirmationResponse: MessageFns<ToolConfirmationResponse>;
|
|
174
|
+
export interface AgentRunService {
|
|
175
|
+
RunTurn(request: RunTurnRequest): Observable<RunTurnResponse>;
|
|
176
|
+
RunLive(request: Observable<RunLiveRequest>): Observable<RunLiveResponse>;
|
|
177
|
+
GetAgentRun(request: GetAgentRunRequest): Promise<GetAgentRunResponse>;
|
|
178
|
+
ListAgentRuns(request: ListAgentRunsRequest): Promise<ListAgentRunsResponse>;
|
|
179
|
+
ListAgentRunEvents(request: ListAgentRunEventsRequest): Promise<ListAgentRunEventsResponse>;
|
|
180
|
+
}
|
|
181
|
+
export declare const AgentRunServiceServiceName = "weaveapi.agent.v1.AgentRunService";
|
|
182
|
+
export declare class AgentRunServiceClientImpl implements AgentRunService {
|
|
183
|
+
private readonly rpc;
|
|
184
|
+
private readonly service;
|
|
185
|
+
constructor(rpc: Rpc, opts?: {
|
|
186
|
+
service?: string;
|
|
187
|
+
});
|
|
188
|
+
RunTurn(request: RunTurnRequest): Observable<RunTurnResponse>;
|
|
189
|
+
RunLive(request: Observable<RunLiveRequest>): Observable<RunLiveResponse>;
|
|
190
|
+
GetAgentRun(request: GetAgentRunRequest): Promise<GetAgentRunResponse>;
|
|
191
|
+
ListAgentRuns(request: ListAgentRunsRequest): Promise<ListAgentRunsResponse>;
|
|
192
|
+
ListAgentRunEvents(request: ListAgentRunEventsRequest): Promise<ListAgentRunEventsResponse>;
|
|
193
|
+
}
|
|
194
|
+
export type AgentRunServiceDefinition = typeof AgentRunServiceDefinition;
|
|
195
|
+
export declare const AgentRunServiceDefinition: {
|
|
196
|
+
readonly name: "AgentRunService";
|
|
197
|
+
readonly fullName: "weaveapi.agent.v1.AgentRunService";
|
|
198
|
+
readonly methods: {
|
|
199
|
+
readonly runTurn: {
|
|
200
|
+
readonly name: "RunTurn";
|
|
201
|
+
readonly requestType: typeof RunTurnRequest;
|
|
202
|
+
readonly requestStream: false;
|
|
203
|
+
readonly responseType: typeof RunTurnResponse;
|
|
204
|
+
readonly responseStream: true;
|
|
205
|
+
readonly options: {
|
|
206
|
+
readonly _unknownFields: {
|
|
207
|
+
readonly 408002: readonly [Uint8Array];
|
|
208
|
+
readonly 578365826: readonly [Uint8Array];
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
readonly runLive: {
|
|
213
|
+
readonly name: "RunLive";
|
|
214
|
+
readonly requestType: typeof RunLiveRequest;
|
|
215
|
+
readonly requestStream: true;
|
|
216
|
+
readonly responseType: typeof RunLiveResponse;
|
|
217
|
+
readonly responseStream: true;
|
|
218
|
+
readonly options: {
|
|
219
|
+
readonly _unknownFields: {
|
|
220
|
+
readonly 408002: readonly [Uint8Array];
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
readonly getAgentRun: {
|
|
225
|
+
readonly name: "GetAgentRun";
|
|
226
|
+
readonly requestType: typeof GetAgentRunRequest;
|
|
227
|
+
readonly requestStream: false;
|
|
228
|
+
readonly responseType: typeof GetAgentRunResponse;
|
|
229
|
+
readonly responseStream: false;
|
|
230
|
+
readonly options: {
|
|
231
|
+
readonly _unknownFields: {
|
|
232
|
+
readonly 408002: readonly [Uint8Array];
|
|
233
|
+
readonly 578365826: readonly [Uint8Array];
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
readonly listAgentRuns: {
|
|
238
|
+
readonly name: "ListAgentRuns";
|
|
239
|
+
readonly requestType: typeof ListAgentRunsRequest;
|
|
240
|
+
readonly requestStream: false;
|
|
241
|
+
readonly responseType: typeof ListAgentRunsResponse;
|
|
242
|
+
readonly responseStream: false;
|
|
243
|
+
readonly options: {
|
|
244
|
+
readonly _unknownFields: {
|
|
245
|
+
readonly 408002: readonly [Uint8Array];
|
|
246
|
+
readonly 578365826: readonly [Uint8Array];
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
readonly listAgentRunEvents: {
|
|
251
|
+
readonly name: "ListAgentRunEvents";
|
|
252
|
+
readonly requestType: typeof ListAgentRunEventsRequest;
|
|
253
|
+
readonly requestStream: false;
|
|
254
|
+
readonly responseType: typeof ListAgentRunEventsResponse;
|
|
255
|
+
readonly responseStream: false;
|
|
256
|
+
readonly options: {
|
|
257
|
+
readonly _unknownFields: {
|
|
258
|
+
readonly 408002: readonly [Uint8Array];
|
|
259
|
+
readonly 578365826: readonly [Uint8Array];
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
interface Rpc {
|
|
266
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
267
|
+
clientStreamingRequest(service: string, method: string, data: Observable<Uint8Array>): Promise<Uint8Array>;
|
|
268
|
+
serverStreamingRequest(service: string, method: string, data: Uint8Array): Observable<Uint8Array>;
|
|
269
|
+
bidirectionalStreamingRequest(service: string, method: string, data: Observable<Uint8Array>): Observable<Uint8Array>;
|
|
270
|
+
}
|
|
271
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
272
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
273
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
274
|
+
} : Partial<T>;
|
|
275
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
276
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
277
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
278
|
+
} & {
|
|
279
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
280
|
+
};
|
|
281
|
+
export interface MessageFns<T> {
|
|
282
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
283
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
284
|
+
fromJSON(object: any): T;
|
|
285
|
+
toJSON(message: T): unknown;
|
|
286
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
287
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
288
|
+
}
|
|
289
|
+
export {};
|