Skip to content

Conversation

@HavenDV
Copy link
Contributor

@HavenDV HavenDV commented Jun 11, 2025

Summary by CodeRabbit

  • Documentation

    • Updated API documentation to clarify versioning in endpoint summaries and improve property descriptions.
    • Revised example code snippets for Go and Java to use updated message types.
  • New Features

    • Enhanced streaming response details for chat endpoints, providing more comprehensive response information.
  • Refactor

    • Simplified and unified schema names for messages, content, and sources for better consistency and clarity across the API.

@coderabbitai
Copy link

coderabbitai bot commented Jun 11, 2025

Walkthrough

The OpenAPI specification for the Cohere API was updated to unify and simplify schema definitions by removing V2-specific suffixes from message and content types. Multiple schemas were renamed, new schemas were introduced, and example code snippets for Go and Java were updated to use the new types. Streaming response schemas and documentation were also refined.

Changes

File(s) Change Summary
src/libs/Cohere/openapi.yaml Renamed and unified message/content schemas, replaced V2-specific types, updated endpoint summaries, refined streaming schemas, updated example code for Go/Java, and improved documentation/descriptions.

Poem

In the warren of schemas, we tidied each name,
V2s now retire, all types are the same.
ToolMessage hops in, old ChatTool hops out,
Go and Java now know what it’s about.
The docs are now clearer, the streams flow anew—
A rabbit’s delight in a spec fresh and true! 🐇

✨ Finishing Touches
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Commit Unit Tests in branch bot/update-openapi_202506112120
  • Post Copyable Unit Tests in Comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@HavenDV HavenDV enabled auto-merge (squash) June 11, 2025 21:21
@coderabbitai coderabbitai bot changed the title feat:@coderabbitai feat:Unify and simplify Cohere API schema definitions and update code examples Jun 11, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/libs/Cohere/openapi.yaml (1)

16947-16957: Add description to ToolSource.
ToolSource currently lacks a schema‐level description. Please add a description explaining its purpose and structure.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 11f1083 and 0d4ebd2.

