This commit is contained in:
2026-07-23 21:14:45 +07:00
parent 5bde0ca1f2
commit d7adfaffa8
3 changed files with 105 additions and 28 deletions
+21 -1
View File
@@ -637,7 +637,8 @@ function predefined_wine_search_sql(a::T, searchterm::String,
# your responsibility includes
Fulfill the objective.
# you should only respond in YAML format as described below
# you should only respond in JSON format as described below
{
table_name_1:
column_name_1:
operator: "="
@@ -654,6 +655,7 @@ function predefined_wine_search_sql(a::T, searchterm::String,
operator: "="
value: "..."
...
}
# here are some example
<user>
@@ -700,6 +702,24 @@ function predefined_wine_search_sql(a::T, searchterm::String,
"""
input = context * searchterm
json_schema = Dict(
"type"=> "json_schema",
"json_schema"=> Dict(
"name"=> "user_profile",
"strict"=> true,
"schema"=> Dict(
"type"=> "object",
"properties"=> Dict(
"plan"=> Dict("type"=> "string"),
"action_name"=> Dict("type"=> "string"),
"action_input"=> Dict("type"=> "string"),
),
"required"=> ["plan", "action_name", "action_input"],
"additionalProperties"=> false
)
)
)
msg = Dict(
"model" => "gemma-4-E4B-it-UD-Q4_K_XL",
"messages" => [