self review

This commit is contained in:
Charlie Kolb 2024-11-08 14:20:02 +01:00
parent 65d50f8ad6
commit f677ca5699
No known key found for this signature in database
4 changed files with 5 additions and 17 deletions

View file

@ -115,7 +115,6 @@ export async function toolsAgentExecute(this: IExecuteFunctions): Promise<INodeE
| undefined; | undefined;
const tools = (await getConnectedTools(this, true, false)) as Array<DynamicStructuredTool | Tool>; const tools = (await getConnectedTools(this, true, false)) as Array<DynamicStructuredTool | Tool>;
console.log('tools', tools);
const outputParser = (await getOptionalOutputParsers(this))?.[0]; const outputParser = (await getOptionalOutputParsers(this))?.[0];
let structuredOutputParserTool: DynamicStructuredTool | undefined; let structuredOutputParserTool: DynamicStructuredTool | undefined;
/** /**

View file

@ -389,11 +389,6 @@ const shouldShowWarning = computed(() => {
<template v-if="shouldShowWarning" #table-user-info> <template v-if="shouldShowWarning" #table-user-info>
<div :class="$style.noToolsUsedAlert"> <div :class="$style.noToolsUsedAlert">
<!-- <N8nAlert
:title="i18n.baseText('ndv.output.noToolUsedInfo.title')"
:description="i18n.baseText('ndv.output.noToolUsedInfo.description')"
type="info"
/> -->
<N8nCallout theme="secondary"> <N8nCallout theme="secondary">
{{ {{
i18n.baseText('ndv.output.noToolUsedInfo.title') + i18n.baseText('ndv.output.noToolUsedInfo.title') +

View file

@ -1594,9 +1594,6 @@ defineExpose({ enterEditMode });
@active-row-changed="onItemHover" @active-row-changed="onItemHover"
@display-mode-change="onDisplayModeChange" @display-mode-change="onDisplayModeChange"
> >
<!-- <template #table-user-info>
<slot name="table-user-info"></slot>
</template> -->
</LazyRunDataTable> </LazyRunDataTable>
</Suspense> </Suspense>

View file

@ -6,12 +6,7 @@ import { useWorkflowsStore } from '@/stores/workflows.store';
import { getMappedExpression } from '@/utils/mappingUtils'; import { getMappedExpression } from '@/utils/mappingUtils';
import { getPairedItemId } from '@/utils/pairedItemUtils'; import { getPairedItemId } from '@/utils/pairedItemUtils';
import { shorten } from '@/utils/typesUtils'; import { shorten } from '@/utils/typesUtils';
import { import type { GenericValue, IDataObject, INodeExecutionData } from 'n8n-workflow';
NodeHelpers,
type GenericValue,
type IDataObject,
type INodeExecutionData,
} from 'n8n-workflow';
import { computed, onMounted, ref, watch } from 'vue'; import { computed, onMounted, ref, watch } from 'vue';
import Draggable from './Draggable.vue'; import Draggable from './Draggable.vue';
import MappingPill from './MappingPill.vue'; import MappingPill from './MappingPill.vue';
@ -392,11 +387,11 @@ watch(focusedMappableInput, (curr) => {
<template> <template>
<div :class="[$style.dataDisplay, { [$style.highlight]: highlight }]"> <div :class="[$style.dataDisplay, { [$style.highlight]: highlight }]">
<slot name="table-user-info"></slot>
<table v-if="tableData.columns && tableData.columns.length === 0" :class="$style.table"> <table v-if="tableData.columns && tableData.columns.length === 0" :class="$style.table">
<thead> <thead>
<tr> <tr>
<th :class="$style.emptyCell"></th> <th :class="$style.emptyCell"></th>
<th :class="$style.tableRightMargin"></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -413,6 +408,7 @@ watch(focusedMappableInput, (curr) => {
> >
<N8nInfoTip>{{ i18n.baseText('runData.emptyItemHint') }}</N8nInfoTip> <N8nInfoTip>{{ i18n.baseText('runData.emptyItemHint') }}</N8nInfoTip>
</td> </td>
<td :class="$style.tableRightMargin"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -482,6 +478,7 @@ watch(focusedMappableInput, (curr) => {
</span> </span>
</N8nTooltip> </N8nTooltip>
</th> </th>
<th :class="$style.tableRightMargin"></th>
</tr> </tr>
</thead> </thead>
<Draggable <Draggable
@ -549,6 +546,7 @@ watch(focusedMappableInput, (curr) => {
</N8nTree> </N8nTree>
</td> </td>
<td v-if="columnLimitExceeded"></td> <td v-if="columnLimitExceeded"></td>
<td :class="$style.tableRightMargin"></td>
</tr> </tr>
</Draggable> </Draggable>
</table> </table>
@ -567,7 +565,6 @@ watch(focusedMappableInput, (curr) => {
word-break: normal; word-break: normal;
height: 100%; height: 100%;
padding-bottom: var(--spacing-3xl); padding-bottom: var(--spacing-3xl);
padding-inline: var(--spacing-l);
} }
.table { .table {