Suggest Agent System Prompt
Generate a starter customInstructions block for an agent.
Same two credential shapes as /agents/validate-llm:
- Inline - raw
apiKey(+ optionalbaseUrl) supplied directly. - Saved connection -
savedConnectionIdreferences a saved LLM connection; Streamkap loads itsapiKey,baseUrlandproviderserver-side, so the stored secret never leaves the server.
Describes the agent (type, name, description, topics, fields, tools, output schema, optional existing draft) to your own LLM and returns the suggested instructions. The base template, schema field listing and tool signatures are added to the system prompt automatically at deploy time, so the suggestion covers only the custom-instructions part. Nothing is persisted.
Per-tenant rate limit: 30 req/min, counted separately from
validate-llm -> 429 with Retry-After. 404 if savedConnectionId
does not match a saved connection. Provider failures (timeouts, 4xx,
schema errors) return 400 with the provider’s error message.
/agents/system-prompt-suggestionAuthorizationBearer token · headerrequiredapplication/jsonproviderAgentLlmProviderEnumrequiredUnified LLM provider enum.
A single AgentLlmConnection carries one provider and a set of
capabilities (chat / embedding). Each provider supports a fixed set of
capabilities, validated on every write.
anthropicopenaiopenai-responsesollamaazureazure-openaibedrockqwenopenai-compatiblemodelstringapiKeystringRaw key - never stored
baseUrlstring | nullShow propertiesHide properties
stringnullsavedConnectionIdstring | nullIf set, Streamkap uses the provider, apiKey and baseUrl of the tenant's saved LLM connection with this id and ignores the inline apiKey / baseUrl.
Show propertiesHide properties
stringnullagentTypestringrequiredAgent type (e.g. react, workflow)
agentNamestring | nullShow propertiesHide properties
stringnulldescriptionstring | nullShow propertiesHide properties
stringnullinputTopicsstring[]selectedFieldsstring[]toolsToolContext[]Tool name + description list. Replaces the older toolNames-only shape.
Show propertiesHide properties
ToolContextnamestringrequiredTool name as referenced in the agent
descriptionstringWhat the tool does, free-form
outputSchemaOutputSchemaField[]Show propertiesHide properties
OutputSchemaFieldnamestringrequiredOutput field name
typestringrequiredOutput field type as the wizard renders it
filterSQLstring | nullActive record-filter (matches AgentInputConfig.filterSQL). Anchors the LLM's prompt to the actual shape of records reaching the agent.
Show propertiesHide properties
stringnullexistingCustomInstructionsstring | nullExisting draft to refine.
Show propertiesHide properties
stringnullgenerationHintstring | nullOptional one-line steer the user types into the wizard's 'Hint for AI' input. The meta-prompt already gets the agent's metadata, so this should carry use-case intent (tone, edge-case priority, what to emphasize) rather than restate the data shape.
Show propertiesHide properties
stringnullSuccessful Response
generatedPromptstringrequiredtokensInintegerrequiredtokensOutintegerrequiredmodelstringrequiredproviderstringrequiredValidation Error
detailValidationError[]Show propertiesHide properties
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
string | integerstringintegermsgstringrequiredtypestringrequiredinputanyctxobject