Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface StreamSourceState {
setIsStreaming: (isLoading: boolean) => void;
addChunk: (chunk: string) => void;
message: string;
reset: () => void;
}

export const useStreamSourceStore = create<StreamSourceState>()(
Expand Down
4 changes: 2 additions & 2 deletions src/lib/cond8/directors/create-workflow/actors/accumulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const createAccumulatorActors = <C8 extends WorkflowConduit>() => {
},
};

const Summurize = {
const Summarize = {
Into: (setKey: string) => (c8: C8) => {
c8.var(setKey, c8.assistAcc.getAcc());
return c8;
Expand All @@ -29,6 +29,6 @@ export const createAccumulatorActors = <C8 extends WorkflowConduit>() => {
From,
Finalize,
Reset,
Summurize,
Summarize,
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ StartCreateWorkflowDirector(
Actors.Stream.Stop,
)(
// === When aligned, summarize and reset accumulators, then transition to enrichment phase ===
Actors.Accumulator.Summurize.Into('Refined Inputs'),
Actors.Accumulator.Summarize.Into('Refined Inputs'),
Actors.Accumulator.Reset,
Actors.Prompt.Reset,

Expand Down