You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseInvalidArrayTypeError,"Invalid array type: #{of.inspect}. Must be a primitive type (:string, :number, etc.), a symbol reference, or a Schema class."
42
+
end
43
+
44
+
defdetermine_object_reference(of,description=nil)
45
+
result=caseof
46
+
whenSymbol
47
+
reference(of)
48
+
whenClass
49
+
ifschema_class?(of)
50
+
schema_class_to_inline_schema(of)
51
+
else
52
+
raiseInvalidObjectTypeError,"Invalid object type: #{of.inspect}. Class must inherit from RubyLLM::Schema."
53
+
end
54
+
else
55
+
raiseInvalidObjectTypeError,"Invalid object type: #{of.inspect}. Must be a symbol reference or a Schema class."
56
+
end
57
+
58
+
description ? result.merge(description: description) : result
0 commit comments