(value: unknown)
| 731 | } |
| 732 | |
| 733 | function ensureString(value: unknown): string | undefined { |
| 734 | return typeof value === 'string' && value.length > 0 ? value : undefined; |
| 735 | } |
| 736 | |
| 737 | function useAgentTranscript(agentRunId: string | null): AgentTranscriptState { |
| 738 | const [state, setState] = useState<AgentTranscriptState>({ |