web: hide tool entries in Sybil Agent transcript
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import type { AgentRoomEvent, AgentRoomState } from './agent-room';
|
||||
import type { Message } from './api';
|
||||
|
||||
/** Select transcript rows only; keep tool entries in room state for replay and activity. */
|
||||
export function agentTranscriptMessages(messages: readonly Message[]): Message[] {
|
||||
return messages.filter(message => message.role !== 'system' && message.role !== 'tool');
|
||||
}
|
||||
|
||||
type Scheduler = {
|
||||
now(): number;
|
||||
schedule(callback: () => void, delay: number): unknown;
|
||||
|
||||
Reference in New Issue
Block a user