GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — SingleAfterModelCallback | ADK for TypeScript: API Reference - v2.5.0

  • SingleAfterModelCallback

Type Alias SingleAfterModelCallback

SingleAfterModelCallback: (
    params: { context: Context; response: LlmResponse },
) => LlmResponse | undefined | Promise<LlmResponse | undefined>

A callback that runs after a response is received from the model.

Type Declaration

    • (
          params: { context: Context; response: LlmResponse },
      ): LlmResponse | undefined | Promise<LlmResponse | undefined>
    • Parameters

      • params: { context: Context; response: LlmResponse }
        • context: Context

          The current callback context.

        • response: LlmResponse

          The actual model response.

      Returns LlmResponse | undefined | Promise<LlmResponse | undefined>

      The content to return to the user. When present, the actual model response will be ignored and the provided content will be returned to user.

  • Defined in core/src/agents/llm_agent.ts:233
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.