mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
fix warnings
This commit is contained in:
@@ -100,7 +100,8 @@ class MoviePilotToolsManager:
|
|||||||
return tool
|
return tool
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _normalize_arguments(self, tool_instance: Any, arguments: Dict[str, Any]) -> Dict[str, Any]:
|
@staticmethod
|
||||||
|
def _normalize_arguments(tool_instance: Any, arguments: Dict[str, Any]) -> Dict[str, Any]:
|
||||||
"""
|
"""
|
||||||
根据工具的参数schema规范化参数类型
|
根据工具的参数schema规范化参数类型
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
通过HTTP API暴露MoviePilot的智能体工具功能
|
通过HTTP API暴露MoviePilot的智能体工具功能
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from typing import List, Any, Dict, Annotated, Optional, Union
|
from typing import List, Any, Dict, Annotated, Union
|
||||||
|
|
||||||
from fastapi import APIRouter, Depends, HTTPException, Request, Header
|
from fastapi import APIRouter, Depends, HTTPException, Request
|
||||||
from fastapi.responses import JSONResponse, Response
|
from fastapi.responses import JSONResponse, Response
|
||||||
|
|
||||||
from app import schemas
|
from app import schemas
|
||||||
@@ -29,9 +29,6 @@ def get_tools_manager() -> MoviePilotToolsManager:
|
|||||||
"""
|
"""
|
||||||
获取工具管理器实例
|
获取工具管理器实例
|
||||||
|
|
||||||
Args:
|
|
||||||
user_id: 用户ID
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
MoviePilotToolsManager实例
|
MoviePilotToolsManager实例
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user