Skip to content

entityToolShape

function entityToolShape(entity, operation): EntityToolShape;

Defined in: core/src/entity/entity.tool.ts:44

The schemas and metadata of an entity’s tools, without binding them to a Services.

Split out from toEntityTool because two callers need the shapes and only one of them can execute anything: the server binds real tools, while the client manifest publishes the schemas so a client can rebuild them. Deriving both from here is what stops the paging flattening from being reimplemented — and quietly diverging — on the far side of the wire.

Parameter Type
entity EntityType
operation EntityOperation

EntityToolShape