2025-03-16 17:17:01 +08:00
|
|
|
#ifndef HUMANUS_PROMPT_H
|
|
|
|
#define HUMANUS_PROMPT_H
|
|
|
|
|
|
|
|
namespace humanus {
|
|
|
|
|
|
|
|
namespace prompt {
|
|
|
|
|
|
|
|
namespace manus {
|
2025-03-17 01:58:37 +08:00
|
|
|
extern const char* SYSTEM_PROMPT;
|
|
|
|
extern const char* NEXT_STEP_PROMPT;
|
2025-03-16 17:17:01 +08:00
|
|
|
} // namespace manus
|
|
|
|
|
|
|
|
namespace planning {
|
2025-03-17 01:58:37 +08:00
|
|
|
extern const char* PLANNING_SYSTEM_PROMPT;
|
|
|
|
extern const char* NEXT_STEP_PROMPT;
|
2025-03-16 17:17:01 +08:00
|
|
|
} // namespace planning
|
|
|
|
|
|
|
|
namespace swe {
|
2025-03-17 01:58:37 +08:00
|
|
|
extern const char* SYSTEM_PROMPT;
|
|
|
|
extern const char* NEXT_STEP_TEMPLATE;
|
2025-03-16 17:17:01 +08:00
|
|
|
} // namespace swe
|
|
|
|
|
|
|
|
namespace toolcall {
|
2025-03-17 01:58:37 +08:00
|
|
|
extern const char* SYSTEM_PROMPT;
|
|
|
|
extern const char* NEXT_STEP_PROMPT;
|
2025-03-16 17:17:01 +08:00
|
|
|
} // namespace toolcall
|
|
|
|
|
|
|
|
} // namespace prompt
|
|
|
|
|
2025-03-17 01:58:37 +08:00
|
|
|
// 使用内联函数来获取常量
|
|
|
|
inline const char* get_tool_call_required() { return "required"; }
|
|
|
|
inline const char* get_terminate_description() { return "Terminate the current interaction"; }
|
|
|
|
inline const char* get_planning_tool_description() { return "Create a plan for the given task"; }
|
|
|
|
|
|
|
|
#define TOOL_CALL_REQUIRED get_tool_call_required()
|
|
|
|
#define _TERMINATE_DESCRIPTION get_terminate_description()
|
|
|
|
#define _PLANNING_TOOL_DESCRIPTION get_planning_tool_description()
|
|
|
|
|
2025-03-16 17:17:01 +08:00
|
|
|
} // namespace humanus
|
|
|
|
|
|
|
|
#endif // HUMANUS_PROMPT_H
|