more tool calling working

This commit is contained in:
2026-03-06 09:30:19 -07:00
parent 7c7e763809
commit 3a065871a9
6 changed files with 109 additions and 36 deletions

View File

@@ -5,14 +5,29 @@ defmodule ElixirAi.ToolTesting do
GenServer.cast(__MODULE__, {:hold_thing, thing})
end
def get_thing do
GenServer.call(__MODULE__, :get_thing)
def hold_thing_params do
%{
"type" => "object",
"properties" => %{
"name" => %{"type" => "string"},
"value" => %{"type" => "string"}
},
"required" => ["name", "value"]
}
end
def get_thing(_) do
GenServer.call(__MODULE__, :get_thing)
end
def get_thing_params do
%{
"type" => "object",
"properties" => %{},
"required" => []
}
end
def store_thing_definition(name) do
%{
"type" => "function",