Generate Protocol Endpoint
Generate a UCP protocol from a natural-language description.
When the description leaves a value undecided that would change what runs on the channel, the response carries questions and no protocol. Answer them and call again with the full clarifications history.
Any protocol that is returned has already passed the same validation as POST /protocols/validate and contains no unresolved input["..."] references, so it can be saved as an experiment template directly.
Parameters
body : GenerateProtocolRequest The natural-language prompt, any answers already given, and an optional existing protocol to edit rather than replace.
Returns
GenerateProtocolResponse Either the generated YAML with a suggested name, an explanation, and the assumptions made — or the questions needed to write it.
Raises
ExternalServiceError If the model could not produce a valid protocol.
Request body
Response
Successful Response