Skip to content

Add maxTokens as prompt parameters #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 13, 2025

Add validation for `maxTokens` and update tests

fa071bd
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Add maxTokens as prompt parameters #579

Add validation for `maxTokens` and update tests
fa071bd
Select commit
Loading
Failed to load commit list.
GitHub Actions / Qodana for JVM completed Aug 13, 2025 in 0s

419 new problems found by Qodana for JVM

Qodana for JVM

419 new problems were found

Inspection name Severity Problems
Check Kotlin and Java source code coverage 🔶 Warning 414
Vulnerable imported dependency 🔶 Warning 4
String concatenation that can be converted to string template ◽️ Notice 1
@@ Code coverage @@
+ 67% total lines covered
9164 lines analyzed, 6166 lines covered
# Calculated according to the filters of your coverage tool

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

Details

This result was published with Qodana GitHub Action

Annotations

Check notice on line 95 in examples/src/main/kotlin/ai/koog/agents/example/mcp/UnityMcpAgent.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

String concatenation that can be converted to string template

'String' concatenation can be converted to a template

Check warning on line 47 in prompt/prompt-executor/prompt-executor-clients/src/commonMain/kotlin/ai/koog/prompt/executor/clients/LLMClient.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `executeMultipleChoices` coverage is below the threshold 50%

Check warning on line 96 in koog-spring-boot-starter/src/main/kotlin/ai/koog/spring/KoogAutoConfig.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `openAIExecutor` coverage is below the threshold 50%

Check warning on line 91 in prompt/prompt-executor/prompt-executor-clients/prompt-executor-openai-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/openai/azure/AzureOpenAIServiceVersion.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `getV2023_07_01_PREVIEW` coverage is below the threshold 50%

Check warning on line 35 in rag/rag-base/src/commonMain/kotlin/ai/koog/rag/base/files/TextRange.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `getLength$koog_agents_rag_rag_base_commonMain` coverage is below the threshold 50%

Check warning on line 28 in agents/agents-test/src/commonMain/kotlin/ai/koog/agents/testing/tools/DummyAIAgentContext.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Class `DummyAIAgentContext` coverage is below the threshold 50%

Check warning on line 106 in prompt/prompt-executor/prompt-executor-clients/prompt-executor-openai-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/openai/OpenAIModerationModels.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `getSelfHarmIntent` coverage is below the threshold 50%

Check warning on line 75 in prompt/prompt-executor/prompt-executor-clients/prompt-executor-openai-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/openai/OpenAIModerationModels.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Class `OpenAIModerationCategoryScores` coverage is below the threshold 50%

Check warning on line 314 in prompt/prompt-executor/prompt-executor-clients/prompt-executor-openai-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/openai/DataModel.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Constructor `OpenAIResponseFormatSerializer` coverage is below the threshold 50%

Check warning on line 139 in agents/agents-core/src/commonMain/kotlin/ai/koog/agents/core/feature/message/FeatureMessage.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Class `FeatureEventMessage` coverage is below the threshold 50%

Check warning on line 147 in agents/agents-core/src/commonMain/kotlin/ai/koog/agents/core/dsl/extension/AIAgentNodes.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `getMessage` coverage is below the threshold 50%

Check warning on line 315 in prompt/prompt-executor/prompt-executor-clients/prompt-executor-openai-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/openai/DataModel.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `selectDeserializer` coverage is below the threshold 50%

Check warning on line 80 in prompt/prompt-executor/prompt-executor-clients/prompt-executor-openai-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/openai/OpenAIModerationModels.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `getSexual` coverage is below the threshold 50%

Check warning on line 204 in rag/rag-base/src/commonMain/kotlin/ai/koog/rag/base/files/TextRange.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `covering$koog_agents_rag_rag_base_commonMain` coverage is below the threshold 50%

Check warning on line 91 in prompt/prompt-structure/src/commonMain/kotlin/ai/koog/prompt/structure/StructureFixingParser.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Class `Companion` coverage is below the threshold 50%

Check warning on line 153 in agents/agents-features/agents-features-opentelemetry/src/jvmMain/kotlin/ai/koog/agents/features/opentelemetry/feature/OpenTelemetryConfig.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `addSpanProcessor` coverage is below the threshold 50%

Check warning on line 235 in agents/agents-core/src/commonMain/kotlin/ai/koog/agents/core/agent/context/AIAgentContext.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `getAgentContextDataAdditionalKey` coverage is below the threshold 50%

Check warning on line 67 in prompt/prompt-executor/prompt-executor-clients/prompt-executor-openai-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/openai/OpenAIModerationModels.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `getIllicit` coverage is below the threshold 50%

Check warning on line 10 in rag/rag-base/src/commonMain/kotlin/ai/koog/rag/base/files/FileSystemProvider.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Constructor `FileSystemProvider` coverage is below the threshold 50%

Check warning on line 26 in rag/rag-base/src/commonMain/kotlin/ai/koog/rag/base/files/TextRange.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `getEndInclusive$koog_agents_rag_rag_base_commonMain` coverage is below the threshold 50%

Check warning on line 29 in prompt/prompt-executor/prompt-executor-clients/prompt-executor-openai-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/openai/OpenAIModerationModels.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `getModel` coverage is below the threshold 50%

Check warning on line 249 in prompt/prompt-model/src/commonMain/kotlin/ai/koog/prompt/dsl/AttachmentBuilder.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `textFile` coverage is below the threshold 50%

Check warning on line 140 in prompt/prompt-executor/prompt-executor-clients/prompt-executor-bedrock-client/src/jvmMain/kotlin/ai/koog/prompt/executor/clients/bedrock/modelfamilies/ai21/BedrockAI21JambaSerialization.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `parseJambaResponse$prompt_executor_bedrock_client` coverage is below the threshold 50%

Check warning on line 32 in koog-ktor/src/commonMain/kotlin/ai/koog/ktor/Koog.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `getAgentConfig` coverage is below the threshold 50%

Check warning on line 48 in prompt/prompt-model/src/commonMain/kotlin/ai/koog/prompt/dsl/AttachmentBuilder.kt

See this annotation in the file changed.

@github-actions github-actions / Qodana for JVM

Check Kotlin and Java source code coverage

Method `fileData` coverage is below the threshold 50%