Code
T7001 ability-missing
A model was asked for something it cannot do: a call of an ability that it does not have, or a call that its provider has no member for.
Details
The abilities of a model are reply (with it stream), tools, typedAnswers (with it fill), images, embed, hear, speak and reasoning. A model whose name the list of a shipped provider knows has the abilities the list gives it; any other states them in abilities. What a definition states wins over the list.
writer.fill(...)on a model withouttypedAnswers,writer.embed(...)on one withoutembed, and so on.- A
replythat handsimagesto a model withoutimages. - An agent with tools whose model lacks
tools, and one that statestell: 'list'orsequenceon such a model. - A call of a model as a function, where the model states neither
inputandoutputnor acallof a service.
The check finds it where it can see the call, and a call that it could not see fails with it while it runs. A model in fallback that lacks the ability is passed over, and is never the cause.
The fix
Give the model the ability in abilities, where its server has it, or ask a model that has it.
TypeScript
export const local = model('local', { provider: 'openai-style', name: 'qwen3', url: 'http://localhost:11434/v1', abilities: ['reply', 'tools', 'typedAnswers'], takes: 32000 })