File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,20 @@ type PromptInput struct {
10
10
}
11
11
12
12
type PromptArgument struct {
13
- Key string `json:"key"`
14
- Value any `json:"value"`
15
- Source string `json:"source"` // from enum VPromptArgSource in span_value.go
13
+ Key string `json:"key"`
14
+ Value any `json:"value"`
15
+ Source string `json:"source"` // from enum VPromptArgSource in span_value.go
16
+ ValueType PromptArgumentValueType `json:"value_type"`
16
17
}
17
18
19
+ type PromptArgumentValueType string
20
+
21
+ var (
22
+ PromptArgumentValueTypeText PromptArgumentValueType = "text"
23
+ PromptArgumentValueTypeModelMessage PromptArgumentValueType = "model_message"
24
+ PromptArgumentValueTypeMessagePart PromptArgumentValueType = "model_message_part"
25
+ )
26
+
18
27
// PromptOutput is the output of prompt span, for tag key: output
19
28
type PromptOutput struct {
20
29
Prompts []* ModelMessage `json:"prompts"`
You can’t perform that action at this time.
0 commit comments