mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
## Summary Follow-up of https://github.com/elastic/kibana/pull/223367 Fix https://github.com/elastic/search-team/issues/10259 This PR introduce the concept of agent **mode**, and expose the "deep research" agent as a mode instead of a tool. ## Examples ### Calling the Q/A (default) mode ```curl POST kbn:/internal/onechat/chat { "nextMessage": "Find all info related to our work from home policy" } ``` ### Calling the researcher mode ```curl POST kbn:/internal/onechat/chat { "mode": "researcher", "nextMessage": "Find all info related to our work from home policy" } ``` --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
106 lines
2.7 KiB
TypeScript
106 lines
2.7 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
export type { OnechatEvent } from './base/events';
|
|
export {
|
|
type ToolDescriptor,
|
|
type ToolDescriptorMeta,
|
|
type PlainIdToolIdentifier,
|
|
type SerializedToolIdentifier,
|
|
type StructuredToolIdentifier,
|
|
type ToolIdentifier,
|
|
type ToolProviderId,
|
|
isSerializedToolIdentifier,
|
|
isStructuredToolIdentifier,
|
|
isPlainToolIdentifier,
|
|
toStructuredToolIdentifier,
|
|
toSerializedToolIdentifier,
|
|
toolDescriptorToIdentifier,
|
|
createBuiltinToolId,
|
|
builtinToolProviderId,
|
|
unknownToolProviderId,
|
|
BuiltinToolIds,
|
|
BuiltinTags,
|
|
} from './tools';
|
|
export {
|
|
OnechatErrorCode,
|
|
OnechatErrorUtils,
|
|
isInternalError,
|
|
isToolNotFoundError,
|
|
isOnechatError,
|
|
isAgentNotFoundError,
|
|
isConversationNotFoundError,
|
|
createOnechatError,
|
|
createInternalError,
|
|
createToolNotFoundError,
|
|
createAgentNotFoundError,
|
|
createConversationNotFoundError,
|
|
type OnechatError,
|
|
type OnechatInternalError,
|
|
type OnechatToolNotFoundError,
|
|
} from './base/errors';
|
|
export { type UserIdAndName } from './base/users';
|
|
export {
|
|
OneChatDefaultAgentId,
|
|
OneChatDefaultAgentProviderId,
|
|
AgentType,
|
|
AgentMode,
|
|
type AgentDescriptor,
|
|
type AgentIdentifier,
|
|
type PlainIdAgentIdentifier,
|
|
type SerializedAgentIdentifier,
|
|
type StructuredAgentIdentifier,
|
|
ChatAgentEventType,
|
|
type ChatAgentEvent,
|
|
type ChatAgentEventBase,
|
|
type ToolResultEvent,
|
|
type ToolResultEventData,
|
|
type ToolCallEvent,
|
|
type ToolCallEventData,
|
|
type MessageChunkEventData,
|
|
type MessageChunkEvent,
|
|
type MessageCompleteEventData,
|
|
type MessageCompleteEvent,
|
|
type RoundCompleteEventData,
|
|
type RoundCompleteEvent,
|
|
type ReasoningEventData,
|
|
type ReasoningEvent,
|
|
isToolCallEvent,
|
|
isToolResultEvent,
|
|
isMessageChunkEvent,
|
|
isMessageCompleteEvent,
|
|
isRoundCompleteEvent,
|
|
isReasoningEvent,
|
|
isSerializedAgentIdentifier,
|
|
isPlainAgentIdentifier,
|
|
isStructuredAgentIdentifier,
|
|
toSerializedAgentIdentifier,
|
|
toStructuredAgentIdentifier,
|
|
} from './agents';
|
|
export {
|
|
type RoundInput,
|
|
type AssistantResponse,
|
|
type ToolCallWithResult,
|
|
type ConversationRound,
|
|
type Conversation,
|
|
ChatEventType,
|
|
type ChatEventBase,
|
|
type ChatEvent,
|
|
type ConversationCreatedEvent,
|
|
type ConversationCreatedEventData,
|
|
type ConversationUpdatedEvent,
|
|
type ConversationUpdatedEventData,
|
|
isConversationCreatedEvent,
|
|
isConversationUpdatedEvent,
|
|
type ToolCallStep,
|
|
type ConversationRoundStep,
|
|
type ReasoningStepData,
|
|
type ReasoningStep,
|
|
ConversationRoundStepType,
|
|
isToolCallStep,
|
|
isReasoningStep,
|
|
} from './chat';
|