cq back in sync
This commit is contained in:
@@ -55,12 +55,13 @@ async function demonstrateNestedManifold(): Promise<void> {
|
||||
{ text: 'analyze the results', description: 'Main: Data Analysis' },
|
||||
{ text: 'transform the output', description: 'Main: Data Transformation' },
|
||||
];
|
||||
|
||||
for (const { text, description } of prompts) {
|
||||
const errorSink = [];
|
||||
for (const { text } of prompts) {
|
||||
try {
|
||||
const navigated = await mainManifold.navigate(text);
|
||||
const executed = await mainManifold.executeWorkflow(text);
|
||||
await mainManifold.navigate(text);
|
||||
await mainManifold.executeWorkflow(text);
|
||||
} catch (error) {
|
||||
errorSink.push(error);
|
||||
// Handle errors silently in demo
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
import { log } from './logger';
|
||||
|
||||
import "./types";
|
||||
import { IntentResult, WorkflowState } from './types';
|
||||
export class DummyIntentMap {
|
||||
async query(prompt: string): Promise<IntentResult> {
|
||||
log.debug(`Processing intent query for prompt: ${prompt}`);
|
||||
@@ -63,7 +64,7 @@ export class ManifoldRegion {
|
||||
region.adjacentRegions.add(this);
|
||||
}
|
||||
|
||||
async getValidOperators(state: WorkflowState): Promise<WorkflowOperator[]> {
|
||||
async getValidOperators(_state: WorkflowState): Promise<WorkflowOperator[]> {
|
||||
log.debug(`Getting valid operators for region ${this.name}`);
|
||||
return this.operators;
|
||||
}
|
||||
|
4
src/types.d.ts
vendored
4
src/types.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
// src/types.d.ts
|
||||
interface WorkflowState {
|
||||
export interface WorkflowState {
|
||||
[key: string]: unknown;
|
||||
validated?: boolean;
|
||||
cleaned?: boolean;
|
||||
@@ -12,7 +12,7 @@ interface WorkflowState {
|
||||
step2?: boolean;
|
||||
}
|
||||
|
||||
interface IntentResult {
|
||||
export interface IntentResult {
|
||||
confidence: number;
|
||||
action: string;
|
||||
}
|
Reference in New Issue
Block a user