# Class Instructions

java.lang.Object
com.google.adk.flows.llmflows.Instructions

All Implemented Interfaces:
  `RequestProcessor`

public final class Instructions extends Object implements RequestProcessor
`RequestProcessor` that handles instructions and global instructions for LLM flows.

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from interface RequestProcessor

  `RequestProcessor.RequestProcessingResult`
  Modifier and Type
  Interface
  Description
  `static class`
  `RequestProcessor.RequestProcessingResult`
  Result of request processing.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Instructions()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult>`
  `processRequest(InvocationContext context, LlmRequest request)`
  Process the LLM request as part of the pre-processing stage.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Instructions

    public Instructions()

- ## Method Details

  - ### processRequest

    public io.reactivex.rxjava3.core.Single<RequestProcessor.RequestProcessingResult> processRequest(InvocationContext context, LlmRequest request)
    Description copied from interface: `RequestProcessor`
    Process the LLM request as part of the pre-processing stage.
    Specified by:
      `processRequest` in interface `RequestProcessor`
    Parameters:
      `context` - the invocation context.
      `request` - the LLM request to process.
    Returns:
      a list of events generated during processing (if any).