-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs for structured outputs - tools (#262)
* add docs for structured outputs - tools * Update fern/pages/v2/text-generation/tools/tool-use.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/changelog/2024-11-25-structured-outputs-tools.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/changelog/2024-11-25-structured-outputs-tools.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/changelog/2024-11-25-structured-outputs-tools.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/text-generation/structured-outputs-json.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/text-generation/structured-outputs-json.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/text-generation/structured-outputs-json.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/text-generation/structured-outputs-json.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/changelog/2024-11-25-structured-outputs-tools.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/text-generation/structured-outputs-json.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/text-generation/structured-outputs-json.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/text-generation/structured-outputs-json.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/text-generation/structured-outputs-json.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * updates post-review * fix markdown * change slug Signed-off-by: Michael <[email protected]> * fixes Signed-off-by: Michael <[email protected]> * Update 2024-11-25-structured-outputs-tools.mdx Signed-off-by: Michael <[email protected]> * fix links * rename files * revert url change * Update structured-outputs-json.mdx Signed-off-by: Michael <[email protected]> * update slug to remove 'JSON' * Add redirects for structured outputs pages (#269) Co-authored-by: Max Shkutnyk <[email protected]> --------- Signed-off-by: Meor Amer <[email protected]> Signed-off-by: Michael <[email protected]> Co-authored-by: Michael <[email protected]> Co-authored-by: Michael <[email protected]> Co-authored-by: Max Shkutnyk <[email protected]> Co-authored-by: Max Shkutnyk <[email protected]>
- Loading branch information
1 parent
7ebcd53
commit 169412f
Showing
11 changed files
with
360 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
fern/pages/changelog/2024-11-27-structured-outputs-tools.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: "Structured Outputs support for tool use" | ||
slug: "changelog/structured-outputs-tools" | ||
createdAt: "Wed Nov 27 2024" | ||
hidden: false | ||
description: >- | ||
Structured Outputs now supports both JSON and tool use scenarios. | ||
--- | ||
|
||
Today, we're pleased to announce that we have added Structured Outputs support for tool use in the Chat API. | ||
|
||
In addition to supporting Structured Outputs with JSON generation via the `response_format` parameter, Structured Outputs will be available with Tools as well via the `strict_tools` parameter. | ||
|
||
Setting `strict_tools` to `true` ensures that tool calls will follow the provided tool schema exactly. This means the tool calls are guaranteed to adhere to the tool names, parameter names, parameter data types, and required parameters, without the risk of hallucinations. | ||
|
||
See the [Structured Outputs documentation](https://docs.cohere.com/v2/docs/structured-outputs#structured-outputs-tools) to learn more. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
141 changes: 0 additions & 141 deletions
141
fern/pages/v2/text-generation/structured-outputs-json.mdx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.