V0.8.0 async think loop #40

Merged
ton merged 50 commits from v0.8.0-async_think_loop into v0.8.0 2026-08-08 04:13:05 +00:00
Showing only changes of commit e592441387 - Show all commits
+40 -7
View File
@@ -116,19 +116,40 @@ end
""" convert preparedcontext into openai message format ready to be used by LLM """ convert preparedcontext into openai message format ready to be used by LLM
""" """
function formatMsgForLLM(messages::Vector{agentMessage})::Vector{Dict{String, Any}} function formatMsgForLLM(messages::Vector{agentMessage})::Vector{Dict{String, Any}}
""" openai message format """ openai message format example
message = Dict( msg = Dict(
"model" => "gemma-4-E4B-it-UD-Q4_K_XL",
"messages" => [
Dict(
"role" => "system",
"content" => [
Dict("type" => "text", "text" => systemmsg),
]
),
Dict(
"role" => "user", "role" => "user",
"content" => [ "content" => [
Dict("type" => "text", "text" => Dict("type" => "text", "text" => "Do you have something similar to the one in the image?"),
"
Do you have Brunello di Montalcino from Tenuta CastelGiocon?
"),
Dict( Dict(
"type" => "image_url", "type" => "image_url",
"image_url" => Dict("url" => data1_uri) "image_url" => Dict("url" => data1_uri)
) )
] ]
),
Dict(
"role" => "assistant",
"content" => [
Dict("type" => "text", "text" => "let me check."),
]
),
Dict(
"role" => "toolResult",
"content" => [
Dict("type" => "text", "text" => "name: Chateau Montelena ..."),
]
),
],
"temperature" => 0.7
) )
""" """
@@ -141,7 +162,19 @@ end
message = Dict(
"role" => "user",
"content" => [
Dict("type" => "text", "text" =>
"
Do you have something similar to the one in the image?
"),
Dict(
"type" => "image_url",
"image_url" => Dict("url" => data1_uri)
)
]
)