Documentation
¶
Index ¶
- func CreateNodeFunc(ctx context.Context, req *CreateNodeRequest) (*dto.NodeResponse, error)
- func CreateNodeTool() (tool.InvokableTool, error)
- func DeleteNodeTool() (tool.InvokableTool, error)
- func GetAllNodeTools() ([]tool.BaseTool, error)
- func GetAllToolInfos(ctx context.Context) ([]*schema.ToolInfo, error)
- func SetNodeDependenciesTool() (tool.InvokableTool, error)
- func UpdateNodeFunc(ctx context.Context, req *UpdateNodeRequest) (*dto.NodeResponse, error)
- func UpdateNodeTool() (tool.InvokableTool, error)
- type CreateNodeRequest
- type DeleteNodeRequest
- type DeleteNodeResponse
- type SetNodeDependenciesRequest
- type SetNodeDependenciesResponse
- type UpdateNodeRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNodeFunc ¶
func CreateNodeFunc(ctx context.Context, req *CreateNodeRequest) (*dto.NodeResponse, error)
CreateNodeFunc 创建节点函数
func GetAllToolInfos ¶
genToolInfos generates tool information from tools config
func SetNodeDependenciesTool ¶
func SetNodeDependenciesTool() (tool.InvokableTool, error)
SetNodeDependenciesTool 设置节点依赖关系工具
func UpdateNodeFunc ¶
func UpdateNodeFunc(ctx context.Context, req *UpdateNodeRequest) (*dto.NodeResponse, error)
UpdateNodeFunc 更新节点函数
Types ¶
type CreateNodeRequest ¶
type CreateNodeRequest struct {
NodeID string `json:"nodeID"`
NodeType string `json:"nodeType"`
Question string `json:"question"`
Target string `json:"target"`
X float64 `json:"x"`
Y float64 `json:"y"`
}
CreateNodeRequest 创建节点请求参数
type DeleteNodeRequest ¶
type DeleteNodeRequest struct {
NodeID string `json:"nodeID"`
}
DeleteNodeRequest 删除节点请求参数
type DeleteNodeResponse ¶
DeleteNodeResponse 删除节点响应
func DeleteNodeFunc ¶
func DeleteNodeFunc(ctx context.Context, req *DeleteNodeRequest) (*DeleteNodeResponse, error)
DeleteNodeFunc 删除节点函数
type SetNodeDependenciesRequest ¶
type SetNodeDependenciesRequest struct {
NodeID string `json:"nodeID"`
Dependencies []string `json:"dependencies"`
Op string `json:"op"` // "add" 或 "remove"
}
SetNodeDependenciesRequest 设置节点依赖关系请求参数
type SetNodeDependenciesResponse ¶
type SetNodeDependenciesResponse struct {
Success bool `json:"success"`
Message string `json:"message"`
}
SetNodeDependenciesResponse 设置节点依赖关系响应
func SetNodeDependenciesFunc ¶
func SetNodeDependenciesFunc(ctx context.Context, req *SetNodeDependenciesRequest) (*SetNodeDependenciesResponse, error)
SetNodeDependenciesFunc 设置节点依赖关系的函数
Click to show internal directories.
Click to hide internal directories.