Class AgentObjectOptions.Impl

java.lang.Object
com.rpl.agentorama.AgentObjectOptions.Impl
All Implemented Interfaces:
AgentObjectOptions
Enclosing interface:
AgentObjectOptions

public static class AgentObjectOptions.Impl extends Object implements AgentObjectOptions
  • Field Details

    • threadSafe

      public Boolean threadSafe
    • autoTracing

      public Boolean autoTracing
    • workerObjectLimit

      public Long workerObjectLimit
  • Constructor Details

    • Impl

      public Impl()
  • Method Details

    • threadSafe

      public AgentObjectOptions.Impl threadSafe()
      Creates options with thread-safe configuration. When this is set, one object is created and shared for all usage within agents (no pool in this case).
      Returns:
      options with thread safety enabled
    • disableAutoTracing

      public AgentObjectOptions.Impl disableAutoTracing()
      Creates options with auto-tracing disabled. When auto-tracing is enabled, chat models and embedding stores from Langchain4j are automatically wrapped to record all calls as nested operations.
      Returns:
      options with auto-tracing disabled
    • workerObjectLimit

      public AgentObjectOptions.Impl workerObjectLimit(int amt)
      Creates options with a specific worker object limit. A pool of up to this many objects is created on demand at runtime in each Rama worker running the agent module.
      Parameters:
      amt - the maximum number of objects to create
      Returns:
      options with the specified worker object limit