mirror of https://github.com/kortix-ai/suna.git
fux: add agent_id option to ChatInput onSubmit method
This commit is contained in:
parent
a1ef96b245
commit
114dcd0187
|
@ -38,7 +38,11 @@ export interface ChatInputHandles {
|
||||||
export interface ChatInputProps {
|
export interface ChatInputProps {
|
||||||
onSubmit: (
|
onSubmit: (
|
||||||
message: string,
|
message: string,
|
||||||
options?: { model_name?: string; enable_thinking?: boolean },
|
options?: {
|
||||||
|
model_name?: string;
|
||||||
|
enable_thinking?: boolean;
|
||||||
|
agent_id?: string;
|
||||||
|
},
|
||||||
) => void;
|
) => void;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
loading?: boolean;
|
loading?: boolean;
|
||||||
|
@ -286,6 +290,7 @@ export const ChatInput = forwardRef<ChatInputHandles, ChatInputProps>(
|
||||||
posthog.capture("task_prompt_submitted", { message });
|
posthog.capture("task_prompt_submitted", { message });
|
||||||
|
|
||||||
onSubmit(message, {
|
onSubmit(message, {
|
||||||
|
agent_id: selectedAgentId,
|
||||||
model_name: baseModelName,
|
model_name: baseModelName,
|
||||||
enable_thinking: thinkingEnabled,
|
enable_thinking: thinkingEnabled,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue