Post

Replies

Boosts

Views

Activity

Reply to Converting GenerableContent to JSON string
Thanks. I had a look and appears there's String(describing: response.content) used, however, that does not output (rawValue) - an actual JSON string, but instead: "FoundationModels.GeneratedJSON(storage: FoundationModels.GeneratedJSON.Storage.object(properties: [\"name\": FoundationModels.GeneratedJSON(storage: FoundationModels.GeneratedJSON.Storage.string(\"Steve Jobs\"), isComplete: true)], order: nil), isComplete: true)"
Jul ’25
Reply to Provide unique identifier for tool calls and responses
Will do. FB19054369
Replies
Boosts
Views
Activity
Jul ’25
Reply to Converting GenerableContent to JSON string
Update: appears that on the latest beta, String(describing: generatedContent) does output JSON string!
Replies
Boosts
Views
Activity
Jul ’25
Reply to Converting GenerableContent to JSON string
I would like to request exposing rawArguments inside transcript, toolCall as well. It is there, and I can access it via Mirror at the moment.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Converting GenerableContent to JSON string
Thank you. FB18758537.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Converting GenerableContent to JSON string
Thanks. I had a look and appears there's String(describing: response.content) used, however, that does not output (rawValue) - an actual JSON string, but instead: "FoundationModels.GeneratedJSON(storage: FoundationModels.GeneratedJSON.Storage.object(properties: [\"name\": FoundationModels.GeneratedJSON(storage: FoundationModels.GeneratedJSON.Storage.string(\"Steve Jobs\"), isComplete: true)], order: nil), isComplete: true)"
Replies
Boosts
Views
Activity
Jul ’25