Get action details
const url = 'http://localhost:11044/api/v1/actions/spec/example';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:11044/api/v1/actions/spec/example \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Returns the full spec for a world action. Only PromptedActionSpecs in the world (not realms) include editable fields.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Name of the action, as listed by GET /api/v1/actions; matched exactly. A world action’s YAML at config/actions/<name>.yml is read fresh from disk, otherwise any loaded action of that name (realm-shipped included) is returned with editable false; no match is 404
Responses
Section titled “Responses”Action spec
One action’s spec. The prompt, types, tools, references and model are present only for a prompted action, and absent, not null, for any other
object
What the action does
True only for a prompted action defined directly in this world, which is the only kind editable here
The types the action takes. Prompted actions only
The model the action runs on. Prompted actions only, and null there for the default
The sampling temperature. Prompted actions only, and null there for the default
The action’s name
The type the action produces. Prompted actions only, and null there when none is set
The prompt template. Prompted actions only
The references the action reads. Prompted actions only
The kind of step the spec defines
The tools the action may call. Prompted actions only
Action not found
A refused action operation: not found, not editable, not deletable, or a compilation that failed
object
Why, written to be shown, naming the action
Always error

