Merge pull request #1256 from yeyan1996/fix/agent-builder

fix: add agent_id option to ChatInput onSubmit method
This commit is contained in:
Marko Kraemer 2025-08-12 22:06:58 +02:00 committed by GitHub
commit 69465b8124
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,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;
@ -245,6 +249,7 @@ export const ChatInput = forwardRef<ChatInputHandles, ChatInputProps>(
posthog.capture("task_prompt_submitted", { message });
onSubmit(message, {
agent_id: selectedAgentId,
model_name: baseModelName,
enable_thinking: thinkingEnabled,
});