mirror of https://github.com/buster-so/buster.git
dashboard helpers and tools
This commit is contained in:
parent
d9e6c3dee2
commit
eb14e26972
|
@ -3,7 +3,7 @@ import type {
|
||||||
ChatMessageReasoningMessage_File,
|
ChatMessageReasoningMessage_File,
|
||||||
} from '@buster/server-shared/chats';
|
} from '@buster/server-shared/chats';
|
||||||
import type { ModelMessage } from 'ai';
|
import type { ModelMessage } from 'ai';
|
||||||
import { CREATE_DASHBOARD_TOOL_NAME, type CreateDashboardsState } from '../create-dashboards-tool';
|
import { CREATE_DASHBOARDS_TOOL_NAME, type CreateDashboardsState } from '../create-dashboards-tool';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a reasoning entry for create-dashboards tool
|
* Create a reasoning entry for create-dashboards tool
|
||||||
|
@ -67,7 +67,7 @@ export function createCreateDashboardsRawLlmMessageEntry(
|
||||||
{
|
{
|
||||||
type: 'tool-call',
|
type: 'tool-call',
|
||||||
toolCallId,
|
toolCallId,
|
||||||
toolName: CREATE_DASHBOARD_TOOL_NAME,
|
toolName: CREATE_DASHBOARDS_TOOL_NAME,
|
||||||
input: {
|
input: {
|
||||||
files: state.files
|
files: state.files
|
||||||
.filter((file) => file != null) // Filter out null/undefined entries first
|
.filter((file) => file != null) // Filter out null/undefined entries first
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type {
|
||||||
ChatMessageReasoningMessage_File,
|
ChatMessageReasoningMessage_File,
|
||||||
} from '@buster/server-shared/chats';
|
} from '@buster/server-shared/chats';
|
||||||
import type { ModelMessage } from 'ai';
|
import type { ModelMessage } from 'ai';
|
||||||
import { type ModifyDashboardsState, TOOL_NAME } from '../modify-dashboards-tool';
|
import { type ModifyDashboardsState, MODIFY_DASHBOARDS_TOOL_NAME } from '../modify-dashboards-tool';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a reasoning entry for modify-dashboards tool
|
* Create a reasoning entry for modify-dashboards tool
|
||||||
|
@ -67,7 +67,7 @@ export function createModifyDashboardsRawLlmMessageEntry(
|
||||||
{
|
{
|
||||||
type: 'tool-call',
|
type: 'tool-call',
|
||||||
toolCallId,
|
toolCallId,
|
||||||
toolName: TOOL_NAME,
|
toolName: MODIFY_DASHBOARDS_TOOL_NAME,
|
||||||
input: {
|
input: {
|
||||||
files: state.files
|
files: state.files
|
||||||
.filter((file) => file != null) // Filter out null/undefined entries first
|
.filter((file) => file != null) // Filter out null/undefined entries first
|
||||||
|
|
Loading…
Reference in New Issue