/memory/* - memory service (organized by project) /agents/* - agent service (separate offering)
This commit is contained in:
@@ -390,7 +390,7 @@ pub struct PromptResponse {
|
||||
pub created_at: String,
|
||||
}
|
||||
|
||||
/// POST /memory/agents/{project_id}/prompts - Create agent prompt
|
||||
/// POST /agents/{id}/prompts - Create agent prompt
|
||||
pub async fn create_prompt_handler(
|
||||
req: HttpRequest,
|
||||
path: web::Path<String>,
|
||||
@@ -462,7 +462,7 @@ pub struct MapRoleToPromptRequest {
|
||||
pub priority: Option<i32>,
|
||||
}
|
||||
|
||||
/// POST /memory/agents/{project_id}/roles - Map role to prompt
|
||||
/// POST /agents/{id}/roles - Map role to prompt
|
||||
pub async fn map_role_to_prompt_handler(
|
||||
req: HttpRequest,
|
||||
path: web::Path<String>,
|
||||
@@ -548,7 +548,7 @@ pub struct RolePromptsResponse {
|
||||
pub prompts: Vec<PromptResponse>,
|
||||
}
|
||||
|
||||
/// GET /memory/agents/{project_id}/roles/{role_name}/prompts - Get prompts for role
|
||||
/// GET /agents/{id}/roles/{role_name}/prompts - Get prompts for role
|
||||
pub async fn get_role_prompts_handler(
|
||||
req: HttpRequest,
|
||||
path: web::Path<(String, String)>,
|
||||
|
||||
Reference in New Issue
Block a user