UNPKG

adk-typescript

Version:

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

30 lines (29 loc) 1.17 kB
/** * Basic flow that calls the model with conversation history. */ import { InvocationContext } from '../../agents/InvocationContext'; import { Event } from '../../events/Event'; import { LlmRequest } from '../../models/LlmRequest'; import { BaseLlmRequestProcessor } from './BaseLlmProcessor'; /** * A request processor that adds the user's content to the request and handles basic LLM request setup. * This processor is responsible for: * 1. Adding conversation history to the request * 2. Adding the current user's message to the request * 3. Setting up model configuration including tools */ declare class ContentLlmRequestProcessor implements BaseLlmRequestProcessor { /** * Runs the processor asynchronously. * * @param invocationContext The invocation context * @param llmRequest The LLM request to process * @returns An async generator yielding events */ runAsync(invocationContext: InvocationContext, llmRequest: LlmRequest): AsyncGenerator<Event, void, unknown>; } /** * Instance of ContentLlmRequestProcessor to be exported. */ export declare const requestProcessor: ContentLlmRequestProcessor; export {};