This is definitely getting me started on the right track, but I'm finding if I try to give the LLM relative dates, like "yesterday" it is populating the startDate and endDate arguments with nil or dates that are just wrong.
I've provided the current date to both the tool's description and the foundation model session description, as suggested.
I should say, I have also tried this approach to get the URL from the NSItemProvider:
provider.loadObject(ofClass: URL.self) { url, error in
This gives me a URL, but again, this returns false:
url.startAccessingSecurityScopedResource()
Thanks for the reply. I'm using this slight code variation, because I really need a ModelEntity for physics stuff instantiated:
let entity = try await ModelEntity(named: "Stone", in: realityKitContentBundle)
And this is the error I get:
Error Failed to find resource with name "Stone" in bundle
Any other thoughts?
This is definitely getting me started on the right track, but I'm finding if I try to give the LLM relative dates, like "yesterday" it is populating the startDate and endDate arguments with nil or dates that are just wrong.
I've provided the current date to both the tool's description and the foundation model session description, as suggested.
I should say, I have also tried this approach to get the URL from the NSItemProvider:
provider.loadObject(ofClass: URL.self) { url, error in
This gives me a URL, but again, this returns false:
url.startAccessingSecurityScopedResource()
Thanks for the reply. I'm using this slight code variation, because I really need a ModelEntity for physics stuff instantiated:
let entity = try await ModelEntity(named: "Stone", in: realityKitContentBundle)
And this is the error I get:
Error Failed to find resource with name "Stone" in bundle
Any other thoughts?