@defikitdotnet/education-module-ai
Version:
AI Education Module using Agent Framework
22 lines (21 loc) • 684 B
TypeScript
import React, { ReactNode } from "react";
export interface AgentInfo {
teacherId: string;
name: string;
isAdmin?: boolean;
}
interface AgentContextType {
agent: AgentInfo | null;
isAgentAuthenticated: boolean;
setCurrentAgent: (agent: AgentInfo) => void;
clearCurrentAgent: () => void;
}
declare const AgentContext: React.Context<AgentContextType>;
export declare const useAgent: () => AgentContextType;
interface AgentProviderProps {
children: ReactNode;
}
export declare const AgentProvider: React.ForwardRefExoticComponent<AgentProviderProps & React.RefAttributes<{
setCurrentAgent: (agent: AgentInfo) => void;
}>>;
export default AgentContext;