Skip to content

Commit cbdfc9c

Browse files
author
Dev Agent
committed
add files field to langflow chat request
1 parent a7a597f commit cbdfc9c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

common/types/agent.go

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,17 @@ type AgentInstanceCreationResult struct {
7676

7777
// LangFlowChatRequest represents a chat request to an agent instance
7878
type LangflowChatRequest struct {
79-
SessionID *string `json:"session_id,omitempty"` // Optional session ID (client-provided)
80-
InputValue string `json:"input_value" binding:"required"` // Input value for the agent
81-
InputType string `json:"input_type" binding:"required"` // Type of input (e.g., "chat")
82-
OutputType string `json:"output_type" binding:"required"` // Type of output (e.g., "chat")
83-
Tweaks json.RawMessage `json:"tweaks,omitempty"` // Optional parameter tweaks
79+
SessionID *string `json:"session_id,omitempty"` // Optional session ID (client-provided)
80+
InputValue string `json:"input_value" binding:"required"` // Input value for the agent
81+
InputType string `json:"input_type" binding:"required"` // Type of input (e.g., "chat")
82+
OutputType string `json:"output_type" binding:"required"` // Type of output (e.g., "chat")
83+
Tweaks json.RawMessage `json:"tweaks,omitempty"` // Optional parameter tweaks
84+
Files []LangflowChatRequestFile `json:"files,omitempty"` // Optional files to upload
85+
}
86+
87+
type LangflowChatRequestFile struct {
88+
URL string `json:"url"`
89+
Name string `json:"name"`
8490
}
8591

8692
// AgentChatResponse represents the response from an agent chat

0 commit comments

Comments
 (0)