fux: add agent_id option to ChatInput onSubmit method

This commit is contained in:
yeyan1996 2025-08-08 18:52:01 -07:00
parent a1ef96b245
commit 114dcd0187
1 changed files with 6 additions and 1 deletions

View File

@ -38,7 +38,11 @@ export interface ChatInputHandles {
export interface ChatInputProps {
onSubmit: (
message: string,
options?: { model_name?: string; enable_thinking?: boolean },
options?: {
model_name?: string;
enable_thinking?: boolean;
agent_id?: string;
},
) => void;
placeholder?: string;
loading?: boolean;
@ -286,6 +290,7 @@ export const ChatInput = forwardRef<ChatInputHandles, ChatInputProps>(
posthog.capture("task_prompt_submitted", { message });
onSubmit(message, {
agent_id: selectedAgentId,
model_name: baseModelName,
enable_thinking: thinkingEnabled,
});