Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
372 B
Raw Blame
import { useContext } from 'react'
import { AgentActivityContext } from './context'
import type { AgentActivityContextValue } from './types'

export function useAgentActivityContext(): AgentActivityContextValue {
  const ctx = useContext(AgentActivityContext)
  if (!ctx) throw new Error('useAgentActivityContext must be used within AgentActivityProvider')
  return ctx
}