⛔ Files ignored due to path filters (79)
  • src/libs/Cohere/Generated/Cohere..JsonSerializerContext.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Chat.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Chatv2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Embed.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Embedv2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Rerank.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.CohereClient.Rerankv2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Chat.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Chatv2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Embed.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Embedv2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Rerank.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.ICohereClient.Rerankv2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.ChatMessageV2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.Content2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.ContentDiscriminatorType.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.ContentDiscriminatorTypeNullable.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.ContentItem.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.ContentVariant2Item.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.ContentVariant2Item2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.Message.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.ResponseFormat.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.ResponseFormatV2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.Source.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.SystemMessageContentVariant2ItemDiscriminatorType.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.SystemMessageContentVariant2ItemDiscriminatorTypeNullable.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.SystemMessageRole.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.SystemMessageRoleNullable.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.TextContentType.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.TextContentTypeNullable.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.ToolContent.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.UserMessageRole.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonConverters.UserMessageRoleNullable.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.JsonSerializerContextTypes.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ChatDocumentSourceDocument.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ChatMessageV2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ChatTextResponseFormatV2.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ChatToolSourceToolOutput.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.Content2.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.Content2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ContentDiscriminator.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ContentDiscriminator.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ContentDiscriminatorType.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ContentItem.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ContentVariant2Item.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ContentVariant2Item2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.DocumentSource.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.DocumentSource.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.DocumentSourceDocument.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.DocumentSourceDocument.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.EmbedByTypeResponse.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.Message.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.MessageContentDiscriminator.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ResponseFormat.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ResponseFormatV2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.Source.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.SystemMessage.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.SystemMessage.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.SystemMessageContentVariant2ItemDiscriminator.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.SystemMessageContentVariant2ItemDiscriminator.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.SystemMessageContentVariant2ItemDiscriminatorType.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.SystemMessageRole.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.TextContent.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.TextContent.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.TextContentType.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.TextResponseFormat.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.TextResponseFormat.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.TextResponseFormatV2.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.TextResponseFormatV2.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ToolContent.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ToolMessage.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ToolMessage.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ToolSource.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ToolSource.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ToolSourceToolOutput.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.ToolSourceToolOutput.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.UserMessage.Json.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.UserMessage.g.cs is excluded by !**/generated/**
  • src/libs/Cohere/Generated/Cohere.Models.UserMessageRole.g.cs is excluded by !**/generated/**
📒 Files selected for processing (1)
  • src/libs/Cohere/openapi.yaml (25 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Test / Build, test and publish
🔇 Additional comments (23)
src/libs/Cohere/openapi.yaml (23)

20-20: Include version in summary.
The summary is appropriately updated to "Chat V1 API" to reflect the endpoint version.


2148-2148: Include version in summary.
The summary is updated to "Embed V1 API", aligning with the V1 endpoint naming convention.


6856-6856: Include version in summary.
The summary is updated to "Rerank V1 API", consistent with the other V1 endpoint summaries.


7382-7382: Include version in summary.
The summary is updated to "Chat V2 API", clearly indicating the V2 endpoint.


7558-7561: Updated V2 chat examples with new types.
The Go and Java code snippets now correctly reference UserMessage and UserMessageContent instead of V2-specific variants, matching the schema renames.


7596-7601: Updated Documents examples with new types.
The Java and Go samples correctly use V2ChatRequestDocumentsItem and the unified UserMessage type, aligning with the updated request schemas.


7738-7744: Updated streaming examples with new types.
Java and Go streaming code samples now reference UserMessage, UserMessageContent, ChatContentDeltaEvent, and related classes without V2 suffixes.


7938-7955: Detailed streaming response schema added.
The new properties (id, finish_reason, logprobs, message, usage), required fields, response‐stream discriminator mapping, stream-condition, and stream-description comprehensively define the v2 streaming contract.

Also applies to: 7957-7985


11275-11275: Include version in summary.
The summary is updated to "Rerank V2 API", matching the V2 endpoint naming.


11535-11539: Updated content mapping to TextContent.
The oneOf and discriminator now reference TextContent instead of legacy types.


11566-11570: Updated content mapping to TextContent.
The array items and discriminator mappings now point to TextContent for consistency.


11905-11907: Renamed ChatMessageV2 mappings.
ChatMessageV2 now references UserMessage, AssistantMessage, and SystemMessage, and maps tools to ToolMessageV2, removing the old Chat* prefixes.

Also applies to: 11914-11916


12549-12560: Added Content schema.
A new Content oneOf block with a discriminator unifies TextContent and ImageContent into a single type.


12988-12998: Renamed ChatDocumentSource to DocumentSource.
The DocumentSource schema is defined with id and document properties, replacing the v2-specific type.


16314-16320: Updated generic Message mapping for tools.
The Message schema now references ToolMessage instead of the deprecated ChatToolMessage.


16498-16500: Updated ResponseFormat discriminator.
The discriminator mapping now includes text: TextResponseFormat, aligning with the renamed schema.


16527-16529: Updated ResponseFormatV2 discriminator.
The text mapping now points to TextResponseFormatV2 alongside json_object.


16626-16627: Renamed Source oneOf mappings.
Source now includes ToolSource and DocumentSource instead of the old Chat* variants.


16711-16714: Added SystemMessage schema stub.
SystemMessage is introduced with role as a required field, laying the groundwork for unified message types.


16724-16769: Defined SystemMessage, TextContent, and response formats.
The SystemMessage type is declared and the TextContent, TextResponseFormat, and TextResponseFormatV2 schemas are defined with the proper properties, discriminators, and audience tags.


16887-16894: Added ToolContent schema.
ToolContent correctly uses a discriminator on type to distinguish between TextContent and DocumentContent.


17145-17148: Defined UserMessage schema stub.
UserMessage is introduced with role as a required field, standardizing the user message type.


17157-17164: Referenced unified Content in UserMessage.
The content property now uses the Content oneOf schema, supporting both text and block content.

Comment on lines +7869 to 7872
- code: "package main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"os\"\n\n\tcohere \"github.com/cohere-ai/cohere-go/v2\"\n\tclient \"github.com/cohere-ai/cohere-go/v2/client\"\n)\n\nfunc main() {\n\tco := client.NewClient(client.WithToken(os.Getenv(\"CO_API_KEY\")))\n\n\tresp, err := co.V2.Chat(\n\t\tcontext.TODO(),\n\t\t&cohere.V2ChatRequest{\n\t\t\tModel: \"command-a-03-2025\",\n\t\t\tTools: []*cohere.ToolV2{\n\t\t\t\t{\n\t\t\t\t\tType: cohere.String(\"function\"),\n\t\t\t\t\tFunction: &cohere.ToolV2Function{\n\t\t\t\t\t\tName: \"query_daily_sales_report\",\n\t\t\t\t\t\tDescription: cohere.String(\"Connects to a database to retrieve overall sales volumes and sales information for a given day.\"),\n\t\t\t\t\t\tParameters: map[string]interface{}{\n\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\"properties\": map[string]interface{}{\n\t\t\t\t\t\t\t\t\"date\": map[string]interface{}{\n\t\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\t\"description\": \"Retrieves sales data from this day, formatted as YYYY-MM-DD\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"required\": []string{\"date\"},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tType: cohere.String(\"function\"),\n\t\t\t\t\tFunction: &cohere.ToolV2Function{\n\t\t\t\t\t\tName: \"query_product_catalog\",\n\t\t\t\t\t\tDescription: cohere.String(\"Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.\"),\n\t\t\t\t\t\tParameters: map[string]interface{}{\n\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\"properties\": map[string]interface{}{\n\t\t\t\t\t\t\t\t\"category\": map[string]interface{}{\n\t\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\t\"description\": \"Retrieves product information data for all products in this category.\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"required\": []string{\"category\"},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tMessages: cohere.ChatMessages{\n\t\t\t\t{\n\t\t\t\t\tRole: \"user\",\n\t\t\t\t\tUser: &cohere.UserMessage{Content: &cohere.UserMessageContent{\n\t\t\t\t\t\tString: \"Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?\",\n\t\t\t\t\t}},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t)\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog.Printf(\"%+v\", resp)\n}\n"
name: Tools
sdk: go
- code: "curl --request POST \\\n --url https://api.cohere.com/v2/chat \\\n --header 'accept: application/json' \\\n --header 'content-type: application/json' \\\n --header \"Authorization: bearer $CO_API_KEY\" \\\n --data '{\n \"model\": \"command-a-03-2025\",\n \"tools\": [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"query_daily_sales_report\",\n \"description\": \"Connects to a database to retrieve overall sales volumes and sales information for a given day.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"day\": {\n \"description\": \"Retrieves sales data for this day, formatted as YYYY-MM-DD.\",\n \"type\": \"string\"\n }\n }\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"query_product_catalog\",\n \"description\": \"Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"category\": {\n \"description\": \"Retrieves product information data for all products in this category.\",\n \"type\": \"string\"\n }\n }\n }\n }\n }\n ],\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?\"\n }\n ]\n }'\n"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Inconsistent parameter key in Go Tools example.
The Go snippet defines the daily report tool’s parameter as "date" while the Java example uses "day". Align the property name across examples (e.g., use "day" in Go).

Apply this diff:

-   "properties": map[string]interface{}{
-       "date": map[string]interface{}{
+   "properties": map[string]interface{}{
+       "day": map[string]interface{}{
...
-     "required": []string{"date"},
+     "required": []string{"day"},
🤖 Prompt for AI Agents
In src/libs/Cohere/openapi.yaml around lines 7869 to 7872, the Go example for
the daily sales report tool uses the parameter key "date" while the Java example
uses "day". To fix this inconsistency, rename the "date" parameter key to "day"
in the Go example's tool definition so it matches the Java example, ensuring
uniformity across SDK examples.

@HavenDV HavenDV disabled auto-merge June 11, 2025 22:46
@HavenDV HavenDV merged commit ecfab3f into main Jun 11, 2025
3 of 4 checks passed
@HavenDV HavenDV deleted the bot/update-openapi_202506112120 branch June 11, 2025 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants