Package ai.acolite.agentsdk.core
Class RunConfig
java.lang.Object
ai.acolite.agentsdk.core.RunConfig
RunConfig
Configuration for running agents.
Source: https://github.com/openai/openai-agents-js/blob/main/packages/agents-core/src/config.ts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the maximum number of turns, defaulting to 10 if not setGets the model provider, defaulting to OpenAIProvider if not setlongGets the model timeout in milliseconds, defaulting to 60 seconds if not setGets the overall run timeout in milliseconds, or null if no timeout
-
Constructor Details
-
RunConfig
public RunConfig()
-
-
Method Details
-
getEffectiveMaxTurns
public int getEffectiveMaxTurns()Gets the maximum number of turns, defaulting to 10 if not set -
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
Gets the overall run timeout in milliseconds, or null if no timeout
-