Skip to content

Commit 2d38075

Browse files
committed
Fix docs for options setters
Signed-off-by: Ilayaperumal Gopinathan <ilayaperumal.gopinathan@broadcom.com>
1 parent 3e0cfd2 commit 2d38075

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

models/spring-ai-ollama/src/test/java/org/springframework/ai/ollama/api/OllamaChatOptionsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ void testGetOutputSchemaHandlesAllFormatTypes() {
358358
}
359359

360360
/**
361-
* Tests that setOutputSchema() properly handles JSON Schema strings.
361+
* Tests that outputSchema() properly handles JSON Schema strings.
362362
*/
363363
@Test
364364
void testSetOutputSchemaWithValidJsonSchema() {

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/advisors-recursive.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The `ToolCallAdvisor` implements the tool calling loop as part of the advisor ch
3333

3434
Key features:
3535

36-
* Disables the model's internal tool execution by setting `setInternalToolExecutionEnabled(false)`
36+
* Disables the model's internal tool execution by setting `internalToolExecutionEnabled(false)`
3737
* Loops through the advisor chain until no more tool calls are present
3838
* Supports "return direct" functionality - when a tool execution has `returnDirect=true`, it interrupts the tool calling loop and returns the tool execution result directly to the client application instead of sending it back to the LLM
3939
* Uses `callAdvisorChain.copy(this)` to create a sub-chain for recursive calls

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/anthropic-chat.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ ChatResponse response = chatModel.call(new Prompt("Tell me about France.", optio
11361136

11371137
=== StructuredOutputChatOptions Interface
11381138

1139-
`AnthropicChatOptions` implements the `StructuredOutputChatOptions` interface, which provides portable `getOutputSchema()` and `setOutputSchema(String)` methods. This allows structured output to work with Spring AI's generic structured output infrastructure.
1139+
`AnthropicChatOptions` implements the `StructuredOutputChatOptions` interface, which provides portable `getOutputSchema()` method. This allows structured output to work with Spring AI's generic structured output infrastructure.
11401140

11411141
== Service Tier
11421142

0 commit comments

Comments
 (0)