Skip to content

Commit 2b06c00

Browse files
author
klapaudius
committed
Remove redundant parentheses in ToolAnnotation and StructuredSchema instantiations.
1 parent 471ea4e commit 2b06c00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/building_tools.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class MyCustomTool implements StreamableToolInterface
100100

101101
public function getAnnotations(): ToolAnnotation
102102
{
103-
return new ToolAnnotation();
103+
return new ToolAnnotation;
104104
}
105105

106106
public function execute(array $arguments): ToolResultInterface
@@ -967,7 +967,7 @@ class HelloWorldTool implements StreamableToolInterface
967967

968968
public function getAnnotations(): ToolAnnotation
969969
{
970-
return new ToolAnnotation();
970+
return new ToolAnnotation;
971971
}
972972

973973
public function execute(array $arguments): ToolResultInterface
@@ -1007,12 +1007,12 @@ final class VersionCheckTool implements StreamableToolInterface
10071007

10081008
public function getInputSchema(): StructuredSchema
10091009
{
1010-
return new StructuredSchema(); // No input parameters
1010+
return new StructuredSchema; // No input parameters
10111011
}
10121012

10131013
public function getAnnotations(): ToolAnnotation
10141014
{
1015-
return new ToolAnnotation();
1015+
return new ToolAnnotation;
10161016
}
10171017

10181018
public function execute(array $arguments): ToolResultInterface

0 commit comments

Comments
 (0)