Hacker News new | ask | show | jobs
by revskill 319 days ago
Then how does control flow is executed ? You can prompt, check for something, then if condition then do something, or loop to do until something. How can the agent knows to interpret ?
1 comments

You send a request, the tool call executes and returns a response to the calling model or client, then you handle it somehow. You can add the output of the tool call into the context and prompt the model again...or just return the output of the tool execution. There are many ways to do it.
I need a generic system prompt to instruct to output all possible flows.