Class RunConfig

java.lang.Object
ai.acolite.agentsdk.core.RunConfig

public class RunConfig extends Object
RunConfig

Configuration for running agents.

Source: https://github.com/openai/openai-agents-js/blob/main/packages/agents-core/src/config.ts

  • Constructor Details

    • RunConfig

      public RunConfig()
  • Method Details

    • getEffectiveMaxTurns

      public int getEffectiveMaxTurns()
      Gets the maximum number of turns, defaulting to 10 if not set
    • getEffectiveModelProvider

      public ModelProvider getEffectiveModelProvider()
      Gets the model provider, defaulting to OpenAIProvider if not set
    • getEffectiveModelTimeoutMs

      public long getEffectiveModelTimeoutMs()
      Gets the model timeout in milliseconds, defaulting to 60 seconds if not set
    • getEffectiveTimeoutMs

      public Long getEffectiveTimeoutMs()
      Gets the overall run timeout in milliseconds, or null if no timeout