Interface BuildLifecycleHooks.Builder

  • Method Details

    • warmup

      The hook that warms up your agent before any sessions are created. Use this hook to load the resources that your sessions need, such as models, libraries, or caches. Your hook must complete within 120 seconds.

      Parameters:
      warmup - The hook that warms up your agent before any sessions are created. Use this hook to load the resources that your sessions need, such as models, libraries, or caches. Your hook must complete within 120 seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • warmup

      The hook that warms up your agent before any sessions are created. Use this hook to load the resources that your sessions need, such as models, libraries, or caches. Your hook must complete within 120 seconds.

      This is a convenience method that creates an instance of the LifecycleHook.Builder avoiding the need to create one manually via LifecycleHook.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to warmup(LifecycleHook).

      Parameters:
      warmup - a consumer that will call methods on LifecycleHook.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: