@copilotkit/shared
Version:
<div align="center"> <a href="https://copilotkit.ai" target="_blank"> <img src="https://github.com/copilotkit/copilotkit/raw/main/assets/banner.png" alt="CopilotKit Logo"> </a>
40 lines (38 loc) • 1.26 kB
TypeScript
type AnalyticsEvents = {
"oss.runtime.instance_created": RuntimeInstanceCreatedInfo;
"oss.runtime.copilot_request_created": {
"cloud.guardrails.enabled": boolean;
requestType: string;
};
"oss.runtime.server_action_executed": {};
"oss.runtime.remote_action_executed": RemoteActionExecutionInfo;
"oss.runtime.agent_execution_stream_started": {
hashedLgcKey?: string;
};
"oss.runtime.agent_execution_stream_ended": AgentExecutionResponseInfo;
"oss.runtime.agent_execution_stream_errored": {
hashedLgcKey?: string;
error?: string;
};
};
interface RuntimeInstanceCreatedInfo {
actionsAmount: number;
endpointTypes: string[];
hashedLgcKey?: string;
endpointsAmount: number;
agentsAmount?: number | null;
}
interface RemoteActionExecutionInfo {
agentExecution: boolean;
type: "self-hosted" | "langgraph-platform";
agentsAmount?: number | null;
hashedLgcKey?: string;
}
interface AgentExecutionResponseInfo {
provider?: string;
model?: string;
langGraphHost?: string;
langGraphVersion?: string;
hashedLgcKey?: string;
}
export { AgentExecutionResponseInfo, AnalyticsEvents, RemoteActionExecutionInfo, RuntimeInstanceCreatedInfo };