assist

Improve Prompt Endpoint

post/assist/improve-prompt

Request

  • Base URL: https://api.agent4.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.agent4.io/assist/improve-prompt
  • Auth: none declared

Request body

field'persona' | 'task' | 'greeting' | 'storyline_task' | 'storyline_opening' | 'storyline_ai_trigger' | 'storyline_ai_criteria' | 'skill_description' | 'skill_instructions' | 'kb_description' | 'kb_instructions' required

在编辑哪个字段,决定改写目标(见 app/assist/prompt_helper.py 的 FIELDS)

currentstring

该字段当前的文字;留空表示从零起草

hintstring

用户这次想要的方向/提示;留空则做通用打磨

contextobject

Response

Successful Response

improvedstring required

Changes

No recorded changes to this operation across all 1 revision of this API.