Suggest Agent System Prompt
Changed onGenerate a starter customInstructions block for an agent.
Same two credential shapes as /agents/validate-llm:
- Inline - raw apiKey (+ optional baseUrl) supplied directly.
- Saved connection - savedConnectionId references a saved LLM connection; Streamkap loads its apiKey, baseUrl and provider server-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.
Request
- Base URLhttps://api.streamkap.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- info
endpoint added
- info