Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/src/agents/processors/basic_llm_request_processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ import {BaseLlmRequestProcessor} from './base_llm_processor.js';
* connect settings.
*/
export class BasicLlmRequestProcessor extends BaseLlmRequestProcessor {
/**
* Populates model name, generation config, output schema, and live connect
* settings on the request from the agent and run config.
*
* @param invocationContext - The current invocation context.
* @param llmRequest - The request object to populate in place.
*/
// eslint-disable-next-line require-yield
override async *runAsync(
invocationContext: InvocationContext,
Expand Down
7 changes: 7 additions & 0 deletions core/src/agents/processors/identity_llm_request_processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ import {BaseLlmRequestProcessor} from './base_llm_processor.js';
* informing the model of the agent's name and description.
*/
export class IdentityLlmRequestProcessor extends BaseLlmRequestProcessor {
/**
* Appends agent name and description as identity instructions to the system
* prompt of the request.
*
* @param invocationContext - The current invocation context.
* @param llmRequest - The request object to append instructions to.
*/
// eslint-disable-next-line require-yield
override async *runAsync(
invocationContext: InvocationContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ import {BaseLlmRequestProcessor} from './base_llm_processor.js';
* corresponding tools before the next LLM turn.
*/
export class RequestConfirmationLlmRequestProcessor extends BaseLlmRequestProcessor {
/** Handles tool confirmation information to build the LLM request. */
/**
* Resumes tool calls that were paused for user confirmation, re-invoking
* them with the confirmed or denied decision before the next LLM turn.
*
* @param invocationContext - The current invocation context, including the
* session event history used to locate pending confirmation responses.
* @yields Function response events for tools that have been confirmed and
* are ready to resume.
*/
override async *runAsync(
invocationContext: InvocationContext,
): AsyncGenerator<Event, void, void> {
Expand Down