adk-typescript
Version:
TypeScript port of Google's Agent Development Kit (ADK)
36 lines (35 loc) • 1.27 kB
TypeScript
/**
* Module for building contents for LLM requests.
*/
import { InvocationContext } from '../../agents/InvocationContext';
import { Event } from '../../events/Event';
import { Content } from '../../models/types';
import { LlmRequest } from '../../models/LlmRequest';
import { BaseLlmRequestProcessor } from './BaseLlmProcessor';
/**
* Builds the contents for the LLM request.
*/
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>;
}
/**
* The main content request processor instance.
*/
export declare const requestProcessor: ContentLlmRequestProcessor;
/**
* Gets the contents for the LLM request.
*
* @param currentBranch The current branch of the agent
* @param events List of events
* @param agentName The name of the agent
* @returns List of contents
*/
export declare function getContents(currentBranch: string | undefined, events: Event[], agentName?: string): Content[];
export {};