initializePlan
Initialize or fully replace a new task plan by defining its goal and structured tasks with dependencies and reasoning, enabling organized task management on MCPlanManager.
Instructions
初始化或完全替换一个新的任务计划。
Args: goal (str): 描述计划总体目标的字符串。 tasks (List[TaskInput]): 任务对象的列表。每个任务的结构如下: - name (str): 任务的名称,在一个计划中应唯一。 - dependencies (List[Union[str, int]]): 依赖的任务名称或ID列表。 - reasoning (str): 阐述为何需要此任务。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
goal | Yes | ||
tasks | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"TaskInput": {
"description": "用于初始化计划时,定义单个任务输入的Pydantic模型。\n这为Agent提供了一个清晰、可验证的数据结构。",
"properties": {
"dependencies": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"title": "Dependencies",
"type": "array"
},
"name": {
"title": "Name",
"type": "string"
},
"reasoning": {
"title": "Reasoning",
"type": "string"
}
},
"required": [
"name",
"dependencies",
"reasoning"
],
"title": "TaskInput",
"type": "object"
}
},
"properties": {
"goal": {
"title": "Goal",
"type": "string"
},
"tasks": {
"items": {
"$ref": "#/$defs/TaskInput"
},
"title": "Tasks",
"type": "array"
}
},
"required": [
"goal",
"tasks"
],
"type": "object"
}