mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 06:04:43 +00:00
feat: add structured stderr output for error diagnostics (#29)
Add StderrOutput schema with head/tail/truncated/total_lines fields to provide better error diagnostics when agent processes fail.
This commit is contained in:
parent
82ac0b3880
commit
c7d6482fd4
9 changed files with 247 additions and 3 deletions
|
|
@ -257,7 +257,15 @@ export interface components {
|
|||
/** @enum {string} */
|
||||
SessionEndReason: "completed" | "error" | "terminated";
|
||||
SessionEndedData: {
|
||||
/**
|
||||
* Format: int32
|
||||
* @description Process exit code when reason is Error
|
||||
*/
|
||||
exit_code?: number | null;
|
||||
/** @description Error message when reason is Error */
|
||||
message?: string | null;
|
||||
reason: components["schemas"]["SessionEndReason"];
|
||||
stderr?: components["schemas"]["StderrOutput"] | null;
|
||||
terminated_by: components["schemas"]["TerminatedBy"];
|
||||
};
|
||||
SessionInfo: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue