Keep a record of each run's tool calls so bots can't claim work they never did
The wrap-up turn now gets the run's actual tool calls, each bot message keeps them as bot_messages.tool_log, and history follows recorded bot messages with an [App record] line. The coordinator also gets update_bot in workspaces, so it can fill a bot's core prompt from there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -20,6 +20,15 @@ export type HarnessToolCall = {
|
||||
arguments: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* One tool call a run made, and whether it went through (a result that
|
||||
* isn't `Error: ...`). Names only, never arguments.
|
||||
*/
|
||||
export type HarnessToolUse = {
|
||||
name: string;
|
||||
ok: boolean;
|
||||
};
|
||||
|
||||
export type HarnessMessage =
|
||||
| { role: "system"; content: string }
|
||||
| { role: "user"; content: string | HarnessContentPart[] }
|
||||
|
||||
Reference in New Issue
Block a user