Add set_output tool (#205)
This commit is contained in:
committed by
pullfrog[bot]
parent
2daab6fc78
commit
c1f8247077
@@ -25,6 +25,7 @@ export interface MainResult {
|
||||
success: boolean;
|
||||
output?: string | undefined;
|
||||
error?: string | undefined;
|
||||
result?: string | undefined;
|
||||
}
|
||||
|
||||
export async function main(): Promise<MainResult> {
|
||||
@@ -153,7 +154,10 @@ export async function main(): Promise<MainResult> {
|
||||
await writeSummary(toolState.lastProgressBody);
|
||||
}
|
||||
|
||||
return handleAgentResult(result);
|
||||
return {
|
||||
...handleAgentResult(result),
|
||||
result: toolState.output,
|
||||
};
|
||||
} catch (error) {
|
||||
const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
|
||||
log.error(errorMessage);
|
||||
|
||||
Reference in New Issue
Block a user