@hasura/promptql 2.0.0-alpha.34 → 2.0.0-alpha.35
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/auth/index.d.mts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/{graphql-BcfHC50n.d.mts → graphql-Drrif9Kc.d.mts} +54 -54
- package/dist/{graphql-BcfHC50n.d.ts → graphql-Drrif9Kc.d.ts} +54 -54
- package/dist/index.d.mts +444 -232
- package/dist/index.d.ts +444 -232
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CreateRoomMutationVariables, B as Bigint_Comparison_Exp, O as Order_By, S as StartThreadMutation, T as ThreadEventFragment, a as SendThreadMessageMutation, G as GetRoomsQueryVariables, R as RoomFragment, b as CancelAgentMessageMutationVariables, c as ThreadFragment, d as GetThreadsQueryVariables, e as SendThreadMessageMutationVariables, f as StartThreadMutationVariables, g as SearchWikiPagesQuery, h as SearchWikiPagesQueryVariables } from './graphql-
|
|
1
|
+
import { C as CreateRoomMutationVariables, B as Bigint_Comparison_Exp, O as Order_By, S as StartThreadMutation, T as ThreadEventFragment, a as SendThreadMessageMutation, G as GetRoomsQueryVariables, R as RoomFragment, b as CancelAgentMessageMutationVariables, c as ThreadFragment, d as GetThreadsQueryVariables, e as SendThreadMessageMutationVariables, f as StartThreadMutationVariables, g as SearchWikiPagesQuery, h as SearchWikiPagesQueryVariables } from './graphql-Drrif9Kc.mjs';
|
|
2
2
|
import { ApolloClient, Observable } from '@apollo/client';
|
|
3
3
|
import * as graphql_ws from 'graphql-ws';
|
|
4
4
|
|
|
@@ -18,6 +18,7 @@ type ThreadEvent$1 = {
|
|
|
18
18
|
message_id: string;
|
|
19
19
|
user_id: PromptQlUserId;
|
|
20
20
|
message: UserMessage;
|
|
21
|
+
provenance?: UserEventProvenance | null;
|
|
21
22
|
};
|
|
22
23
|
} | {
|
|
23
24
|
ScheduledAgentTriggerEvent: {
|
|
@@ -99,6 +100,14 @@ type ThreadEvent$1 = {
|
|
|
99
100
|
type PromptQlUserId = string;
|
|
100
101
|
type ArtifactId = string;
|
|
101
102
|
type TzWrapper = string;
|
|
103
|
+
type UserEventProvenance = {
|
|
104
|
+
user: {};
|
|
105
|
+
} | {
|
|
106
|
+
promptql: {
|
|
107
|
+
thread_id: ThreadId;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
type ThreadId = string;
|
|
102
111
|
type ScheduledAgentTriggerEventId = string;
|
|
103
112
|
/**
|
|
104
113
|
* A registered scheduled agent trigger ID
|
|
@@ -277,9 +286,13 @@ type AgentLoopUpdate = {
|
|
|
277
286
|
skill: SkillType;
|
|
278
287
|
};
|
|
279
288
|
} | {
|
|
280
|
-
|
|
289
|
+
checkpoint: {
|
|
281
290
|
summary: string;
|
|
282
291
|
};
|
|
292
|
+
} | {
|
|
293
|
+
completed: {
|
|
294
|
+
summary?: string | null;
|
|
295
|
+
};
|
|
283
296
|
} | {
|
|
284
297
|
thread_summarized: {
|
|
285
298
|
summary_text: string;
|
|
@@ -367,11 +380,20 @@ type AgentLoopActionLegacy = ({
|
|
|
367
380
|
run_program: {
|
|
368
381
|
entrypoint: string;
|
|
369
382
|
package_name?: ProgramPackageName | null;
|
|
383
|
+
/**
|
|
384
|
+
* When set, exposed to the python program as `sys.argv[1:]`.
|
|
385
|
+
* Only effective when the resolved entrypoint is a `.py` file.
|
|
386
|
+
*/
|
|
387
|
+
arguments?: string[] | null;
|
|
370
388
|
};
|
|
371
389
|
} | {
|
|
372
390
|
responding_to_user: {
|
|
373
391
|
message: string;
|
|
374
392
|
};
|
|
393
|
+
} | {
|
|
394
|
+
final_response: {
|
|
395
|
+
message: string;
|
|
396
|
+
};
|
|
375
397
|
} | {
|
|
376
398
|
read_wiki_page: {
|
|
377
399
|
page_title: string;
|
|
@@ -408,6 +430,12 @@ type AgentLoopActionLegacy = ({
|
|
|
408
430
|
mark_learnings_as_obsolete: {
|
|
409
431
|
learning_block_id: LearningBlockId;
|
|
410
432
|
};
|
|
433
|
+
} | {
|
|
434
|
+
learning_block: {
|
|
435
|
+
user_facing_summary?: string | null;
|
|
436
|
+
learnings?: string | null;
|
|
437
|
+
obsolete_learning_block_ids?: LearningBlockId[];
|
|
438
|
+
};
|
|
411
439
|
}) | {
|
|
412
440
|
decide_next_steps: DecideNextStepsFields;
|
|
413
441
|
};
|
|
@@ -439,7 +467,12 @@ type SkillType = "python_programming" | "react_programming" | "knowledge_explora
|
|
|
439
467
|
*/
|
|
440
468
|
type AgentLoopTerminalAction = {
|
|
441
469
|
done: {
|
|
442
|
-
|
|
470
|
+
/**
|
|
471
|
+
* Current threads have `Some("response text")`.
|
|
472
|
+
* New threads after we introduce `FinalResponse` action
|
|
473
|
+
* will produce `None` (response moved to `FinalResponse`).
|
|
474
|
+
*/
|
|
475
|
+
message?: string | null;
|
|
443
476
|
};
|
|
444
477
|
} | {
|
|
445
478
|
decide_next_steps: {
|
|
@@ -447,6 +480,10 @@ type AgentLoopTerminalAction = {
|
|
|
447
480
|
next_steps: string;
|
|
448
481
|
with_skill?: SkillType | null;
|
|
449
482
|
};
|
|
483
|
+
} | {
|
|
484
|
+
checkpoint: {
|
|
485
|
+
summary: string;
|
|
486
|
+
};
|
|
450
487
|
};
|
|
451
488
|
/**
|
|
452
489
|
* Actions the agent can perform.
|
|
@@ -508,11 +545,20 @@ type AgentLoopAction = {
|
|
|
508
545
|
run_program: {
|
|
509
546
|
entrypoint: string;
|
|
510
547
|
package_name?: ProgramPackageName | null;
|
|
548
|
+
/**
|
|
549
|
+
* When set, exposed to the python program as `sys.argv[1:]`.
|
|
550
|
+
* Only effective when the resolved entrypoint is a `.py` file.
|
|
551
|
+
*/
|
|
552
|
+
arguments?: string[] | null;
|
|
511
553
|
};
|
|
512
554
|
} | {
|
|
513
555
|
responding_to_user: {
|
|
514
556
|
message: string;
|
|
515
557
|
};
|
|
558
|
+
} | {
|
|
559
|
+
final_response: {
|
|
560
|
+
message: string;
|
|
561
|
+
};
|
|
516
562
|
} | {
|
|
517
563
|
read_wiki_page: {
|
|
518
564
|
page_title: string;
|
|
@@ -549,11 +595,163 @@ type AgentLoopAction = {
|
|
|
549
595
|
mark_learnings_as_obsolete: {
|
|
550
596
|
learning_block_id: LearningBlockId;
|
|
551
597
|
};
|
|
598
|
+
} | {
|
|
599
|
+
learning_block: {
|
|
600
|
+
user_facing_summary?: string | null;
|
|
601
|
+
learnings?: string | null;
|
|
602
|
+
obsolete_learning_block_ids?: LearningBlockId[];
|
|
603
|
+
};
|
|
552
604
|
};
|
|
553
605
|
/**
|
|
554
606
|
* Intermediate updates emitted during action execution.
|
|
607
|
+
*
|
|
608
|
+
* Union of the original unversioned shape and a newer versioned shape.
|
|
609
|
+
* Current emitters produce only the [`AgentLoopActionUpdateUnversioned`]
|
|
610
|
+
* variants; [`AgentLoopActionUpdateVersioned`] is scaffolded so consumers
|
|
611
|
+
* are ready for a future emission switch without a second migration.
|
|
612
|
+
*
|
|
613
|
+
* Serialization is transparent — there's no extra wrapper in the on-disk
|
|
614
|
+
* JSON. Deserialization discriminates on the presence of a top-level
|
|
615
|
+
* `version` field: present → [`AgentLoopActionUpdateVersioned`], absent →
|
|
616
|
+
* [`AgentLoopActionUpdateUnversioned`].
|
|
617
|
+
*/
|
|
618
|
+
type AgentLoopActionUpdate = AgentLoopActionUpdateVersioned | AgentLoopActionUpdateUnversioned;
|
|
619
|
+
/**
|
|
620
|
+
* Versioned shape of [`AgentLoopActionUpdate`]. Recognized by
|
|
621
|
+
* deserializers and consumers but not yet produced by any emitter.
|
|
622
|
+
*/
|
|
623
|
+
type AgentLoopActionUpdateVersioned = {
|
|
624
|
+
program_run_event: ProgramRunEvent;
|
|
625
|
+
};
|
|
626
|
+
type ProgramRunEvent = RunStarted | StepExecutionStarted | DataArtifactUpdated | OutputEmitted | CodeError | SqlError | SqlExecuteStarted | SqlExecuteCompleted | BuildError | ArtifactError | InternalError | PipelineProgress | ShelfTransactionOpened | ShelfTransactionSuspended | StepExecutionFinished | RunFinished | LlmUsageEvent;
|
|
627
|
+
type RunStarted = {
|
|
628
|
+
type: "RunStarted";
|
|
629
|
+
} & RunStartedV1;
|
|
630
|
+
type StepExecutionStarted = {
|
|
631
|
+
type: "StepExecutionStarted";
|
|
632
|
+
} & StepExecutionStartedV1;
|
|
633
|
+
type RunStepDetails = PythonRunStepDetails | SqlRunStepDetails | UiBuildRunStepDetails | PipelineRunStepDetails;
|
|
634
|
+
/**
|
|
635
|
+
* A unique identifier for a `PromptQL` Program
|
|
636
|
+
*/
|
|
637
|
+
type ProgramId = string;
|
|
638
|
+
type DataArtifactUpdated = {
|
|
639
|
+
type: "DataArtifactUpdated";
|
|
640
|
+
} & DataArtifactUpdatedV1;
|
|
641
|
+
type ArtifactType = "table" | "text" | "visualization" | "automation" | "python_code" | "python_package" | "html" | "file";
|
|
642
|
+
type OutputEmitted = {
|
|
643
|
+
type: "OutputEmitted";
|
|
644
|
+
} & OutputEmittedV1;
|
|
645
|
+
type CodeError = {
|
|
646
|
+
type: "CodeError";
|
|
647
|
+
} & CodeErrorV1;
|
|
648
|
+
type SqlError = {
|
|
649
|
+
type: "SqlError";
|
|
650
|
+
} & SqlErrorV1;
|
|
651
|
+
type SqlExecuteStarted = {
|
|
652
|
+
type: "SqlExecuteStarted";
|
|
653
|
+
} & SqlExecuteStartedV1;
|
|
654
|
+
type SqlQueryId = string;
|
|
655
|
+
/**
|
|
656
|
+
* A SQL query string.
|
|
657
|
+
*/
|
|
658
|
+
type Sql = string;
|
|
659
|
+
type SqlExecuteCompleted = {
|
|
660
|
+
type: "SqlExecuteCompleted";
|
|
661
|
+
} & SqlExecuteCompletedV1;
|
|
662
|
+
type ProgramRunSqlExecuteOutcome = {
|
|
663
|
+
rows_returned: number;
|
|
664
|
+
duration_ms: number;
|
|
665
|
+
type: "Success";
|
|
666
|
+
} | {
|
|
667
|
+
duration_ms: number;
|
|
668
|
+
type: "Timeout";
|
|
669
|
+
} | {
|
|
670
|
+
errored_after_ms: number;
|
|
671
|
+
error_type: SqlErrorType;
|
|
672
|
+
type: "Error";
|
|
673
|
+
};
|
|
674
|
+
/**
|
|
675
|
+
* Whether a SQL error was caused by the user (bad SQL) or by internal infrastructure.
|
|
676
|
+
*/
|
|
677
|
+
type SqlErrorType = {
|
|
678
|
+
message: string;
|
|
679
|
+
type: "user";
|
|
680
|
+
} | {
|
|
681
|
+
message: string;
|
|
682
|
+
type: "internal";
|
|
683
|
+
};
|
|
684
|
+
type BuildError = {
|
|
685
|
+
type: "BuildError";
|
|
686
|
+
} & BuildErrorV1;
|
|
687
|
+
type ArtifactError = {
|
|
688
|
+
type: "ArtifactError";
|
|
689
|
+
} & ArtifactErrorV1;
|
|
690
|
+
/**
|
|
691
|
+
* Internal error event for capturing unusual internal failures
|
|
692
|
+
* (e.g., python-runtime crashes, non-build errors in UI build, etc.)
|
|
693
|
+
* This is distinct from user-facing errors like `CodeError` or `BuildError`.
|
|
694
|
+
*/
|
|
695
|
+
type InternalError = {
|
|
696
|
+
type: "InternalError";
|
|
697
|
+
} & InternalErrorV1;
|
|
698
|
+
/**
|
|
699
|
+
* Pipeline progress event for tracking pipeline execution state
|
|
700
|
+
* This event is emitted after each batch is processed and allows
|
|
701
|
+
* the pipeline to resume from where it left off
|
|
702
|
+
*/
|
|
703
|
+
type PipelineProgress = {
|
|
704
|
+
type: "PipelineProgress";
|
|
705
|
+
} & (PipelineProgressV1 | PipelineProgressV2);
|
|
706
|
+
type TransactionId = string;
|
|
707
|
+
type ShelfSchemaName = string;
|
|
708
|
+
/**
|
|
709
|
+
* Source state for pipeline progress, varies by source type
|
|
710
|
+
*/
|
|
711
|
+
type PipelineSourceState = {
|
|
712
|
+
rows_handled: number;
|
|
713
|
+
type: "sql-rows";
|
|
714
|
+
} | {
|
|
715
|
+
state: unknown;
|
|
716
|
+
type: "python-state";
|
|
717
|
+
};
|
|
718
|
+
/**
|
|
719
|
+
* Emitted when the pipeline successfully opens a new shelf transaction.
|
|
720
|
+
* Carries the transaction ID so consumers can track or resume the job.
|
|
721
|
+
*/
|
|
722
|
+
type ShelfTransactionOpened = {
|
|
723
|
+
type: "ShelfTransactionOpened";
|
|
724
|
+
} & ShelfTransactionOpenedV1;
|
|
725
|
+
/**
|
|
726
|
+
* Emitted when a pipeline step finishes with an error while a shelf transaction
|
|
727
|
+
* is still open. The transaction ID can be used with the shelf-resume sink to
|
|
728
|
+
* continue from where the pipeline left off.
|
|
729
|
+
*/
|
|
730
|
+
type ShelfTransactionSuspended = {
|
|
731
|
+
type: "ShelfTransactionSuspended";
|
|
732
|
+
} & ShelfTransactionSuspendedV1;
|
|
733
|
+
type StepExecutionFinished = {
|
|
734
|
+
type: "StepExecutionFinished";
|
|
735
|
+
} & StepExecutionFinishedV1;
|
|
736
|
+
type RunFinished = {
|
|
737
|
+
type: "RunFinished";
|
|
738
|
+
} & RunFinishedV1;
|
|
739
|
+
type RunFinishedOutcome = {
|
|
740
|
+
type: "Success";
|
|
741
|
+
} | {
|
|
742
|
+
error: string;
|
|
743
|
+
type: "Error";
|
|
744
|
+
} | {
|
|
745
|
+
type: "UserCancelled";
|
|
746
|
+
};
|
|
747
|
+
type LlmUsageEvent = {
|
|
748
|
+
type: "LlmUsage";
|
|
749
|
+
} & LlmUsageEventV1;
|
|
750
|
+
/**
|
|
751
|
+
* Unversioned shape of [`AgentLoopActionUpdate`]. This is what current
|
|
752
|
+
* emitters produce and what persisted events on disk use.
|
|
555
753
|
*/
|
|
556
|
-
type
|
|
754
|
+
type AgentLoopActionUpdateUnversioned = {
|
|
557
755
|
code_output: {
|
|
558
756
|
output: string;
|
|
559
757
|
};
|
|
@@ -586,7 +784,7 @@ type AgentLoopActionUpdate = {
|
|
|
586
784
|
usage: LlmUsage;
|
|
587
785
|
};
|
|
588
786
|
};
|
|
589
|
-
type
|
|
787
|
+
type RuntimeArtifactType = "text" | "table" | "visualization" | "html" | "file";
|
|
590
788
|
type ArtifactDataPreview = {
|
|
591
789
|
Table: {
|
|
592
790
|
total_row_count: number;
|
|
@@ -595,11 +793,6 @@ type ArtifactDataPreview = {
|
|
|
595
793
|
}[];
|
|
596
794
|
};
|
|
597
795
|
};
|
|
598
|
-
type SqlQueryId = string;
|
|
599
|
-
/**
|
|
600
|
-
* A SQL query string.
|
|
601
|
-
*/
|
|
602
|
-
type Sql = string;
|
|
603
796
|
type SqlExecuteOutcome = {
|
|
604
797
|
rows_returned: number;
|
|
605
798
|
duration_ms: number;
|
|
@@ -612,16 +805,6 @@ type SqlExecuteOutcome = {
|
|
|
612
805
|
error: SqlErrorType;
|
|
613
806
|
type: "error";
|
|
614
807
|
};
|
|
615
|
-
/**
|
|
616
|
-
* Whether a SQL error was caused by the user (bad SQL) or by internal infrastructure.
|
|
617
|
-
*/
|
|
618
|
-
type SqlErrorType = {
|
|
619
|
-
message: string;
|
|
620
|
-
type: "user";
|
|
621
|
-
} | {
|
|
622
|
-
message: string;
|
|
623
|
-
type: "internal";
|
|
624
|
-
};
|
|
625
808
|
/**
|
|
626
809
|
* The final result of executing an action.
|
|
627
810
|
*/
|
|
@@ -640,6 +823,9 @@ type AgentLoopActionResult = {
|
|
|
640
823
|
} | {
|
|
641
824
|
message: string;
|
|
642
825
|
agent_loop_action_result_type: "message_sent";
|
|
826
|
+
} | {
|
|
827
|
+
message: string;
|
|
828
|
+
agent_loop_action_result_type: "final_response_sent";
|
|
643
829
|
} | {
|
|
644
830
|
package_name: ProgramPackageName;
|
|
645
831
|
agent_loop_action_result_type: "program_created";
|
|
@@ -717,6 +903,11 @@ type AgentLoopActionResult = {
|
|
|
717
903
|
} | {
|
|
718
904
|
learning_block_id: LearningBlockId;
|
|
719
905
|
agent_loop_action_result_type: "learning_block_marked_as_obsolete";
|
|
906
|
+
} | {
|
|
907
|
+
proposed_block_id?: LearningBlockId | null;
|
|
908
|
+
marked_obsolete_ids?: LearningBlockId[];
|
|
909
|
+
failed_obsolete_ids?: LearningBlockId[];
|
|
910
|
+
agent_loop_action_result_type: "learning_block_completed";
|
|
720
911
|
};
|
|
721
912
|
/**
|
|
722
913
|
* The markdown content of block or section in a wiki page
|
|
@@ -1467,7 +1658,6 @@ type ProgrammerUpdate = {
|
|
|
1467
1658
|
type ShelfUpdate = {
|
|
1468
1659
|
v1: ShelfUpdateV1;
|
|
1469
1660
|
};
|
|
1470
|
-
type TransactionId = string;
|
|
1471
1661
|
type ShelfActionEvent = ("Started" | "Completed") | {
|
|
1472
1662
|
RowsInserted: {
|
|
1473
1663
|
row_count: number;
|
|
@@ -1935,6 +2125,13 @@ type SocialFeedRatingUpdate = {
|
|
|
1935
2125
|
llm_usage?: SocialFeedRatingLlmUsage | null;
|
|
1936
2126
|
};
|
|
1937
2127
|
};
|
|
2128
|
+
type ExecuteProgramRequestProvenance = {
|
|
2129
|
+
Api: {};
|
|
2130
|
+
} | {
|
|
2131
|
+
Artifact: {
|
|
2132
|
+
artifact_reference: ArtifactReference1;
|
|
2133
|
+
};
|
|
2134
|
+
};
|
|
1938
2135
|
/**
|
|
1939
2136
|
* Versioned update emitted by an `ExecuteProgramResponse` thread event.
|
|
1940
2137
|
*/
|
|
@@ -1947,98 +2144,6 @@ type ProgramExecuteUpdate = {
|
|
|
1947
2144
|
outcome: ProgramExecuteOutcome;
|
|
1948
2145
|
};
|
|
1949
2146
|
};
|
|
1950
|
-
type ProgramRunEvent = RunStarted | StepExecutionStarted | DataArtifactUpdated | OutputEmitted | CodeError | SqlError | SqlExecuteStarted | SqlExecuteCompleted | BuildError | ArtifactError | InternalError | PipelineProgress | StepExecutionFinished | RunFinished | LlmUsageEvent;
|
|
1951
|
-
type RunStarted = {
|
|
1952
|
-
type: "RunStarted";
|
|
1953
|
-
} & RunStartedV1;
|
|
1954
|
-
type StepExecutionStarted = {
|
|
1955
|
-
type: "StepExecutionStarted";
|
|
1956
|
-
} & StepExecutionStartedV1;
|
|
1957
|
-
type RunStepDetails = PythonRunStepDetails | SqlRunStepDetails | UiBuildRunStepDetails | PipelineRunStepDetails;
|
|
1958
|
-
/**
|
|
1959
|
-
* A unique identifier for a `PromptQL` Program
|
|
1960
|
-
*/
|
|
1961
|
-
type ProgramId = string;
|
|
1962
|
-
type DataArtifactUpdated = {
|
|
1963
|
-
type: "DataArtifactUpdated";
|
|
1964
|
-
} & DataArtifactUpdatedV1;
|
|
1965
|
-
type ArtifactType2 = "table" | "text" | "visualization" | "automation" | "python_code" | "python_package" | "html" | "file";
|
|
1966
|
-
type OutputEmitted = {
|
|
1967
|
-
type: "OutputEmitted";
|
|
1968
|
-
} & OutputEmittedV1;
|
|
1969
|
-
type CodeError = {
|
|
1970
|
-
type: "CodeError";
|
|
1971
|
-
} & CodeErrorV1;
|
|
1972
|
-
type SqlError = {
|
|
1973
|
-
type: "SqlError";
|
|
1974
|
-
} & SqlErrorV1;
|
|
1975
|
-
type SqlExecuteStarted = {
|
|
1976
|
-
type: "SqlExecuteStarted";
|
|
1977
|
-
} & SqlExecuteStartedV1;
|
|
1978
|
-
type SqlExecuteCompleted = {
|
|
1979
|
-
type: "SqlExecuteCompleted";
|
|
1980
|
-
} & SqlExecuteCompletedV1;
|
|
1981
|
-
type SqlExecuteOutcome2 = {
|
|
1982
|
-
rows_returned: number;
|
|
1983
|
-
duration_ms: number;
|
|
1984
|
-
type: "Success";
|
|
1985
|
-
} | {
|
|
1986
|
-
duration_ms: number;
|
|
1987
|
-
type: "Timeout";
|
|
1988
|
-
} | {
|
|
1989
|
-
errored_after_ms: number;
|
|
1990
|
-
error_type: SqlErrorType;
|
|
1991
|
-
type: "Error";
|
|
1992
|
-
};
|
|
1993
|
-
type BuildError = {
|
|
1994
|
-
type: "BuildError";
|
|
1995
|
-
} & BuildErrorV1;
|
|
1996
|
-
type ArtifactError = {
|
|
1997
|
-
type: "ArtifactError";
|
|
1998
|
-
} & ArtifactErrorV1;
|
|
1999
|
-
/**
|
|
2000
|
-
* Internal error event for capturing unusual internal failures
|
|
2001
|
-
* (e.g., python-runtime crashes, non-build errors in UI build, etc.)
|
|
2002
|
-
* This is distinct from user-facing errors like `CodeError` or `BuildError`.
|
|
2003
|
-
*/
|
|
2004
|
-
type InternalError = {
|
|
2005
|
-
type: "InternalError";
|
|
2006
|
-
} & InternalErrorV1;
|
|
2007
|
-
/**
|
|
2008
|
-
* Pipeline progress event for tracking pipeline execution state
|
|
2009
|
-
* This event is emitted after each batch is processed and allows
|
|
2010
|
-
* the pipeline to resume from where it left off
|
|
2011
|
-
*/
|
|
2012
|
-
type PipelineProgress = {
|
|
2013
|
-
type: "PipelineProgress";
|
|
2014
|
-
} & (PipelineProgressV1 | PipelineProgressV2);
|
|
2015
|
-
/**
|
|
2016
|
-
* Source state for pipeline progress, varies by source type
|
|
2017
|
-
*/
|
|
2018
|
-
type PipelineSourceState = {
|
|
2019
|
-
rows_handled: number;
|
|
2020
|
-
type: "sql-rows";
|
|
2021
|
-
} | {
|
|
2022
|
-
state: unknown;
|
|
2023
|
-
type: "python-state";
|
|
2024
|
-
};
|
|
2025
|
-
type StepExecutionFinished = {
|
|
2026
|
-
type: "StepExecutionFinished";
|
|
2027
|
-
} & StepExecutionFinishedV1;
|
|
2028
|
-
type RunFinished = {
|
|
2029
|
-
type: "RunFinished";
|
|
2030
|
-
} & RunFinishedV1;
|
|
2031
|
-
type RunFinishedOutcome = {
|
|
2032
|
-
type: "Success";
|
|
2033
|
-
} | {
|
|
2034
|
-
error: string;
|
|
2035
|
-
type: "Error";
|
|
2036
|
-
} | {
|
|
2037
|
-
type: "UserCancelled";
|
|
2038
|
-
};
|
|
2039
|
-
type LlmUsageEvent = {
|
|
2040
|
-
type: "LlmUsage";
|
|
2041
|
-
} & LlmUsageEventV1;
|
|
2042
2147
|
/**
|
|
2043
2148
|
* The outcome of a program execution.
|
|
2044
2149
|
*/
|
|
@@ -2053,9 +2158,37 @@ type ProgramExecuteOutcome = {
|
|
|
2053
2158
|
} | {
|
|
2054
2159
|
server_cancelled: {};
|
|
2055
2160
|
} | {
|
|
2056
|
-
interrupted_due_to_new_trigger: {
|
|
2057
|
-
|
|
2058
|
-
|
|
2161
|
+
interrupted_due_to_new_trigger: {
|
|
2162
|
+
/**
|
|
2163
|
+
* The trigger that caused the interruption. Optional only for backwards compatibility.
|
|
2164
|
+
* New events will have this set.
|
|
2165
|
+
*/
|
|
2166
|
+
trigger?: ProgramExecutionTriggerInterruption | null;
|
|
2167
|
+
};
|
|
2168
|
+
};
|
|
2169
|
+
/**
|
|
2170
|
+
* What interrupted a running program execution.
|
|
2171
|
+
*/
|
|
2172
|
+
type ProgramExecutionTriggerInterruption = {
|
|
2173
|
+
user_message: {
|
|
2174
|
+
/**
|
|
2175
|
+
* A unique index for a user message in a thread
|
|
2176
|
+
*/
|
|
2177
|
+
message_id: string;
|
|
2178
|
+
};
|
|
2179
|
+
} | {
|
|
2180
|
+
scheduled_agent_trigger_event: {
|
|
2181
|
+
scheduled_agent_trigger_event_id: ScheduledAgentTriggerEventId;
|
|
2182
|
+
};
|
|
2183
|
+
} | {
|
|
2184
|
+
execute_program_request: {
|
|
2185
|
+
/**
|
|
2186
|
+
* A unique identifier for an execute program request in a thread
|
|
2187
|
+
*/
|
|
2188
|
+
request_id: string;
|
|
2189
|
+
};
|
|
2190
|
+
};
|
|
2191
|
+
/**
|
|
2059
2192
|
* A chat message sent by a user
|
|
2060
2193
|
*/
|
|
2061
2194
|
interface UserMessage {
|
|
@@ -2162,17 +2295,134 @@ interface ResponseTruncation {
|
|
|
2162
2295
|
*/
|
|
2163
2296
|
total_bytes: number;
|
|
2164
2297
|
}
|
|
2165
|
-
interface
|
|
2166
|
-
|
|
2298
|
+
interface RunStartedV1 {
|
|
2299
|
+
version: "V1";
|
|
2300
|
+
}
|
|
2301
|
+
interface StepExecutionStartedV1 {
|
|
2302
|
+
step_index: number;
|
|
2303
|
+
step: RunStepDetails;
|
|
2304
|
+
version: "V1";
|
|
2305
|
+
}
|
|
2306
|
+
interface PythonRunStepDetails {
|
|
2307
|
+
other_program_id?: ProgramId | null;
|
|
2308
|
+
file: string;
|
|
2309
|
+
type: "PythonRunStepDetails";
|
|
2310
|
+
}
|
|
2311
|
+
interface SqlRunStepDetails {
|
|
2312
|
+
other_program_id?: ProgramId | null;
|
|
2313
|
+
file: string;
|
|
2314
|
+
type: "SqlRunStepDetails";
|
|
2315
|
+
}
|
|
2316
|
+
interface UiBuildRunStepDetails {
|
|
2317
|
+
other_program_id?: ProgramId | null;
|
|
2318
|
+
app_tsx: string;
|
|
2319
|
+
app_css: string;
|
|
2320
|
+
type: "UiBuildRunStepDetails";
|
|
2321
|
+
}
|
|
2322
|
+
interface PipelineRunStepDetails {
|
|
2323
|
+
type: "PipelineRunStepDetails";
|
|
2324
|
+
}
|
|
2325
|
+
interface DataArtifactUpdatedV1 {
|
|
2326
|
+
step_index: number;
|
|
2327
|
+
name: string;
|
|
2167
2328
|
title: string;
|
|
2329
|
+
artifact: ArtifactReference1;
|
|
2168
2330
|
artifact_type: ArtifactType;
|
|
2169
|
-
|
|
2170
|
-
artifact_reference: ArtifactReference1;
|
|
2331
|
+
version: "V1";
|
|
2171
2332
|
}
|
|
2172
2333
|
interface ArtifactReference1 {
|
|
2173
2334
|
artifact_id: ArtifactId;
|
|
2174
2335
|
version: number;
|
|
2175
2336
|
}
|
|
2337
|
+
interface OutputEmittedV1 {
|
|
2338
|
+
step_index: number;
|
|
2339
|
+
output: string;
|
|
2340
|
+
version: "V1";
|
|
2341
|
+
}
|
|
2342
|
+
interface CodeErrorV1 {
|
|
2343
|
+
step_index: number;
|
|
2344
|
+
error: string;
|
|
2345
|
+
version: "V1";
|
|
2346
|
+
}
|
|
2347
|
+
interface SqlErrorV1 {
|
|
2348
|
+
step_index: number;
|
|
2349
|
+
error: string;
|
|
2350
|
+
version: "V1";
|
|
2351
|
+
}
|
|
2352
|
+
interface SqlExecuteStartedV1 {
|
|
2353
|
+
step_index: number;
|
|
2354
|
+
sql_query_id: SqlQueryId;
|
|
2355
|
+
sql: Sql;
|
|
2356
|
+
is_streaming: boolean;
|
|
2357
|
+
version: "V1";
|
|
2358
|
+
}
|
|
2359
|
+
interface SqlExecuteCompletedV1 {
|
|
2360
|
+
step_index: number;
|
|
2361
|
+
sql_query_id: SqlQueryId;
|
|
2362
|
+
outcome: ProgramRunSqlExecuteOutcome;
|
|
2363
|
+
pushdown_mode: string;
|
|
2364
|
+
version: "V1";
|
|
2365
|
+
}
|
|
2366
|
+
interface BuildErrorV1 {
|
|
2367
|
+
step_index: number;
|
|
2368
|
+
error: string;
|
|
2369
|
+
version: "V1";
|
|
2370
|
+
}
|
|
2371
|
+
interface ArtifactErrorV1 {
|
|
2372
|
+
step_index: number;
|
|
2373
|
+
error: string;
|
|
2374
|
+
version: "V1";
|
|
2375
|
+
}
|
|
2376
|
+
interface InternalErrorV1 {
|
|
2377
|
+
step_index: number;
|
|
2378
|
+
error: string;
|
|
2379
|
+
version: "V1";
|
|
2380
|
+
}
|
|
2381
|
+
interface PipelineProgressV1 {
|
|
2382
|
+
step_index: number;
|
|
2383
|
+
transaction_id?: TransactionId | null;
|
|
2384
|
+
schema_name?: ShelfSchemaName | null;
|
|
2385
|
+
rows_handled: number;
|
|
2386
|
+
version: "V1";
|
|
2387
|
+
}
|
|
2388
|
+
interface PipelineProgressV2 {
|
|
2389
|
+
step_index: number;
|
|
2390
|
+
transaction_id?: TransactionId | null;
|
|
2391
|
+
schema_name?: ShelfSchemaName | null;
|
|
2392
|
+
source_state: PipelineSourceState;
|
|
2393
|
+
version: "V2";
|
|
2394
|
+
}
|
|
2395
|
+
interface ShelfTransactionOpenedV1 {
|
|
2396
|
+
step_index: number;
|
|
2397
|
+
transaction_id: TransactionId;
|
|
2398
|
+
version: "V1";
|
|
2399
|
+
}
|
|
2400
|
+
interface ShelfTransactionSuspendedV1 {
|
|
2401
|
+
step_index: number;
|
|
2402
|
+
transaction_id: TransactionId;
|
|
2403
|
+
version: "V1";
|
|
2404
|
+
}
|
|
2405
|
+
interface StepExecutionFinishedV1 {
|
|
2406
|
+
step_index: number;
|
|
2407
|
+
error?: string | null;
|
|
2408
|
+
version: "V1";
|
|
2409
|
+
}
|
|
2410
|
+
interface RunFinishedV1 {
|
|
2411
|
+
outcome: RunFinishedOutcome;
|
|
2412
|
+
version: "V1";
|
|
2413
|
+
}
|
|
2414
|
+
interface LlmUsageEventV1 {
|
|
2415
|
+
step_index: number;
|
|
2416
|
+
usage: LlmUsage;
|
|
2417
|
+
version: "V1";
|
|
2418
|
+
}
|
|
2419
|
+
interface ArtifactUpdate {
|
|
2420
|
+
identifier: string;
|
|
2421
|
+
title: string;
|
|
2422
|
+
artifact_type: RuntimeArtifactType;
|
|
2423
|
+
data?: ArtifactDataPreview | null;
|
|
2424
|
+
artifact_reference: ArtifactReference1;
|
|
2425
|
+
}
|
|
2176
2426
|
/**
|
|
2177
2427
|
* Definition of a wiki page
|
|
2178
2428
|
*/
|
|
@@ -2515,7 +2765,7 @@ interface BuiltUi {
|
|
|
2515
2765
|
interface ArtifactUpdate1 {
|
|
2516
2766
|
identifier: string;
|
|
2517
2767
|
title: string;
|
|
2518
|
-
artifact_type:
|
|
2768
|
+
artifact_type: RuntimeArtifactType;
|
|
2519
2769
|
data?: ArtifactDataPreview | null;
|
|
2520
2770
|
artifact_reference: ArtifactReference1;
|
|
2521
2771
|
}
|
|
@@ -2831,115 +3081,33 @@ interface SocialFeedRatingLlmUsage {
|
|
|
2831
3081
|
* The payload of an `ExecuteProgramRequest` thread event.
|
|
2832
3082
|
*/
|
|
2833
3083
|
interface ExecuteProgramRequestData {
|
|
2834
|
-
|
|
3084
|
+
/**
|
|
3085
|
+
* `Some(pkg)`: run the named saved program package's `entrypoint`.
|
|
3086
|
+
* `None`: run the `entrypoint` file directly out of the thread's
|
|
3087
|
+
* workspace — i.e. a file the agent has written via `WriteFile`
|
|
3088
|
+
* actions in this thread. The runner reconstructs the workspace
|
|
3089
|
+
* from the thread's events and looks the entrypoint up there.
|
|
3090
|
+
*/
|
|
3091
|
+
package_name?: ProgramPackageName | null;
|
|
2835
3092
|
entrypoint?: string | null;
|
|
3093
|
+
/**
|
|
3094
|
+
* When non-empty, exposed as `sys.argv[1:]` of the program. Only
|
|
3095
|
+
* legal when the entrypoint resolves to a single Python step;
|
|
3096
|
+
* `run_config_for_entrypoint` rejects non-empty arguments for
|
|
3097
|
+
* `.run.json` and `.sql` entrypoints with a descriptive error
|
|
3098
|
+
* that surfaces as a thread-level `Errored` outcome.
|
|
3099
|
+
*/
|
|
3100
|
+
arguments?: string[] | null;
|
|
2836
3101
|
uploads: UserUpload[];
|
|
2837
3102
|
timezone: TzWrapper;
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
}
|
|
2847
|
-
interface PythonRunStepDetails {
|
|
2848
|
-
other_program_id?: ProgramId | null;
|
|
2849
|
-
file: string;
|
|
2850
|
-
type: "PythonRunStepDetails";
|
|
2851
|
-
}
|
|
2852
|
-
interface SqlRunStepDetails {
|
|
2853
|
-
other_program_id?: ProgramId | null;
|
|
2854
|
-
file: string;
|
|
2855
|
-
type: "SqlRunStepDetails";
|
|
2856
|
-
}
|
|
2857
|
-
interface UiBuildRunStepDetails {
|
|
2858
|
-
other_program_id?: ProgramId | null;
|
|
2859
|
-
app_tsx: string;
|
|
2860
|
-
app_css: string;
|
|
2861
|
-
type: "UiBuildRunStepDetails";
|
|
2862
|
-
}
|
|
2863
|
-
interface PipelineRunStepDetails {
|
|
2864
|
-
type: "PipelineRunStepDetails";
|
|
2865
|
-
}
|
|
2866
|
-
interface DataArtifactUpdatedV1 {
|
|
2867
|
-
step_index: number;
|
|
2868
|
-
name: string;
|
|
2869
|
-
title: string;
|
|
2870
|
-
artifact: ArtifactReference1;
|
|
2871
|
-
artifact_type: ArtifactType2;
|
|
2872
|
-
version: "V1";
|
|
2873
|
-
}
|
|
2874
|
-
interface OutputEmittedV1 {
|
|
2875
|
-
step_index: number;
|
|
2876
|
-
output: string;
|
|
2877
|
-
version: "V1";
|
|
2878
|
-
}
|
|
2879
|
-
interface CodeErrorV1 {
|
|
2880
|
-
step_index: number;
|
|
2881
|
-
error: string;
|
|
2882
|
-
version: "V1";
|
|
2883
|
-
}
|
|
2884
|
-
interface SqlErrorV1 {
|
|
2885
|
-
step_index: number;
|
|
2886
|
-
error: string;
|
|
2887
|
-
version: "V1";
|
|
2888
|
-
}
|
|
2889
|
-
interface SqlExecuteStartedV1 {
|
|
2890
|
-
step_index: number;
|
|
2891
|
-
sql_query_id: SqlQueryId;
|
|
2892
|
-
sql: Sql;
|
|
2893
|
-
is_streaming: boolean;
|
|
2894
|
-
version: "V1";
|
|
2895
|
-
}
|
|
2896
|
-
interface SqlExecuteCompletedV1 {
|
|
2897
|
-
step_index: number;
|
|
2898
|
-
sql_query_id: SqlQueryId;
|
|
2899
|
-
outcome: SqlExecuteOutcome2;
|
|
2900
|
-
pushdown_mode: string;
|
|
2901
|
-
version: "V1";
|
|
2902
|
-
}
|
|
2903
|
-
interface BuildErrorV1 {
|
|
2904
|
-
step_index: number;
|
|
2905
|
-
error: string;
|
|
2906
|
-
version: "V1";
|
|
2907
|
-
}
|
|
2908
|
-
interface ArtifactErrorV1 {
|
|
2909
|
-
step_index: number;
|
|
2910
|
-
error: string;
|
|
2911
|
-
version: "V1";
|
|
2912
|
-
}
|
|
2913
|
-
interface InternalErrorV1 {
|
|
2914
|
-
step_index: number;
|
|
2915
|
-
error: string;
|
|
2916
|
-
version: "V1";
|
|
2917
|
-
}
|
|
2918
|
-
interface PipelineProgressV1 {
|
|
2919
|
-
step_index: number;
|
|
2920
|
-
transaction_id?: TransactionId | null;
|
|
2921
|
-
rows_handled: number;
|
|
2922
|
-
version: "V1";
|
|
2923
|
-
}
|
|
2924
|
-
interface PipelineProgressV2 {
|
|
2925
|
-
step_index: number;
|
|
2926
|
-
transaction_id?: TransactionId | null;
|
|
2927
|
-
source_state: PipelineSourceState;
|
|
2928
|
-
version: "V2";
|
|
2929
|
-
}
|
|
2930
|
-
interface StepExecutionFinishedV1 {
|
|
2931
|
-
step_index: number;
|
|
2932
|
-
error?: string | null;
|
|
2933
|
-
version: "V1";
|
|
2934
|
-
}
|
|
2935
|
-
interface RunFinishedV1 {
|
|
2936
|
-
outcome: RunFinishedOutcome;
|
|
2937
|
-
version: "V1";
|
|
2938
|
-
}
|
|
2939
|
-
interface LlmUsageEventV1 {
|
|
2940
|
-
step_index: number;
|
|
2941
|
-
usage: LlmUsage;
|
|
2942
|
-
version: "V1";
|
|
3103
|
+
/**
|
|
3104
|
+
* A natural language description of the purpose of invoking this program
|
|
3105
|
+
*/
|
|
3106
|
+
description?: string | null;
|
|
3107
|
+
/**
|
|
3108
|
+
* What entity created this request
|
|
3109
|
+
*/
|
|
3110
|
+
request_provenance?: ExecuteProgramRequestProvenance | null;
|
|
2943
3111
|
}
|
|
2944
3112
|
|
|
2945
3113
|
/**
|
|
@@ -3137,7 +3305,7 @@ type ArtifactMetadata = {
|
|
|
3137
3305
|
version: number;
|
|
3138
3306
|
title: string;
|
|
3139
3307
|
description: string | null;
|
|
3140
|
-
artifact_type:
|
|
3308
|
+
artifact_type: ArtifactType;
|
|
3141
3309
|
user_id: string;
|
|
3142
3310
|
metadata: unknown;
|
|
3143
3311
|
project_id: string;
|
|
@@ -3227,7 +3395,12 @@ declare function isInteractionAnalyzing(events: ThreadEvent[], skipAnalysis?: bo
|
|
|
3227
3395
|
type SearchWikiPagesResult = NonNullable<SearchWikiPagesQuery["admin_wiki_search"]>;
|
|
3228
3396
|
type WikiPageNamespace = "guide" | "regular";
|
|
3229
3397
|
type WikiPageItem = WikiPageV1 & {
|
|
3230
|
-
|
|
3398
|
+
/**
|
|
3399
|
+
* The stable identifier of the wiki page. Use this when updating a page,
|
|
3400
|
+
* since it does not change when the page is renamed.
|
|
3401
|
+
*/
|
|
3402
|
+
id: string;
|
|
3403
|
+
slug: string;
|
|
3231
3404
|
created_at: string;
|
|
3232
3405
|
last_modified_at?: string | null | undefined;
|
|
3233
3406
|
/**
|
|
@@ -3248,7 +3421,12 @@ type WikiPageItem = WikiPageV1 & {
|
|
|
3248
3421
|
definition?: string | null;
|
|
3249
3422
|
};
|
|
3250
3423
|
type WikiPageDetail = WikiPageV1 & {
|
|
3251
|
-
|
|
3424
|
+
/**
|
|
3425
|
+
* The stable identifier of the wiki page. Use this when updating a page,
|
|
3426
|
+
* since it does not change when the page is renamed.
|
|
3427
|
+
*/
|
|
3428
|
+
id: string;
|
|
3429
|
+
slug: string;
|
|
3252
3430
|
created_at: string;
|
|
3253
3431
|
last_modified_at?: string | null | undefined;
|
|
3254
3432
|
};
|
|
@@ -3259,9 +3437,19 @@ type ListWikiPageArgs = {
|
|
|
3259
3437
|
include_stub?: boolean;
|
|
3260
3438
|
offset?: number;
|
|
3261
3439
|
limit?: number;
|
|
3262
|
-
order_by?: "created_at" | "last_modified_at" | "
|
|
3440
|
+
order_by?: "created_at" | "last_modified_at" | "slug";
|
|
3263
3441
|
ordering?: Order_By;
|
|
3264
3442
|
};
|
|
3443
|
+
/**
|
|
3444
|
+
* Input arguments for creating a wiki page.
|
|
3445
|
+
*/
|
|
3446
|
+
type CreateWikiPageArgs = WikiPageV1 & {
|
|
3447
|
+
slug?: string;
|
|
3448
|
+
};
|
|
3449
|
+
/**
|
|
3450
|
+
* Input arguments for updating a wiki page.
|
|
3451
|
+
*/
|
|
3452
|
+
type UpdateWikiContentArgs = Partial<WikiPageV1>;
|
|
3265
3453
|
/**
|
|
3266
3454
|
* List wiki pages of the current project.
|
|
3267
3455
|
*/
|
|
@@ -3274,6 +3462,18 @@ declare function searchWikiPages(client: ApolloClient, variables: SearchWikiPage
|
|
|
3274
3462
|
* Get wiki page by id.
|
|
3275
3463
|
*/
|
|
3276
3464
|
declare function getWikiPage(client: ApolloClient, project_id: string, namespace: string, id: string): Promise<WikiPageDetail | null | undefined>;
|
|
3465
|
+
/**
|
|
3466
|
+
* Create a wiki page with content.
|
|
3467
|
+
*/
|
|
3468
|
+
declare function createWikiPage(client: ApolloClient, { slug, ...others }: CreateWikiPageArgs): Promise<string | undefined>;
|
|
3469
|
+
/**
|
|
3470
|
+
* Update a wiki page with content.
|
|
3471
|
+
*/
|
|
3472
|
+
declare function updateWikiPage(client: ApolloClient, id: string, content: UpdateWikiContentArgs): Promise<string | undefined>;
|
|
3473
|
+
/**
|
|
3474
|
+
* Delete a wiki page by id.
|
|
3475
|
+
*/
|
|
3476
|
+
declare function deleteWikiPage(client: ApolloClient, id: string): Promise<string | undefined>;
|
|
3277
3477
|
|
|
3278
3478
|
/**
|
|
3279
3479
|
* A low-level API class for PromptQL.
|
|
@@ -3411,6 +3611,18 @@ declare class Wiki {
|
|
|
3411
3611
|
* Get a PromptQL wiki page by primary keys.
|
|
3412
3612
|
*/
|
|
3413
3613
|
get(namespace: WikiPageNamespace, id: string): Promise<WikiPageDetail | null | undefined>;
|
|
3614
|
+
/**
|
|
3615
|
+
* Create a wiki page with content.
|
|
3616
|
+
*/
|
|
3617
|
+
create(args: CreateWikiPageArgs): Promise<string | undefined>;
|
|
3618
|
+
/**
|
|
3619
|
+
* Update a wiki page with content.
|
|
3620
|
+
*/
|
|
3621
|
+
update(id: string, args: UpdateWikiContentArgs): Promise<string | undefined>;
|
|
3622
|
+
/**
|
|
3623
|
+
* Delete a wiki page by ID.
|
|
3624
|
+
*/
|
|
3625
|
+
delete(id: string): Promise<string | undefined>;
|
|
3414
3626
|
}
|
|
3415
3627
|
|
|
3416
3628
|
/**
|
|
@@ -3629,4 +3841,4 @@ declare function getThreadEventMessageId(event: ThreadEvent$1 | undefined): stri
|
|
|
3629
3841
|
*/
|
|
3630
3842
|
declare function buildPromptQLUrl(fqdn: string): string;
|
|
3631
3843
|
|
|
3632
|
-
export { type AgentGeneratedResponse, type AgentLearningUpdate, type AgentLoopAction, type AgentLoopActionLegacy, type AgentLoopActionResult, type AgentLoopActionUpdate, type AgentLoopTerminalAction, type AgentLoopUpdate, type AgentTrigger, type AgentUpdate, type AgentUpdateContent, type ApolloClientOptions, type ArtifactDataPreview, type ArtifactError, type ArtifactErrorV1, type ArtifactId, type ArtifactMetadata, type ArtifactReference, type ArtifactReference1, type ArtifactType, type
|
|
3844
|
+
export { type AgentGeneratedResponse, type AgentLearningUpdate, type AgentLoopAction, type AgentLoopActionLegacy, type AgentLoopActionResult, type AgentLoopActionUpdate, type AgentLoopActionUpdateUnversioned, type AgentLoopActionUpdateVersioned, type AgentLoopTerminalAction, type AgentLoopUpdate, type AgentTrigger, type AgentUpdate, type AgentUpdateContent, type ApolloClientOptions, type ArtifactDataPreview, type ArtifactError, type ArtifactErrorV1, type ArtifactId, type ArtifactMetadata, type ArtifactReference, type ArtifactReference1, type ArtifactType, type ArtifactUpdate, type ArtifactUpdate1, type AssumptionFactCheck, type BuildError, type BuildErrorV1, type BuiltUi, type BuiltUi1, CancelAgentMessageMutationVariables, type CheckedAssumption, type CheckedTopic, type CodeBlock, type CodeError, type CodeErrorV1, type CodeExecutionComplete, type CodeOutputAnalysis, type CodeOutputAnalyzed, type ComponentResponse, type ComponentResponse1, type ComponentResponse2, type ComponentResponse3, type ComponentResponse4, type ComponentResponse5, type ConfidenceAnalysis, type ConfidenceAnalysisLlmUsage, type ConfidenceAnalysisUpdate, type ContextExplorerCompleted, type ContextExplorerStarted, type ContextExplorerUpdate, type CopyFileEntry, type CreateRoomArguments, type CreateWikiPageArgs, type DataArtifactUpdated, type DataArtifactUpdatedV1, type DecideNextStepsFields, type EventOfKind, type ExecuteProgramRequestData, type ExecuteProgramRequestProvenance, type ExternalKnowledgeExplorerAttempt, type ExternalKnowledgeExplorerAttempt1, type ExternalKnowledgeSummary, type FactSource, type FederatedWikiName, type GeneratedCode, type GeneratedFile, type GeneratedResponse, type GeneratedUiCode, type GetThreadEventOptions, GetThreadsQueryVariables, type IPromptQLSdk, type InteractionDecision, type InteractionDecisionAccept, type InteractionDecisionDecline, type InteractionDecisionUpdate, type InteractionFinishedEvent, type InteractionFinishedUpdate, type InteractionOutcome, type InteractionOutcomeStatus, type InteractionUpdate, type InternalError, type InternalErrorV1, type InternalUpdate, type InterruptedByTrigger, type KeysOfUnion, type LearningBlockId, type LearningSuggestion, type LearningSuggestionUpdate, type LearningSuggestionUpdateV1, type ListWikiPageArgs, type LlmResponse, type LlmUsage, type LlmUsageEvent, type LlmUsageEventV1, type MessageProcessingStarted, type MessageProcessingUpdate, type NeedsSupportUpdate, type OrchestratorUpdate, Order_By, type OutputEmitted, type OutputEmittedV1, type PipelineProgress, type PipelineProgressV1, type PipelineProgressV2, type PipelineRunStepDetails, type PipelineSourceState, type PlanGenerationStarted, type PlanStepGenerated, type PlanningDecisionCompleted, type PlanningDecisionPlanningRequired, type PlanningDecisionStarted, type PlanningDecisionUpdate, type ProgramExecuteOutcome, type ProgramExecuteUpdate, type ProgramExecutionTriggerInterruption, type ProgramId, type ProgramPackageName, type ProgramRunEvent, type ProgramRunSqlExecuteOutcome, type ProgramRunnerAction, type ProgrammerUpdate, type ProjectInfoOutput, PromptQLSdk, type PromptQLSdkOptions, type PromptQlUserId, type PythonRunStepDetails, ROOM_NAME_REGEX, type ResponseGenerationUpdate, type ResponseTruncation, RoomFragment, type RoomVisibilityType, type RunFinished, type RunFinishedOutcome, type RunFinishedV1, type RunProgramRequest, type RunSavedProgramRequest, type RunStarted, type RunStartedV1, type RunStepDetails, type RuntimeArtifactType, type SavedProgramRunnerUpdate, type SavedProgramRunnerUpdateV0, type ScheduledAgentTriggerEventId, type ScheduledAgentTriggerId, type ScheduledAgentTriggerPayload, type ScheduledAgentTriggerPayloadV1, type ScheduledAgentTriggerType, type SchemaContext, type SchemaExplored, type SchemaExplorerCompleted, type SchemaExplorerStarted, type SchemaExplorerUpdate, type SchemaTask, type SchemaTasksGenerationCompleted, type SchemaTasksGenerationStarted, type SchemaTasksGenerationUpdate, type SearchWikiPagesResult, type SendMessageToThreadArguments, type SendMessageToThreadOutput, SendThreadMessageMutationVariables, type ServerMetadata, type ShelfActionEvent, type ShelfSchemaName, type ShelfTransactionOpened, type ShelfTransactionOpenedV1, type ShelfTransactionSuspended, type ShelfTransactionSuspendedV1, type ShelfUpdate, type ShelfUpdateV1, type SkillType, type SocialFeedRatingLlmUsage, type SocialFeedRatingUpdate, type Span, type Sql, type SqlError, type SqlErrorType, type SqlErrorV1, type SqlExecuteCompleted, type SqlExecuteCompletedV1, type SqlExecuteOutcome, type SqlExecuteStarted, type SqlExecuteStartedV1, type SqlQueryId, type SqlRunStepDetails, type StartThreadArguments, StartThreadMutationVariables, type StartThreadOutput, type StartingOrchestrator, type StepExecutionFinished, type StepExecutionFinishedV1, type StepExecutionStarted, type StepExecutionStartedV1, type StepUpdate, type StreamThreadEventOptions, type TargetWikiPage, type TasksGenerated, type Teaching, type TeachingId, type ThreadEvent, type ThreadEvent$1 as ThreadEventData, ThreadFragment, type ThreadId, type TransactionId, type TzWrapper, USER_AGENT, type UiBuildFailure, type UiBuildRunStepDetails, type UiMetadata, type UiProgrammerUpdate, type UpdateWikiContentArgs, type UserCancel, type UserCancelEvent, type UserEventProvenance, type UserMessage, type UserMessageEvent, type UserUpload, type VersionedAgentUpdate, type VersionedOrUnversionedAgentUpdate, type Warning, type WikiAuditId, type WikiChange, type WikiContent, type WikiDelta, type WikiExplorerCompleted, type WikiExplorerStarted, type WikiExplorerUpdate, type WikiGenerationUpdate, type WikiInfoGenerated, type WikiLearningSuggestionUpdate, type WikiPageDetail, type WikiPageItem, type WikiPageNamespace, type WikiPagePreview, type WikiPageSearchResult, type WikiPageV1, type WikiSection, type WikiSelectionUpdate, type WikiTitle, buildPromptQLUrl, cancelAgentMessage, createApolloClient, createRoom, createWikiPage, deleteWikiPage, diffThreadEvents, downloadArtifactData, getAgentGeneratedResponse, getAgentInteractionDecisionAcceptInteractionEvent, getAgentInteractionDecisionDeclineInteractionEvent, getAgentInteractionFinishedEvent, getAgentMessageProcessingStartedEvent, getAgentOrchestratorContextExplorerCompletedEvent, getAgentOrchestratorContextExplorerStartedEvent, getAgentOrchestratorContextExplorerUpdateEvent, getAgentOrchestratorSchemaExplorerCodeExecutionCompleteEvent, getAgentOrchestratorSchemaExplorerCodeOutputAnalyzedEvent, getAgentOrchestratorSchemaExplorerCompletedEvent, getAgentOrchestratorSchemaExplorerGeneratedCodeEvent, getAgentOrchestratorSchemaExplorerSchemaExploredEvent, getAgentOrchestratorSchemaExplorerStartedEvent, getAgentOrchestratorSchemaExplorerUpdateEvent, getAgentOrchestratorSchemaTasksGeneratedEvent, getAgentOrchestratorSchemaTasksGenerationCompletedEvent, getAgentOrchestratorSchemaTasksGenerationStartedEvent, getAgentOrchestratorSchemaTasksGenerationUpdateEvent, getAgentOrchestratorStepProgrammerEvent, getAgentOrchestratorStepSavedProgramRunnerEvent, getAgentOrchestratorStepUiProgrammerEvent, getAgentOrchestratorStepUpdateEvent, getAgentOrchestratorUpdateEvent, getAgentOrchestratorWikiExplorerCompletedEvent, getAgentOrchestratorWikiExplorerStartedEvent, getAgentOrchestratorWikiExplorerUpdateEvent, getAgentOrchestratorWikiInfoGeneratedEvent, getAgentPlanGenerationStartedEvent, getAgentPlanStepGeneratedEvent, getAgentPlanningDecisionCompletedEvent, getAgentPlanningDecisionPlanningRequiredEvent, getAgentPlanningDecisionStartedEvent, getAgentPlanningDecisionUpdateEvent, getAgentStartingOrchestratorEvent, getArtifactMetadata, getThread, getThreadEventMessageId, getThreadEvents, getUserCancelEvent, getUserMessageEvent, getWikiPage, isInteractionAnalyzing, listArtifactMetadataByThreadId, listRooms, listThreads, listWikiPages, searchWikiPages, sendThreadMessage, startThread, streamThreadMessageEvents, subscribeThreadEvents, updateWikiPage, validateRoomName };
|