ask

open override fun ask(input: String, spec: DecisionSpec): DecisionResponse

Answers the questions of a spec against the given input. It behaves as ask with a request.

Return

one answer per question, in spec order

Parameters

input

the text the model reasons over, which may be empty

spec

the questions to answer

Throws

if this service cannot answer the spec. No provider call has been made.


open override fun ask(request: DecisionRequest): DecisionResponse

Answers a request inside one embabel.ai.ask observation. Each provider call is a child observation. Preflight uses the delegate's capabilities and hooks.

Return

one answer per question, in spec order

Parameters

request

the input and the questions to answer

Throws

if the delegate cannot answer the request. No provider call has been made.

if the delegate's capabilities claim a hook it does not implement