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
lettools:[OKJSONValue]=[["name":"get_current_weather","description":"Get the current weather for a location","parameters":["type":"object","properties":["location":["type":"string","description":"The location to get the weather for, e.g. San Francisco, CA"],"format":["type":"string","description":"The format to return the weather in, e.g. 'celsius' or 'fahrenheit'","enum":["celsius","fahrenheit"]]],"required":["location","format"]]]]
Compared to the current implementation:
lettools_old:[OKJSONValue]=[.object(["name":.string("get_current_weather"),"description":.string("Get the current weather for a location"),"parameters":.object(["type":.string("object"),"properties":["location":.object(["type":.string("string"),"description":"The location to get the weather for, e.g. San Francisco, CA"]),"format":.object(["type":.string("string"),"description":.string("The format to return the weather in, e.g. 'celsius' or 'fahrenheit'"),"enum":.array([.string("celsius"),.string("fahrenheit")])])],"required":.array([.string("location"),.string("format")])])])]
The text was updated successfully, but these errors were encountered:
Hi @NoahKamara, I've developed a Swift library called JSONSchema that aims to be more idiomatic to Swift. I've already integrated it into my LLMChatOpenAI library and plan to incorporate it into OllamaKit as well.
If you have a moment, I'd appreciate it if you could try out JSONSchema and share your thoughts. I'm always open to pull requests if you'd like to contribute!
Im using an extension in my projects to make working with OKJSONValue easier.
Would you be open to a PR adding this to OllamaKit?
This makes tool definitions easier to read:
Compared to the current implementation:
The text was updated successfully, but these errors were encountered: