Skip to content

How to expose failed declarative tool registration #182

@domfarolino

Description

@domfarolino

Tool registration can fail for multiple reasons: duplicate name, invalid name, permission policy is disabled etc. The imperative API handles this gracefully (usually by throwing NotAllowedError DOMExceptions, but how should we handle this for the declarative API? In a queued task, we should probably fire a toolerror event or some such, against either the offending <form> or the ModelContext object. I don't have strong opinions on which.

Or is there a better way to handle this?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions