Skip to content

Commit

Permalink
fix(TextToTextChatWithTools): Add translator notes
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr authored Dec 10, 2024
1 parent 5af0d13 commit dd0d647
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function __construct(
* @since 31.0.0
*/
public function getName(): string {
// TRANSLATORS Tool calling, also known as function calling, is a structured way to give LLMs the ability to make requests back to the application that called it. You define the tools you want to make available to the model, and the model will make tool requests to your app as necessary to fulfill the prompts you give it.
return $this->l->t('Chat with tools');
}

Expand All @@ -47,6 +48,7 @@ public function getName(): string {
* @since 31.0.0
*/
public function getDescription(): string {
// TRANSLATORS Tool calling, also known as function calling, is a structured way to give LLMs the ability to make requests back to the application that called it. You define the tools you want to make available to the model, and the model will make tool requests to your app as necessary to fulfill the prompts you give it.
return $this->l->t('Chat with the language model with tool calling support.');
}

Expand Down Expand Up @@ -86,6 +88,7 @@ public function getInputShape(): array {
),
// See https://platform.openai.com/docs/api-reference/chat/create#chat-create-tools for the format
'tools' => new ShapeDescriptor(
// TRANSLATORS Tool calling, also known as function calling, is a structured way to give LLMs the ability to make requests back to the application that called it. You define the tools you want to make available to the model, and the model will make tool requests to your app as necessary to fulfill the prompts you give it.
$this->l->t('Available tools'),
$this->l->t('The available tools in JSON format'),
EShapeType::Text
Expand Down

0 comments on commit dd0d647

Please sign in to comment.