MCPcopy Create free account
hub / github.com/continuedev/continue / toolCallStateToContextItems

Function toolCallStateToContextItems

gui/src/pages/gui/ToolCallDiv/utils.tsx:85–96  ·  view source on GitHub ↗
(
  toolCallState: ToolCallState | undefined,
)

Source from the content-addressed store, hash-verified

83}
84
85export function toolCallStateToContextItems(
86 toolCallState: ToolCallState | undefined,
87): ContextItemWithId[] {
88 if (!toolCallState) {
89 return [];
90 }
91 return (
92 toolCallState.output?.map((ctxItem) =>
93 toolCallCtxItemToCtxItemWithId(ctxItem, toolCallState.toolCallId),
94 ) ?? []
95 );
96}
97
98export function toolCallCtxItemToCtxItemWithId(
99 ctxItem: ContextItem,

Callers 3

ToolCallDisplayFunction · 0.90
SimpleToolCallUIFunction · 0.90
constructMessagesFunction · 0.90

Calls 1

Tested by

no test coverage detected