mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-06 12:45:07 -05:00
* progress * progress * deploy command update * add trigger mode modal * fix trigger icons' * fix corners for add trigger card * update serialization error visual in console * works * improvement(copilot-context): structured context for copilot * forgot long description * Update metadata params * progress * add better workflow ux * progress * highlighting works * trigger card * default agent workflow change * fix build error * remove any casts * address greptile comments * Diff input format * address greptile comments * improvement: ui/ux * improvement: changed to vertical scrolling * fix(workflow): ensure new blocks from sidebar click/drag use getUniqueBlockName (with semantic trigger base when applicable) * Validation + build/edit mark complete * fix trigger dropdown * Copilot stuff (lots of it) * Temp update prod dns * fix trigger check * fix * fix trigger mode check * Fix yaml imports * Fix autolayout error * fix deployed chat * Fix copilot input text overflow * fix trigger mode persistence in addBlock with enableTriggerMode flag passed in * Lint * Fix failing tests * Reset ishosted * Lint * input format for legacy starter * Fix executor --------- Co-authored-by: Siddharth Ganesan <siddharthganesan@gmail.com> Co-authored-by: Emir Karabeg <emirkarabeg@berkeley.edu>
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
import { Loader2, MinusCircle, XCircle, Zap } from 'lucide-react'
|
|
import {
|
|
BaseClientTool,
|
|
type BaseClientToolMetadata,
|
|
ClientToolCallState,
|
|
} from '@/lib/copilot/tools/client/base-tool'
|
|
|
|
export class GetTriggerExamplesClientTool extends BaseClientTool {
|
|
static readonly id = 'get_trigger_examples'
|
|
|
|
constructor(toolCallId: string) {
|
|
super(toolCallId, GetTriggerExamplesClientTool.id, GetTriggerExamplesClientTool.metadata)
|
|
}
|
|
|
|
static readonly metadata: BaseClientToolMetadata = {
|
|
displayNames: {
|
|
[ClientToolCallState.generating]: { text: 'Selecting a trigger', icon: Loader2 },
|
|
[ClientToolCallState.pending]: { text: 'Selecting a trigger', icon: Loader2 },
|
|
[ClientToolCallState.executing]: { text: 'Selecting a trigger', icon: Loader2 },
|
|
[ClientToolCallState.success]: { text: 'Selected a trigger', icon: Zap },
|
|
[ClientToolCallState.error]: { text: 'Failed to select a trigger', icon: XCircle },
|
|
[ClientToolCallState.aborted]: { text: 'Aborted selecting a trigger', icon: MinusCircle },
|
|
[ClientToolCallState.rejected]: { text: 'Skipped selecting a trigger', icon: MinusCircle },
|
|
},
|
|
interrupt: undefined,
|
|
}
|
|
|
|
async execute(): Promise<void> {
|
|
return
|
|
}
|
|
}
|