mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 15:36:33 +00:00
fix(assistant): a session names the follow-ups a read, as they change nothing
This commit is contained in:
@@ -246,6 +246,8 @@ export class AssistantToolSession {
|
||||
|
||||
kindOf(name: string): AssistantToolKind | null {
|
||||
if (name === REMEMBER_TOOL) return this.mode === 'turn' ? 'write' : null;
|
||||
// The follow-ups change nothing; the agent loop answers them itself in every turn.
|
||||
if (name === ASSISTANT_FOLLOW_UPS_TOOL) return this.mode === 'undo' ? null : 'read';
|
||||
if (name === USE_TOOLS_TOOL) return this.mode === 'turn' ? 'read' : null;
|
||||
return this.tools.get(name)?.kind ?? null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user