Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API test for get_alerts_dataset_info tool #212838

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { MessageRole, ShortIdTable, type Message } from '../../../common';
import { concatenateChatCompletionChunks } from '../../../common/utils/concatenate_chat_completion_chunks';
import { FunctionCallChatFunction } from '../../service/types';

const SELECT_RELEVANT_FIELDS_NAME = 'select_relevant_fields';

export async function getRelevantFieldNames({
index,
start,
Expand Down Expand Up @@ -122,7 +124,7 @@ export async function getRelevantFieldNames({
],
functions: [
{
name: 'select_relevant_fields',
name: SELECT_RELEVANT_FIELDS_NAME,
description: 'The IDs of the fields you consider relevant to the conversation',
parameters: {
type: 'object',
Expand All @@ -138,7 +140,7 @@ export async function getRelevantFieldNames({
} as const,
},
],
functionCall: 'select_relevant_fields',
functionCall: SELECT_RELEVANT_FIELDS_NAME,
})
).pipe(concatenateChatCompletionChunks());

Expand Down
Loading