Post

Replies

Boosts

Views

Activity

Comment on LanguageModelSession with multiple tools and structured outpout
This solves the problem, thank you! Although I ended up making the ResponseViewModel a class as I was running into issues with the tool complaining about mutating the struct and then non-conforming to the tool protocol. There is probably a way to do it with it being a struct, but this seems like a good approach since I have to reset the vars to nil on the ResponseViewModel after each call to the LLM session.
Jan ’26
Comment on LanguageModelSession with multiple tools and structured outpout
This solves the problem, thank you! Although I ended up making the ResponseViewModel a class as I was running into issues with the tool complaining about mutating the struct and then non-conforming to the tool protocol. There is probably a way to do it with it being a struct, but this seems like a good approach since I have to reset the vars to nil on the ResponseViewModel after each call to the LLM session.
Replies
Boosts
Views
Activity
Jan ’26
Comment on Trouble loading ModelEntity from RealityKitContent package
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?
Replies
Boosts
Views
Activity
Feb ’24