UNPKG

adk-typescript

Version:

TypeScript port of Google's Agent Development Kit (ADK)

41 lines (40 loc) 1.1 kB
import { Session } from '../../sessions/Session'; /** * Agent response during an evaluation */ interface AgentResponse { /** The author of the response */ author: string; /** The text content of the response */ text: string; } /** * Function call structure for tool use */ interface ExpectedToolUse { /** Name of the tool that was used */ tool_name: string; /** Input provided to the tool */ tool_input: Record<string, any>; } /** * A single evaluation case */ interface EvaluationCase { /** The user query */ query: string; /** Expected tool use for this query */ expected_tool_use: ExpectedToolUse[]; /** Intermediate responses from agents */ expected_intermediate_agent_responses: AgentResponse[]; /** Expected final response (reference) */ reference: string; } /** * Converts a session into an evaluation format * * @param session The session to convert * @returns Array of evaluation cases extracted from the session */ export declare function convertSessionToEvalFormat(session: Session): EvaluationCase[]; export {};