old-agentic-v1^2
Travis Fischer 2023-06-14 21:26:45 -07:00
rodzic e1d69b442a
commit f13c115a1e
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -141,7 +141,10 @@ export abstract class BaseTask<
...this._retryConfig, ...this._retryConfig,
onFailedAttempt: async (err: FailedAttemptError) => { onFailedAttempt: async (err: FailedAttemptError) => {
this._logger.warn( this._logger.warn(
`Task "${this.nameForModel}" failed attempt ${err.attemptNumber}: ${err.message}` err,
`Task error "${this.nameForHuman}" failed attempt ${
err.attemptNumber
}: ${JSON.stringify(input)}`
) )
if (this._retryConfig.onFailedAttempt) { if (this._retryConfig.onFailedAttempt) {