Building AI agents, atomically
Set model schema title to match tool name in SchemaTransformer
KennyVaneetveldeec57ab7b8026
diff --git a/atomic-agents/atomic_agents/lib/factories/schema_transformer.py b/atomic-agents/atomic_agents/lib/factories/schema_transformer.pyindex f01bd49..8b5ac3a 100644--- a/atomic-agents/atomic_agents/lib/factories/schema_transformer.py+++ b/atomic-agents/atomic_agents/lib/factories/schema_transformer.py@@ -112,4 +112,7 @@ class SchemaTransformer:**fields,)+ # Set model schema title to match the tool name so that openai_schema["name"] will be the tool name+ model.model_config = {"title": tool_name_literal}+return model