Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/runtime/runconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ Use these parameters to control runtime guardrails and debugging:

- `max_llm_calls`: Caps the total number of LLM calls per run (default: 500).
Set to 0 or negative for unlimited calls, though this is not recommended for
production. Values at or above `sys.maxsize` raises an error.
production. Passing your language's largest integer raises an error:
`sys.maxsize` in Python, `Int.MAX_VALUE` in Kotlin.
- `save_input_blobs_as_artifacts`: When `True`, saves input blobs (e.g.,
uploaded files) as run artifacts for debugging and auditing. Deprecated in
Python in favor of `SaveFilesAsArtifactsPlugin`.
Expand Down
4 changes: 4 additions & 0 deletions examples/kotlin/snippets/runtime/RunConfigExample.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import kotlinx.coroutines.runBlocking
val config =
RunConfig(
streamingMode = StreamingMode.SSE,
// Cap the LLM calls a single run may make. Defaults to 500.
maxLlmCalls = 200,
)

// Pass it to runner.runAsync
Expand Down Expand Up @@ -68,9 +70,11 @@ val metadataConfig =
// --8<-- [end:custom_metadata]

// --8<-- [start:streaming_config]
// Note: Kotlin currently has no supportCfc equivalent
val streamingConfig =
RunConfig(
streamingMode = StreamingMode.SSE,
maxLlmCalls = 150,
)
// --8<-- [end:streaming_config]

Expand Down
Loading