Skip to content

Commit e8e5dc8

Browse files
authored
Merge pull request #1630 from quarkiverse/#1629
Use quarkus.langchain4j.timeout as the default MCP timeout
2 parents 366aad3 + e731c8d commit e8e5dc8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mcp/runtime/src/main/java/io/quarkiverse/langchain4j/mcp/runtime/config/McpClientRuntimeConfig.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,16 @@ public interface McpClientRuntimeConfig {
4848
/**
4949
* Timeout for tool executions performed by the MCP client
5050
*/
51-
@WithDefault("60s")
51+
@WithDefault("${quarkus.langchain4j.timeout:60s}")
52+
@ConfigDocDefault("60s")
5253
Duration toolExecutionTimeout();
5354

5455
/**
5556
* Timeout for resource-related operations (retrieving a list of resources as well as
5657
* the actual contents of resources).
5758
*/
58-
@WithDefault("60s")
59+
@WithDefault("${quarkus.langchain4j.timeout:60s}")
60+
@ConfigDocDefault("60s")
5961
Duration resourcesTimeout();
6062

6163
/**

0 commit comments

Comments
 (0)