For Loops for AI Chat

I want to be able to post some list and have the chat ask for one prompt for each item in the list

The prompt is the same → I just want some extremely simple “Agent” flow for when the initial prompt gets overwhelmed with context

It should literally just be a for loop

let prompt: String
let someList: [String]

var output: [String] = []
for item in someList {
output.append(askAI(prompt, item))
}

print(output)

Please authenticate to join the conversation.

Upvoters
Status

Closed

Board
💡

Feature Request

Subscribe to post

Get notified by email when there are changes.