Skip to content

Function: createToolAnnotations()

ts
function createToolAnnotations(props?): ToolAnnotations;

Defined in: packages/core/src/domain/ToolAnnotations.ts:48

Create ToolAnnotations from partial properties.

Parameters

ParameterTypeDescription
propsToolAnnotationsAnnotation properties (all optional)

Returns

ToolAnnotations

A ToolAnnotations instance

Example

typescript
const ann = createToolAnnotations({ destructiveHint: true });