MutterCorp
MutterCorpNotice · Notícias
Programação·

My autonomous Python agent keeps repeating failed API calls. How do I make it learn from past errors?

My autonomous Python agent keeps repeating failed API calls. How do I make it learn from past errors?

"An error occurred while running the tool." By default, that sentence is all the OpenAI Agents SDK 0.25.0 gives the model when a tool raises an ordinary exception, a 401 included. Nothing in it tells a rejected key from a timeout. The agent calls again. It cannot learn from a reason it never saw, so the error text has to carry the status code and the server's message, and say whether a retry can help. When something fixes the call, write it down for the next run. Before changing the prompt of a…

Publicado no Notice. Categoria: Programação.

Notícias sobre o mesmo assunto em outras fontes