Check out what Gzuuus DBTH etc are doing with DVMCP. Each tool defines it's parameters in a NIP-89 declaration, then responds in the DVM style (5910, 6910, 7000), when tagged, based on those params.

Very extensible for any tool to use (an AI, or any API, as a tool). Can define and require any parameters (context window size for an AI, stock symbol for a price query, etc).

Reply to this note

Please Login to reply.

Discussion

E.g.

I define a npub that is an LLM that will respond to users.

The npub publishes it's spec as NIP-89 including anything e.g. context window size.

A user publishes a kind 5910 note, tagging the npub, with content complying with the spec.

The npub replies with 6910 for success response or 7000 for anything else.