SYMBOL INDEX (6049 symbols across 777 files) FILE: apps/application/api/application_access_token.py class ApplicationAccessTokenAPI (line 16) | class ApplicationAccessTokenAPI(APIMixin): method get_parameters (line 18) | def get_parameters(): method get_request (line 34) | def get_request(): FILE: apps/application/api/application_api.py class ApplicationCreateRequest (line 20) | class ApplicationCreateRequest(ApplicationCreateSerializer.SimplateReque... class ApplicationCreateResponse (line 24) | class ApplicationCreateResponse(ResultSerializer): method get_data (line 25) | def get_data(self): class ApplicationListResult (line 29) | class ApplicationListResult(ResultSerializer): method get_data (line 30) | def get_data(self): class ApplicationPageResult (line 34) | class ApplicationPageResult(ResultPageSerializer): method get_data (line 35) | def get_data(self): class ApplicationQueryAPI (line 39) | class ApplicationQueryAPI(APIMixin): method get_parameters (line 41) | def get_parameters(): method get_response (line 102) | def get_response(): method get_page_response (line 106) | def get_page_response(): class ApplicationCreateAPI (line 110) | class ApplicationCreateAPI(APIMixin): method get_parameters (line 112) | def get_parameters(): method get_request (line 124) | def get_request(): method get_response (line 128) | def get_response(): class ApplicationImportAPI (line 132) | class ApplicationImportAPI(APIMixin): method get_parameters (line 134) | def get_parameters(): method get_request (line 138) | def get_request(): class ApplicationOperateAPI (line 142) | class ApplicationOperateAPI(APIMixin): method get_parameters (line 144) | def get_parameters(): class ApplicationExportAPI (line 163) | class ApplicationExportAPI(APIMixin): method get_parameters (line 165) | def get_parameters(): method get_response (line 169) | def get_response(): class ApplicationEditAPI (line 173) | class ApplicationEditAPI(APIMixin): method get_request (line 175) | def get_request(): class TextToSpeechAPI (line 179) | class TextToSpeechAPI(APIMixin): method get_parameters (line 181) | def get_parameters(): method get_request (line 185) | def get_request(): method get_response (line 189) | def get_response(): class SpeechToTextAPI (line 193) | class SpeechToTextAPI(APIMixin): method get_parameters (line 195) | def get_parameters(): method get_request (line 199) | def get_request(): method get_response (line 203) | def get_response(): class PlayDemoTextAPI (line 207) | class PlayDemoTextAPI(APIMixin): method get_parameters (line 209) | def get_parameters(): method get_request (line 213) | def get_request(): method get_response (line 217) | def get_response(): FILE: apps/application/api/application_api_key.py class ApplicationKeyListResult (line 9) | class ApplicationKeyListResult(ResultSerializer): method get_data (line 10) | def get_data(self): class ApplicationKeyResult (line 14) | class ApplicationKeyResult(ResultSerializer): method get_data (line 15) | def get_data(self): class ApplicationKeyAPI (line 19) | class ApplicationKeyAPI(APIMixin): method get_parameters (line 21) | def get_parameters(): method get_response (line 40) | def get_response(): class List (line 43) | class List(APIMixin): method get_response (line 45) | def get_response(): class Operate (line 48) | class Operate(APIMixin): method get_parameters (line 50) | def get_parameters(): method get_request (line 60) | def get_request(): FILE: apps/application/api/application_chat.py class ApplicationChatListResponseSerializers (line 19) | class ApplicationChatListResponseSerializers(ResultSerializer): method get_data (line 20) | def get_data(self): class ApplicationChatPageResponseSerializers (line 24) | class ApplicationChatPageResponseSerializers(ResultPageSerializer): method get_data (line 25) | def get_data(self): class ApplicationChatQueryAPI (line 29) | class ApplicationChatQueryAPI(APIMixin): method get_request (line 31) | def get_request(): method get_parameters (line 35) | def get_parameters(): method get_response (line 95) | def get_response(): class ApplicationChatQueryPageAPI (line 99) | class ApplicationChatQueryPageAPI(APIMixin): method get_request (line 101) | def get_request(): method get_parameters (line 105) | def get_parameters(): method get_response (line 126) | def get_response(): class ApplicationChatExportAPI (line 130) | class ApplicationChatExportAPI(APIMixin): method get_request (line 132) | def get_request(): method get_parameters (line 136) | def get_parameters(): method get_response (line 140) | def get_response(): FILE: apps/application/api/application_chat_link.py class ChatRecordLinkAPI (line 17) | class ChatRecordLinkAPI(APIMixin): method get_response (line 19) | def get_response(): method get_request (line 23) | def get_request(): method get_parameters (line 27) | def get_parameters(): class ChatRecordDetailShareAPI (line 45) | class ChatRecordDetailShareAPI(APIMixin): method get_response (line 47) | def get_response(): method get_parameters (line 53) | def get_parameters(): FILE: apps/application/api/application_chat_record.py class ApplicationChatRecordQueryAPI (line 18) | class ApplicationChatRecordQueryAPI(APIMixin): method get_response (line 20) | def get_response(): method get_request (line 24) | def get_request(): method get_parameters (line 28) | def get_parameters(): class ApplicationChatRecordPageQueryAPI (line 60) | class ApplicationChatRecordPageQueryAPI(APIMixin): method get_response (line 62) | def get_response(): method get_request (line 66) | def get_request(): method get_parameters (line 70) | def get_parameters(): class ApplicationChatRecordImproveParagraphAPI (line 88) | class ApplicationChatRecordImproveParagraphAPI(APIMixin): method get_response (line 90) | def get_response(): method get_request (line 94) | def get_request(): method get_parameters (line 98) | def get_parameters(): class Operate (line 143) | class Operate(APIMixin): method get_parameters (line 145) | def get_parameters(): class ApplicationChatRecordAddKnowledgeAPI (line 155) | class ApplicationChatRecordAddKnowledgeAPI(APIMixin): method get_request (line 157) | def get_request(): method get_response (line 161) | def get_response(): method get_parameters (line 165) | def get_parameters(): FILE: apps/application/api/application_stats.py class ApplicationStatsResult (line 17) | class ApplicationStatsResult(ResultSerializer): method get_data (line 18) | def get_data(self): class ApplicationStatsAPI (line 22) | class ApplicationStatsAPI(APIMixin): method get_parameters (line 24) | def get_parameters(): method get_response (line 54) | def get_response(): FILE: apps/application/api/application_version.py class ApplicationListVersionResult (line 17) | class ApplicationListVersionResult(ResultSerializer): method get_data (line 18) | def get_data(self): class ApplicationPageVersionResult (line 22) | class ApplicationPageVersionResult(ResultPageSerializer): method get_data (line 23) | def get_data(self): class ApplicationWorkflowVersionResult (line 27) | class ApplicationWorkflowVersionResult(ResultSerializer): method get_data (line 28) | def get_data(self): class ApplicationVersionAPI (line 32) | class ApplicationVersionAPI(APIMixin): method get_parameters (line 34) | def get_parameters(): class ApplicationVersionOperateAPI (line 53) | class ApplicationVersionOperateAPI(APIMixin): method get_parameters (line 55) | def get_parameters(): method get_response (line 68) | def get_response(): class ApplicationVersionListAPI (line 72) | class ApplicationVersionListAPI(APIMixin): method get_parameters (line 74) | def get_parameters(): method get_response (line 85) | def get_response(): class ApplicationVersionPageAPI (line 89) | class ApplicationVersionPageAPI(APIMixin): method get_parameters (line 91) | def get_parameters(): method get_response (line 95) | def get_response(): FILE: apps/application/apps.py class ApplicationConfig (line 4) | class ApplicationConfig(AppConfig): FILE: apps/application/chat_pipeline/I_base_chat_pipeline.py class ParagraphPipelineModel (line 18) | class ParagraphPipelineModel: method __init__ (line 20) | def __init__(self, _id: str, document_id: str, knowledge_id: str, cont... method to_dict (line 40) | def to_dict(self): class builder (line 57) | class builder: method __init__ (line 58) | def __init__(self): method add_paragraph (line 69) | def add_paragraph(self, paragraph): method add_knowledge_name (line 83) | def add_knowledge_name(self, knowledge_name): method add_knowledge_type (line 87) | def add_knowledge_type(self, knowledge_type): method add_document_name (line 91) | def add_document_name(self, document_name): method add_hit_handling_method (line 95) | def add_hit_handling_method(self, hit_handling_method): method add_directly_return_similarity (line 99) | def add_directly_return_similarity(self, directly_return_similarity): method add_comprehensive_score (line 103) | def add_comprehensive_score(self, comprehensive_score: float): method add_similarity (line 107) | def add_similarity(self, similarity: float): method add_meta (line 111) | def add_meta(self, meta: dict): method build (line 115) | def build(self): class IBaseChatPipelineStep (line 127) | class IBaseChatPipelineStep: method __init__ (line 128) | def __init__(self): method get_step_serializer (line 135) | def get_step_serializer(self, manage) -> Type[serializers.Serializer]: method valid_args (line 138) | def valid_args(self, manage): method run (line 144) | def run(self, manage): method _run (line 174) | def _run(self, manage): method execute (line 177) | def execute(self, **kwargs): method get_details (line 180) | def get_details(self, manage, **kwargs): FILE: apps/application/chat_pipeline/pipeline_manage.py class PipelineManage (line 18) | class PipelineManage: method __init__ (line 19) | def __init__(self, step_list: List[Type[IBaseChatPipelineStep]], method run (line 30) | def run(self, context: Dict = None): method get_details (line 39) | def get_details(self): method get_base_to_response (line 44) | def get_base_to_response(self): class builder (line 47) | class builder: method __init__ (line 48) | def __init__(self): method append_step (line 53) | def append_step(self, step: Type[IBaseChatPipelineStep]): method add_base_to_response (line 57) | def add_base_to_response(self, base_to_response: BaseToResponse): method add_debug (line 61) | def add_debug(self, debug): method build (line 65) | def build(self): FILE: apps/application/chat_pipeline/step/chat_step/i_chat_step.py class ModelField (line 23) | class ModelField(serializers.Field): method to_internal_value (line 24) | def to_internal_value(self, data): method to_representation (line 29) | def to_representation(self, value): class MessageField (line 33) | class MessageField(serializers.Field): method to_internal_value (line 34) | def to_internal_value(self, data): method to_representation (line 39) | def to_representation(self, value): class PostResponseHandler (line 43) | class PostResponseHandler: method handler (line 45) | def handler(self, chat_id, chat_record_id, paragraph_list: List[Paragr... class IChatStep (line 51) | class IChatStep(IBaseChatPipelineStep): class InstanceSerializer (line 52) | class InstanceSerializer(serializers.Serializer): method is_valid (line 94) | def is_valid(self, *, raise_exception=False): method get_step_serializer (line 101) | def get_step_serializer(self, manage: PipelineManage) -> Type[serializ... method _run (line 104) | def _run(self, manage: PipelineManage): method execute (line 109) | def execute(self, message_list: List[BaseMessage], FILE: apps/application/chat_pipeline/step/chat_step/impl/base_chat_step.py function add_access_num (line 37) | def add_access_num(chat_user_id=None, chat_user_type=None, application_i... function write_context (line 50) | def write_context(step, manage, request_token, response_token, all_text): function event_content (line 61) | def event_content(response, class BaseChatStep (line 162) | class BaseChatStep(IChatStep): method execute (line 163) | def execute(self, message_list: List[BaseMessage], method get_details (line 209) | def get_details(self, manage, **kwargs): method reset_message_list (line 224) | def reset_message_list(message_list: List[BaseMessage], answer_text): method _handle_mcp_request (line 233) | def _handle_mcp_request(self, mcp_source, mcp_servers, mcp_tool_ids, t... method get_stream_result (line 328) | def get_stream_result(self, message_list: List[BaseMessage], method execute_stream (line 380) | def execute_stream(self, message_list: List[BaseMessage], method get_block_result (line 418) | def get_block_result(self, message_list: List[BaseMessage], method execute_block (line 469) | def execute_block(self, message_list: List[BaseMessage], FILE: apps/application/chat_pipeline/step/generate_human_message_step/i_generate_human_message_step.py class IGenerateHumanMessageStep (line 23) | class IGenerateHumanMessageStep(IBaseChatPipelineStep): class InstanceSerializer (line 24) | class InstanceSerializer(serializers.Serializer): method get_step_serializer (line 49) | def get_step_serializer(self, manage: PipelineManage) -> Type[serializ... method _run (line 52) | def _run(self, manage: PipelineManage): method execute (line 57) | def execute(self, FILE: apps/application/chat_pipeline/step/generate_human_message_step/impl/base_generate_human_message_step.py class BaseGenerateHumanMessageStep (line 20) | class BaseGenerateHumanMessageStep(IGenerateHumanMessageStep): method execute (line 22) | def execute(self, problem_text: str, method to_human_message (line 49) | def to_human_message(prompt: str, method get_details (line 74) | def get_details(self, manage, **kwargs): FILE: apps/application/chat_pipeline/step/reset_problem_step/i_reset_problem_step.py class IResetProblemStep (line 21) | class IResetProblemStep(IBaseChatPipelineStep): class InstanceSerializer (line 22) | class InstanceSerializer(serializers.Serializer): method get_step_serializer (line 34) | def get_step_serializer(self, manage: PipelineManage) -> Type[serializ... method _run (line 37) | def _run(self, manage: PipelineManage): method execute (line 51) | def execute(self, problem_text: str, history_chat_record: List[ChatRec... FILE: apps/application/chat_pipeline/step/reset_problem_step/impl/base_reset_problem_step.py class BaseResetProblemStep (line 23) | class BaseResetProblemStep(IResetProblemStep): method execute (line 24) | def execute(self, problem_text: str, history_chat_record: List[ChatRec... method get_details (line 58) | def get_details(self, manage, **kwargs): FILE: apps/application/chat_pipeline/step/search_dataset_step/i_search_dataset_step.py class ISearchDatasetStep (line 21) | class ISearchDatasetStep(IBaseChatPipelineStep): class InstanceSerializer (line 22) | class InstanceSerializer(serializers.Serializer): method get_step_serializer (line 49) | def get_step_serializer(self, manage: PipelineManage) -> Type[Instance... method _run (line 52) | def _run(self, manage: PipelineManage): method execute (line 58) | def execute(self, problem_text: str, knowledge_id_list: list[str], exc... FILE: apps/application/chat_pipeline/step/search_dataset_step/impl/base_search_dataset_step.py function reset_meta (line 30) | def reset_meta(meta): function get_embedding_id (line 36) | def get_embedding_id(knowledge_id_list): class BaseSearchDatasetStep (line 46) | class BaseSearchDatasetStep(ISearchDatasetStep): method execute (line 48) | def execute(self, problem_text: str, knowledge_id_list: list[str], exc... method reset_paragraph (line 81) | def reset_paragraph(paragraph: Dict, embedding_list: List) -> Paragrap... method get_similarity (line 99) | def get_similarity(paragraph, embedding_list: List): method list_paragraph (line 108) | def list_paragraph(embedding_list: List, vector): method get_details (line 135) | def get_details(self, manage, **kwargs): FILE: apps/application/flow/backend/sandbox_shell.py class SandboxShellBackend (line 15) | class SandboxShellBackend(LocalShellBackend): method __init__ (line 16) | def __init__(self, root_dir: str, **kwargs): method _translate_virtual_paths (line 32) | def _translate_virtual_paths(self, command: str) -> str: method execute (line 53) | def execute( FILE: apps/application/flow/common.py class Answer (line 27) | class Answer: method __init__ (line 28) | def __init__(self, content, view_type, runtime_node_id, chat_record_id... method to_dict (line 38) | def to_dict(self): class NodeChunk (line 46) | class NodeChunk: method __init__ (line 47) | def __init__(self): method add_chunk (line 51) | def add_chunk(self, chunk): method end (line 54) | def end(self, chunk=None): method is_end (line 59) | def is_end(self): class Edge (line 63) | class Edge: method __init__ (line 64) | def __init__(self, _id: str, _type: str, sourceNodeId: str, targetNode... class Node (line 73) | class Node: method __init__ (line 74) | def __init__(self, _id: str, _type: str, x: int, y: int, properties: d... class EdgeNode (line 84) | class EdgeNode: method __init__ (line 88) | def __init__(self, edge, node): class WorkflowMode (line 93) | class WorkflowMode(Enum): class Workflow (line 107) | class Workflow: method __init__ (line 131) | def __init__(self, nodes: List[Node], edges: List[Edge], method get_node (line 147) | def get_node(self, node_id): method get_up_edge_nodes (line 155) | def get_up_edge_nodes(self, node_id) -> List[EdgeNode]: method get_next_edge_nodes (line 163) | def get_next_edge_nodes(self, node_id) -> List[EdgeNode]: method get_up_nodes (line 171) | def get_up_nodes(self, node_id) -> List[Node]: method get_next_nodes (line 179) | def get_next_nodes(self, node_id) -> List[Node]: method new_instance (line 188) | def new_instance(flow_obj: Dict, workflow_mode: WorkflowMode = Workflo... method get_start_node (line 196) | def get_start_node(self): method get_search_node (line 199) | def get_search_node(self): method is_valid (line 202) | def is_valid(self): method is_valid_node_params (line 211) | def is_valid_node_params(self, node: Node): method is_valid_node (line 215) | def is_valid_node(self, node: Node): method is_valid_work_flow (line 233) | def is_valid_work_flow(self, up_node=None): method is_valid_start_node (line 241) | def is_valid_start_node(self): method is_valid_model_params (line 248) | def is_valid_model_params(self): method is_valid_base_node (line 277) | def is_valid_base_node(self): FILE: apps/application/flow/compare/compare.py class Compare (line 13) | class Compare: method support (line 15) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 19) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/contain_compare.py class ContainCompare (line 14) | class ContainCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/end_with.py class EndWithCompare (line 14) | class EndWithCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/equal_compare.py class EqualCompare (line 14) | class EqualCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/ge_compare.py class GECompare (line 14) | class GECompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/gt_compare.py class GTCompare (line 14) | class GTCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/is_not_null_compare.py class IsNotNullCompare (line 14) | class IsNotNullCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/is_not_true.py class IsNotTrueCompare (line 14) | class IsNotTrueCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/is_null_compare.py class IsNullCompare (line 14) | class IsNullCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/is_true.py class IsTrueCompare (line 14) | class IsTrueCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/le_compare.py class LECompare (line 14) | class LECompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/len_equal_compare.py class LenEqualCompare (line 14) | class LenEqualCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/len_ge_compare.py class LenGECompare (line 14) | class LenGECompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/len_gt_compare.py class LenGTCompare (line 14) | class LenGTCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/len_le_compare.py class LenLECompare (line 14) | class LenLECompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/len_lt_compare.py class LenLTCompare (line 14) | class LenLTCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/lt_compare.py class LTCompare (line 14) | class LTCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/not_contain_compare.py class NotContainCompare (line 14) | class NotContainCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/not_equal_compare.py class NotEqualCompare (line 14) | class NotEqualCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/compare/start_with.py class StartWithCompare (line 14) | class StartWithCompare(Compare): method support (line 16) | def support(self, node_id, fields: List[str], source_value, compare, t... method compare (line 20) | def compare(self, source_value, compare, target_value): FILE: apps/application/flow/i_step_node.py function write_context (line 30) | def write_context(step_variable: Dict, global_variable: Dict, node, work... function is_interrupt (line 44) | def is_interrupt(node, step_variable: Dict, global_variable: Dict): class WorkFlowPostHandler (line 48) | class WorkFlowPostHandler: method __init__ (line 49) | def __init__(self, chat_info): method handler (line 52) | def handler(self, workflow): class KnowledgeWorkflowPostHandler (line 106) | class KnowledgeWorkflowPostHandler(WorkFlowPostHandler): method __init__ (line 107) | def __init__(self, chat_info, knowledge_action_id): method handler (line 111) | def handler(self, workflow): function get_tool_workflow_state (line 119) | def get_tool_workflow_state(workflow): class ToolWorkflowPostHandler (line 131) | class ToolWorkflowPostHandler(WorkFlowPostHandler): method __init__ (line 132) | def __init__(self, chat_info, tool_id): method handler (line 136) | def handler(self, workflow): function get_loop_workflow_node (line 153) | def get_loop_workflow_node(node_list): function get_workflow_state (line 163) | def get_workflow_state(workflow): class NodeResult (line 178) | class NodeResult: method __init__ (line 179) | def __init__(self, node_variable: Dict, workflow_variable: Dict, method write_context (line 186) | def write_context(self, node, workflow): method is_assertion_result (line 189) | def is_assertion_result(self): method is_interrupt_exec (line 192) | def is_interrupt_exec(self, current_node): class ReferenceAddressSerializer (line 201) | class ReferenceAddressSerializer(serializers.Serializer): class FlowParamsSerializer (line 208) | class FlowParamsSerializer(serializers.Serializer): class KnowledgeFlowParamsSerializer (line 234) | class KnowledgeFlowParamsSerializer(serializers.Serializer): class ToolFlowParamsSerializer (line 242) | class ToolFlowParamsSerializer(serializers.Serializer): class INode (line 247) | class INode: method save_context (line 251) | def save_context(self, details, workflow_manage): method get_answer_list (line 254) | def get_answer_list(self) -> List[Answer] | None: method __init__ (line 263) | def __init__(self, node, workflow_params, workflow_manage, up_node_id_... method valid_args (line 287) | def valid_args(self, node_params, flow_params): method get_reference_field (line 299) | def get_reference_field(self, fields: List[str]): method get_field (line 303) | def get_field(obj, fields: List[str]): method get_node_params_serializer_class (line 313) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method get_flow_params_serializer_class (line 316) | def get_flow_params_serializer_class(self) -> Type[serializers.Seriali... method get_write_error_context (line 319) | def get_write_error_context(self, e): method run (line 331) | def run(self) -> NodeResult: method _run (line 341) | def _run(self): method execute (line 345) | def execute(self, **kwargs) -> NodeResult: method get_details (line 348) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/knowledge_loop_workflow_manage.py class KnowledgeLoopWorkflowManage (line 13) | class KnowledgeLoopWorkflowManage(LoopWorkflowManage): method get_params_serializer_class (line 14) | def get_params_serializer_class(self): method get_source_type (line 17) | def get_source_type(self): method get_source_id (line 20) | def get_source_id(self): FILE: apps/application/flow/knowledge_workflow_manage.py class KnowledgeWorkflowManage (line 26) | class KnowledgeWorkflowManage(WorkflowManage): method __init__ (line 28) | def __init__(self, flow: Workflow, method get_params_serializer_class (line 38) | def get_params_serializer_class(self): method get_start_node (line 41) | def get_start_node(self): method run (line 46) | def run(self): method _run (line 50) | def _run(self): method get_node_details (line 60) | def get_node_details(current_node, node, index): method run_chain (line 73) | def run_chain(self, current_node, node_result_future=None): method hand_node_result (line 85) | def hand_node_result(self, current_node, node_result_future): method get_source_type (line 126) | def get_source_type(self): method get_source_id (line 129) | def get_source_id(self): FILE: apps/application/flow/loop_workflow_manage.py class NodeResultFuture (line 26) | class NodeResultFuture: method __init__ (line 27) | def __init__(self, r, e, status=200): method result (line 32) | def result(self): function await_result (line 39) | def await_result(result, timeout=1): class NodeChunkManage (line 47) | class NodeChunkManage: method __init__ (line 49) | def __init__(self, work_flow): method add_node_chunk (line 54) | def add_node_chunk(self, node_chunk): method contains (line 57) | def contains(self, node_chunk): method pop (line 60) | def pop(self): class LoopWorkflowManage (line 85) | class LoopWorkflowManage(WorkflowManage): method __init__ (line 87) | def __init__(self, flow: Workflow, method get_node_cls_by_id (line 104) | def get_node_cls_by_id(self, node_id, up_node_id_list=None, method stream (line 115) | def stream(self): method get_index (line 121) | def get_index(self): method get_start_node (line 124) | def get_start_node(self): method get_reference_field (line 129) | def get_reference_field(self, node_id: str, fields: List[str]): method get_workflow_content (line 148) | def get_workflow_content(self): method init_fields (line 159) | def init_fields(self): method reset_prompt (line 172) | def reset_prompt(self, prompt: str): method generate_prompt (line 182) | def generate_prompt(self, prompt: str): method get_source_type (line 195) | def get_source_type(self): method get_source_id (line 198) | def get_source_id(self): FILE: apps/application/flow/step_node/__init__.py function get_node (line 62) | def get_node(node_type, workflow_model): FILE: apps/application/flow/step_node/ai_chat_step_node/i_chat_node.py class ChatNodeSerializer (line 18) | class ChatNodeSerializer(serializers.Serializer): class IChatNode (line 53) | class IChatNode(INode): method get_node_params_serializer_class (line 58) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 61) | def _run(self): method execute (line 70) | def execute(self, model_id, system, prompt, dialogue_number, history_c... FILE: apps/application/flow/step_node/ai_chat_step_node/impl/base_chat_node.py function _write_context (line 31) | def _write_context(node_variable: Dict, workflow_variable: Dict, node: I... function write_context_stream (line 46) | def write_context_stream(node_variable: Dict, workflow_variable: Dict, n... function write_context (line 94) | def write_context(node_variable: Dict, workflow_variable: Dict, node: IN... function get_default_model_params_setting (line 119) | def get_default_model_params_setting(model_id): function get_node_message (line 127) | def get_node_message(chat_record, runtime_node_id): function get_workflow_message (line 134) | def get_workflow_message(chat_record): function get_message (line 138) | def get_message(chat_record, dialogue_type, runtime_node_id): class BaseChatNode (line 143) | class BaseChatNode(IChatNode): method save_context (line 144) | def save_context(self, details, workflow_manage): method execute (line 152) | def execute(self, model_id, system, prompt, dialogue_number, history_c... method _handle_mcp_request (line 237) | def _handle_mcp_request(self, mcp_source, mcp_servers, mcp_tool_id, mc... method handle_variables (line 346) | def handle_variables(self, tool_params): method get_reference_content (line 357) | def get_reference_content(self, fields: List[str]): method get_history_message (line 363) | def get_history_message(history_chat_record, dialogue_number, dialogue... method generate_prompt_question (line 374) | def generate_prompt_question(self, prompt): method generate_message_list (line 377) | def generate_message_list(self, system: str, prompt: str, history_mess... method reset_message_list (line 385) | def reset_message_list(message_list: List[BaseMessage], answer_text): method get_details (line 393) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/application_node/i_application_node.py class ApplicationNodeSerializer (line 14) | class ApplicationNodeSerializer(serializers.Serializer): class IApplicationNode (line 30) | class IApplicationNode(INode): method get_node_params_serializer_class (line 34) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 37) | def _run(self): method execute (line 100) | def execute(self, application_id, message, chat_id, chat_record_id, st... FILE: apps/application/flow/step_node/application_node/impl/base_application_node.py function string_to_uuid (line 14) | def string_to_uuid(input_str): function _is_interrupt_exec (line 18) | def _is_interrupt_exec(node, node_variable: Dict, workflow_variable: Dict): function _write_context (line 22) | def _write_context(node_variable: Dict, workflow_variable: Dict, node: I... function write_context_stream (line 39) | def write_context_stream(node_variable: Dict, workflow_variable: Dict, n... function write_context (line 105) | def write_context(node_variable: Dict, workflow_variable: Dict, node: IN... function reset_application_node_dict (line 125) | def reset_application_node_dict(application_node_dict, runtime_node_id, ... class BaseApplicationNode (line 147) | class BaseApplicationNode(IApplicationNode): method get_answer_list (line 148) | def get_answer_list(self) -> List[Answer] | None: method save_context (line 165) | def save_context(self, details, workflow_manage): method get_chat_asker (line 175) | def get_chat_asker(self, kwargs): method execute (line 183) | def execute(self, application_id, message, chat_id, chat_record_id, st... method get_details (line 255) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/condition_node/i_condition_node.py class ConditionSerializer (line 18) | class ConditionSerializer(serializers.Serializer): class ConditionBranchSerializer (line 24) | class ConditionBranchSerializer(serializers.Serializer): class ConditionNodeParamsSerializer (line 31) | class ConditionNodeParamsSerializer(serializers.Serializer): class IConditionNode (line 35) | class IConditionNode(INode): method get_node_params_serializer_class (line 36) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... FILE: apps/application/flow/step_node/condition_node/impl/base_condition_node.py class BaseConditionNode (line 16) | class BaseConditionNode(IConditionNode): method save_context (line 17) | def save_context(self, details, workflow_manage): method execute (line 22) | def execute(self, **kwargs) -> NodeResult: method _execute (line 28) | def _execute(self, branch_list: List): method branch_assertion (line 33) | def branch_assertion(self, branch): method assertion (line 39) | def assertion(self, field_list: List[str], compare: str, value): method get_details (line 53) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/data_source_local_node/i_data_source_local_node.py class DataSourceLocalNodeParamsSerializer (line 19) | class DataSourceLocalNodeParamsSerializer(serializers.Serializer): class IDataSourceLocalNode (line 25) | class IDataSourceLocalNode(INode): method get_form_list (line 30) | def get_form_list(node): method get_node_params_serializer_class (line 33) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 36) | def _run(self): method execute (line 39) | def execute(self, file_type_list, file_size_limit, file_count_limit, *... FILE: apps/application/flow/step_node/data_source_local_node/impl/base_data_source_local_node.py class BaseDataSourceLocalNodeForm (line 15) | class BaseDataSourceLocalNodeForm(BaseForm): class BaseDataSourceLocalNode (line 19) | class BaseDataSourceLocalNode(IDataSourceLocalNode): method save_context (line 20) | def save_context(self, details, workflow_manage): method get_form_list (line 24) | def get_form_list(node): method execute (line 37) | def execute(self, file_type_list, file_size_limit, file_count_limit, *... method get_details (line 41) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/data_source_web_node/i_data_source_web_node.py class IDataSourceWebNode (line 15) | class IDataSourceWebNode(INode): method get_form_list (line 21) | def get_form_list(node): method _run (line 24) | def _run(self): method execute (line 27) | def execute(self, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/data_source_web_node/impl/base_data_source_web_node.py class BaseDataSourceWebNodeForm (line 21) | class BaseDataSourceWebNodeForm(BaseForm): class InterruptedTaskException (line 28) | class InterruptedTaskException(Exception): method __init__ (line 29) | def __init__(self, *args, **kwargs): # real signature unknown function get_collect_handler (line 33) | def get_collect_handler(workflow_manage): class BaseDataSourceWebNode (line 54) | class BaseDataSourceWebNode(IDataSourceWebNode): method save_context (line 55) | def save_context(self, details, workflow_manage): method get_form_list (line 59) | def get_form_list(node): method execute (line 62) | def execute(self, **kwargs) -> NodeResult: method get_details (line 86) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/direct_reply_node/i_reply_node.py class ReplyNodeParamsSerializer (line 20) | class ReplyNodeParamsSerializer(serializers.Serializer): method is_valid (line 28) | def is_valid(self, *, raise_exception=False): class IReplyNode (line 40) | class IReplyNode(INode): method get_node_params_serializer_class (line 45) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 48) | def _run(self): method execute (line 57) | def execute(self, reply_type, stream, fields=None, content=None, **kwa... FILE: apps/application/flow/step_node/direct_reply_node/impl/base_reply_node.py class BaseReplyNode (line 15) | class BaseReplyNode(IReplyNode): method save_context (line 16) | def save_context(self, details, workflow_manage): method execute (line 22) | def execute(self, reply_type, stream, fields=None, content=None, **kwa... method generate_reply_content (line 29) | def generate_reply_content(self, prompt): method get_reference_content (line 32) | def get_reference_content(self, fields: List[str]): method get_details (line 37) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/document_extract_node/i_document_extract_node.py class DocumentExtractNodeSerializer (line 12) | class DocumentExtractNodeSerializer(serializers.Serializer): class IDocumentExtractNode (line 16) | class IDocumentExtractNode(INode): method get_node_params_serializer_class (line 21) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 24) | def _run(self): method execute (line 29) | def execute(self, document, chat_id=None, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py class BaseDocumentExtractNode (line 16) | class BaseDocumentExtractNode(IDocumentExtractNode): method save_context (line 17) | def save_context(self, details, workflow_manage): method execute (line 21) | def execute(self, document, chat_id=None, **kwargs): method get_details (line 77) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/document_split_node/i_document_split_node.py class DocumentSplitNodeSerializer (line 12) | class DocumentSplitNodeSerializer(serializers.Serializer): class IDocumentSplitNode (line 72) | class IDocumentSplitNode(INode): method get_node_params_serializer_class (line 79) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 82) | def _run(self): method execute (line 85) | def execute(self, document_list, knowledge_id, split_strategy, paragra... FILE: apps/application/flow/step_node/document_split_node/impl/base_document_split_node.py function bytes_to_uploaded_file (line 14) | def bytes_to_uploaded_file(file_bytes, file_name="file.txt"): class BaseDocumentSplitNode (line 39) | class BaseDocumentSplitNode(IDocumentSplitNode): method save_context (line 40) | def save_context(self, details, workflow_manage): method get_reference_content (line 44) | def get_reference_content(self, fields: List[str]): method execute (line 47) | def execute(self, document_list, knowledge_id, split_strategy, paragra... method _save_image (line 100) | def _save_image(self, image_list): method _process_split_result (line 103) | def _process_split_result( method _generate_problem_list (line 132) | def _generate_problem_list( method get_details (line 164) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/form_node/i_form_node.py class FormNodeParamsSerializer (line 19) | class FormNodeParamsSerializer(serializers.Serializer): class IFormNode (line 25) | class IFormNode(INode): method get_node_params_serializer_class (line 30) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 33) | def _run(self): method execute (line 36) | def execute(self, form_field_list, form_content_format, form_data, **k... FILE: apps/application/flow/step_node/form_node/impl/base_form_node.py function get_default_option (line 25) | def get_default_option(option_list, _type, value_field): function write_context (line 43) | def write_context(step_variable: Dict, global_variable: Dict, node, work... function generate_prompt (line 54) | def generate_prompt(workflow_manage, _value): class BaseFormNode (line 61) | class BaseFormNode(IFormNode): method save_context (line 62) | def save_context(self, details, workflow_manage): method reset_field (line 78) | def reset_field(self, field): method execute (line 109) | def execute(self, form_field_list, form_content_format, form_data, **k... method get_answer_list (line 133) | def get_answer_list(self) -> List[Answer] | None: method get_details (line 151) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/image_generate_step_node/i_image_generate_node.py class ImageGenerateNodeSerializer (line 12) | class ImageGenerateNodeSerializer(serializers.Serializer): class IImageGenerateNode (line 33) | class IImageGenerateNode(INode): method get_node_params_serializer_class (line 38) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 41) | def _run(self): method execute (line 50) | def execute(self, model_id, prompt, negative_prompt, dialogue_number, ... FILE: apps/application/flow/step_node/image_generate_step_node/impl/base_image_generate_node.py class BaseImageGenerateNode (line 17) | class BaseImageGenerateNode(IImageGenerateNode): method save_context (line 18) | def save_context(self, details, workflow_manage): method execute (line 25) | def execute(self, model_id, prompt, negative_prompt, dialogue_number, ... method generate_history_ai_message (line 66) | def generate_history_ai_message(self, chat_record): method get_history_message (line 77) | def get_history_message(self, history_chat_record, dialogue_number): method generate_history_human_message (line 86) | def generate_history_human_message(self, chat_record): method generate_prompt_question (line 96) | def generate_prompt_question(self, prompt): method generate_message_list (line 99) | def generate_message_list(self, question: str, history_message): method upload_file (line 105) | def upload_file(self, file): method upload_knowledge_file (line 111) | def upload_knowledge_file(self, file): method upload_application_file (line 125) | def upload_application_file(self, file): method reset_message_list (line 142) | def reset_message_list(message_list: List[BaseMessage], answer_text): method get_details (line 150) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/image_to_video_step_node/i_image_to_video_node.py class ImageToVideoNodeSerializer (line 12) | class ImageToVideoNodeSerializer(serializers.Serializer): class IImageToVideoNode (line 36) | class IImageToVideoNode(INode): method get_node_params_serializer_class (line 41) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 44) | def _run(self): method execute (line 68) | def execute(self, model_id, prompt, negative_prompt, dialogue_number, ... FILE: apps/application/flow/step_node/image_to_video_step_node/impl/base_image_to_video_node.py class BaseImageToVideoNode (line 20) | class BaseImageToVideoNode(IImageToVideoNode): method save_context (line 21) | def save_context(self, details, workflow_manage): method execute (line 28) | def execute(self, model_id, prompt, negative_prompt, dialogue_number, ... method get_file_base64 (line 65) | def get_file_base64(self, image_url): method upload_file (line 82) | def upload_file(self, file): method upload_knowledge_file (line 88) | def upload_knowledge_file(self, file): method upload_application_file (line 102) | def upload_application_file(self, file): method generate_history_ai_message (line 118) | def generate_history_ai_message(self, chat_record): method get_history_message (line 129) | def get_history_message(self, history_chat_record, dialogue_number): method generate_history_human_message (line 138) | def generate_history_human_message(self, chat_record): method generate_prompt_question (line 148) | def generate_prompt_question(self, prompt): method generate_message_list (line 151) | def generate_message_list(self, question: str, history_message): method reset_message_list (line 158) | def reset_message_list(message_list: List[BaseMessage], answer_text): method get_details (line 166) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/image_understand_step_node/i_image_understand_node.py class ImageUnderstandNodeSerializer (line 13) | class ImageUnderstandNodeSerializer(serializers.Serializer): class IImageUnderstandNode (line 32) | class IImageUnderstandNode(INode): method get_node_params_serializer_class (line 37) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 40) | def _run(self): method execute (line 51) | def execute(self, model_id, system, prompt, dialogue_number, dialogue_... FILE: apps/application/flow/step_node/image_understand_step_node/impl/base_image_understand_node.py function _write_context (line 17) | def _write_context(node_variable: Dict, workflow_variable: Dict, node: I... function write_context_stream (line 31) | def write_context_stream(node_variable: Dict, workflow_variable: Dict, n... function write_context (line 54) | def write_context(node_variable: Dict, workflow_variable: Dict, node: IN... function file_id_to_base64 (line 67) | def file_id_to_base64(file_id: str): class BaseImageUnderstandNode (line 74) | class BaseImageUnderstandNode(IImageUnderstandNode): method save_context (line 75) | def save_context(self, details, workflow_manage): method execute (line 82) | def execute(self, model_id, system, prompt, dialogue_number, dialogue_... method generate_context_image (line 113) | def generate_context_image(self, image): method get_history_message_for_details (line 119) | def get_history_message_for_details(self, history_chat_record, dialogu... method generate_history_ai_message (line 128) | def generate_history_ai_message(self, chat_record): method generate_history_human_message_for_details (line 136) | def generate_history_human_message_for_details(self, chat_record): method get_history_message (line 157) | def get_history_message(self, history_chat_record, dialogue_number): method generate_history_human_message (line 166) | def generate_history_human_message(self, chat_record): method generate_prompt_question (line 192) | def generate_prompt_question(self, prompt): method _process_images (line 195) | def _process_images(self, image): method generate_message_list (line 217) | def generate_message_list(self, image_model, system: str, prompt: str,... method reset_message_list (line 239) | def reset_message_list(message_list: List[BaseMessage], answer_text): method get_details (line 247) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/intent_node/i_intent_node.py class IntentBranchSerializer (line 12) | class IntentBranchSerializer(serializers.Serializer): class IntentNodeSerializer (line 18) | class IntentNodeSerializer(serializers.Serializer): class IIntentNode (line 28) | class IIntentNode(INode): method save_context (line 33) | def save_context(self, details, workflow_manage): method get_node_params_serializer_class (line 36) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 39) | def _run(self): method execute (line 54) | def execute(self, model_id, dialogue_number, history_chat_record, user... FILE: apps/application/flow/step_node/intent_node/impl/base_intent_node.py function get_default_model_params_setting (line 18) | def get_default_model_params_setting(model_id): function _write_context (line 26) | def _write_context(node_variable: Dict, workflow_variable: Dict, node: I... function write_context (line 42) | def write_context(node_variable: Dict, workflow_variable: Dict, node: IN... class BaseIntentNode (line 48) | class BaseIntentNode(IIntentNode): method save_context (line 50) | def save_context(self, details, workflow_manage): method execute (line 55) | def execute(self, model_id, dialogue_number, history_chat_record, user... method get_history_message (line 115) | def get_history_message(history_chat_record, dialogue_number): method build_system_prompt (line 128) | def build_system_prompt(self) -> str: method build_classification_prompt (line 132) | def build_classification_prompt(self, user_input: str, branch: List[Di... method generate_message_list (line 159) | def generate_message_list(self, system: str, prompt: str, history_mess... method parse_classification_result (line 167) | def parse_classification_result(self, result: str, branch: List[Dict])... method parse_result_reason (line 205) | def parse_result_reason(self, result: str): method find_other_branch (line 226) | def find_other_branch(self, branch: List[Dict]) -> Dict[str, Any] | None: method get_details (line 233) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/knowledge_write_node/i_knowledge_write_node.py class KnowledgeWriteNodeParamSerializer (line 18) | class KnowledgeWriteNodeParamSerializer(serializers.Serializer): class IKnowledgeWriteNode (line 23) | class IKnowledgeWriteNode(INode): method save_context (line 25) | def save_context(self, details, workflow_manage): method get_node_params_serializer_class (line 28) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 31) | def _run(self): method execute (line 39) | def execute(self, documents, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/knowledge_write_node/impl/base_knowledge_write_node.py class ParagraphInstanceSerializer (line 27) | class ParagraphInstanceSerializer(serializers.Serializer): class TagInstanceSerializer (line 37) | class TagInstanceSerializer(serializers.Serializer): class KnowledgeWriteParamSerializer (line 42) | class KnowledgeWriteParamSerializer(serializers.Serializer): function convert_uuid_to_str (line 51) | def convert_uuid_to_str(obj): function link_file (line 62) | def link_file(source_file_id, document_id): function get_paragraph_problem_model (line 82) | def get_paragraph_problem_model(knowledge_id: str, document_id: str, ins... function get_paragraph_model (line 103) | def get_paragraph_model(document_model, paragraph_list: List): function get_document_paragraph_model (line 125) | def get_document_paragraph_model(knowledge_id: str, instance: Dict): function save_knowledge_tags (line 150) | def save_knowledge_tags(knowledge_id: str, tags: List[Dict[str, Any]]): function batch_add_document_tag (line 180) | def batch_add_document_tag(document_tag_map: Dict[str, List[str]]): class BaseKnowledgeWriteNode (line 211) | class BaseKnowledgeWriteNode(IKnowledgeWriteNode): method save_context (line 213) | def save_context(self, details, workflow_manage): method save (line 216) | def save(self, document_list): method post_embedding (line 297) | def post_embedding(document_model_list, knowledge_id, workspace_id): method execute (line 305) | def execute(self, documents, **kwargs) -> NodeResult: method get_details (line 320) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/loop_break_node/i_loop_break_node.py class ConditionSerializer (line 19) | class ConditionSerializer(serializers.Serializer): class LoopBreakNodeSerializer (line 25) | class LoopBreakNodeSerializer(serializers.Serializer): class ILoopBreakNode (line 30) | class ILoopBreakNode(INode): method get_node_params_serializer_class (line 34) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 37) | def _run(self): method execute (line 40) | def execute(self, condition, condition_list, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/loop_break_node/impl/base_loop_break_node.py function _write_context (line 17) | def _write_context(step_variable: Dict, global_variable: Dict, node, wor... class BaseLoopBreakNode (line 24) | class BaseLoopBreakNode(ILoopBreakNode): method save_context (line 25) | def save_context(self, details, workflow_manage): method execute (line 28) | def execute(self, condition, condition_list, **kwargs) -> NodeResult: method assertion (line 39) | def assertion(self, field_list: List[str], compare: str, value): method get_details (line 53) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/loop_continue_node/i_loop_continue_node.py class ConditionSerializer (line 18) | class ConditionSerializer(serializers.Serializer): class LoopContinueNodeSerializer (line 24) | class LoopContinueNodeSerializer(serializers.Serializer): class ILoopContinueNode (line 29) | class ILoopContinueNode(INode): method get_node_params_serializer_class (line 33) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 36) | def _run(self): method execute (line 39) | def execute(self, condition, condition_list, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/loop_continue_node/impl/base_loop_continue_node.py class BaseLoopContinueNode (line 16) | class BaseLoopContinueNode(ILoopContinueNode): method save_context (line 17) | def save_context(self, details, workflow_manage): method execute (line 20) | def execute(self, condition, condition_list, **kwargs) -> NodeResult: method assertion (line 29) | def assertion(self, field_list: List[str], compare: str, value): method get_details (line 43) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/loop_node/i_loop_node.py class ILoopNodeSerializer (line 19) | class ILoopNodeSerializer(serializers.Serializer): method is_valid (line 27) | def is_valid(self, *, raise_exception=False): class ILoopNode (line 42) | class ILoopNode(INode): method get_node_params_serializer_class (line 46) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 49) | def _run(self): method execute (line 57) | def execute(self, loop_type, array, number, loop_body, **kwargs) -> No... FILE: apps/application/flow/step_node/loop_node/impl/base_loop_node.py function _is_interrupt_exec (line 25) | def _is_interrupt_exec(node, node_variable: Dict, workflow_variable: Dict): function _write_context (line 29) | def _write_context(node_variable: Dict, workflow_variable: Dict, node: I... function write_context_stream (line 38) | def write_context_stream(node_variable: Dict, workflow_variable: Dict, n... function write_context (line 62) | def write_context(node_variable: Dict, workflow_variable: Dict, node: IN... function get_answer_list (line 85) | def get_answer_list(instance, child_node_node_dict, runtime_node_id): function insert_or_replace (line 95) | def insert_or_replace(arr, index, value): function generate_loop_number (line 105) | def generate_loop_number(number: int): function generate_loop_array (line 112) | def generate_loop_array(array): function generate_while_loop (line 119) | def generate_while_loop(current_index: int): function loop (line 126) | def loop(workflow_manage_new_instance, node: INode, generate_loop): function get_tokens (line 215) | def get_tokens(loop_node_data): function get_write_context (line 226) | def get_write_context(loop_type, array, number, loop_body): class LoopWorkFlowPostHandler (line 237) | class LoopWorkFlowPostHandler(WorkFlowPostHandler): method handler (line 238) | def handler(self, workflow): class BaseLoopNode (line 242) | class BaseLoopNode(ILoopNode): method save_context (line 243) | def save_context(self, details, workflow_manage): method get_answer_list (line 256) | def get_answer_list(self) -> List[Answer] | None: method get_loop_context (line 265) | def get_loop_context(self): method execute (line 268) | def execute(self, loop_type, array, number, loop_body, **kwargs) -> No... method get_loop_context_data (line 302) | def get_loop_context_data(self): method get_details (line 307) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/loop_start_node/i_loop_start_node.py class ILoopStarNode (line 13) | class ILoopStarNode(INode): method _run (line 17) | def _run(self): method execute (line 20) | def execute(self, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/loop_start_node/impl/base_start_node.py class BaseLoopStartStepNode (line 18) | class BaseLoopStartStepNode(ILoopStarNode): method save_context (line 19) | def save_context(self, details, workflow_manage): method get_node_params_serializer_class (line 24) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method execute (line 27) | def execute(self, **kwargs) -> NodeResult: method get_details (line 40) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/mcp_node/i_mcp_node.py class McpNodeSerializer (line 12) | class McpNodeSerializer(serializers.Serializer): class IMcpNode (line 21) | class IMcpNode(INode): method get_node_params_serializer_class (line 26) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 29) | def _run(self): method execute (line 32) | def execute(self, mcp_servers, mcp_server, mcp_tool, mcp_tool_id, mcp_... FILE: apps/application/flow/step_node/mcp_node/impl/base_mcp_node.py class BaseMcpNode (line 14) | class BaseMcpNode(IMcpNode): method save_context (line 15) | def save_context(self, details, workflow_manage): method execute (line 21) | def execute(self, mcp_servers, mcp_server, mcp_tool, mcp_tool_id, mcp_... method handle_variables (line 49) | def handle_variables(self, tool_params): method get_reference_content (line 60) | def get_reference_content(self, fields: List[str]): method get_details (line 65) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/parameter_extraction_node/i_parameter_extraction_node.py class VariableSplittingNodeParamsSerializer (line 12) | class VariableSplittingNodeParamsSerializer(serializers.Serializer): class IParameterExtractionNode (line 25) | class IParameterExtractionNode(INode): method get_node_params_serializer_class (line 30) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 33) | def _run(self): method execute (line 41) | def execute(self, input_variable, variable_list, model_params_setting,... FILE: apps/application/flow/step_node/parameter_extraction_node/impl/base_parameter_extraction_node.py function get_default_model_params_setting (line 40) | def get_default_model_params_setting(model_id): function generate_properties (line 48) | def generate_properties(variable_list): function generate_example (line 54) | def generate_example(variable_list): function generate_content (line 58) | def generate_content(input_variable, variable_list): function json_loads (line 65) | def json_loads(response, expected_fields): class BaseParameterExtractionNode (line 85) | class BaseParameterExtractionNode(IParameterExtractionNode): method save_context (line 87) | def save_context(self, details, workflow_manage): method execute (line 94) | def execute(self, input_variable, variable_list, model_params_setting,... method get_details (line 107) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/question_node/i_question_node.py class QuestionNodeSerializer (line 18) | class QuestionNodeSerializer(serializers.Serializer): class IQuestionNode (line 33) | class IQuestionNode(INode): method get_node_params_serializer_class (line 38) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 41) | def _run(self): method execute (line 44) | def execute(self, model_id, system, prompt, dialogue_number, history_c... FILE: apps/application/flow/step_node/question_node/impl/base_question_node.py function _write_context (line 23) | def _write_context(node_variable: Dict, workflow_variable: Dict, node: I... function write_context_stream (line 37) | def write_context_stream(node_variable: Dict, workflow_variable: Dict, n... function write_context (line 53) | def write_context(node_variable: Dict, workflow_variable: Dict, node: IN... function get_default_model_params_setting (line 66) | def get_default_model_params_setting(model_id): class BaseQuestionNode (line 74) | class BaseQuestionNode(IQuestionNode): method save_context (line 75) | def save_context(self, details, workflow_manage): method execute (line 85) | def execute(self, model_id, system, prompt, dialogue_number, history_c... method get_history_message (line 113) | def get_history_message(history_chat_record, dialogue_number): method generate_prompt_question (line 124) | def generate_prompt_question(self, prompt): method generate_message_list (line 127) | def generate_message_list(self, system: str, prompt: str, history_mess... method reset_message_list (line 135) | def reset_message_list(message_list: List[BaseMessage], answer_text): method get_details (line 143) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/reranker_node/i_reranker_node.py class RerankerSettingSerializer (line 19) | class RerankerSettingSerializer(serializers.Serializer): class RerankerStepNodeSerializer (line 30) | class RerankerStepNodeSerializer(serializers.Serializer): method is_valid (line 39) | def is_valid(self, *, raise_exception=False): class IRerankerNode (line 43) | class IRerankerNode(INode): method get_node_params_serializer_class (line 47) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 50) | def _run(self): method execute (line 62) | def execute(self, question, reranker_setting, reranker_list, reranker_... FILE: apps/application/flow/step_node/reranker_node/impl/base_reranker_node.py function merge_reranker_list (line 18) | def merge_reranker_list(reranker_list, result=None): function filter_result (line 35) | def filter_result(document_list: List[Document], max_paragraph_char_numb... function reset_result_list (line 49) | def reset_result_list(result_list: List[Document], document_list: List[D... function get_none_result (line 64) | def get_none_result(question): function reset_metadata (line 70) | def reset_metadata(metadata): class BaseRerankerNode (line 78) | class BaseRerankerNode(IRerankerNode): method save_context (line 79) | def save_context(self, details, workflow_manage): method execute (line 87) | def execute(self, question, reranker_setting, reranker_list, reranker_... method get_details (line 112) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/search_document_node/i_search_document_node.py class SearchDocumentStepNodeSerializer (line 11) | class SearchDocumentStepNodeSerializer(serializers.Serializer): method is_valid (line 40) | def is_valid(self, *, raise_exception=False): class ISearchDocumentStepNode (line 44) | class ISearchDocumentStepNode(INode): method get_node_params_serializer_class (line 48) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 51) | def _run(self): method execute (line 54) | def execute(self, knowledge_id_list: List, search_mode: str, search_sc... FILE: apps/application/flow/step_node/search_document_node/impl/base_search_document_node.py class BaseSearchDocumentNode (line 16) | class BaseSearchDocumentNode(ISearchDocumentStepNode): method save_context (line 17) | def save_context(self, details, workflow_manage): method get_reference_content (line 26) | def get_reference_content(self, fields: List[str]): method execute (line 29) | def execute(self, knowledge_id_list: List, search_mode: str, search_sc... method handle_auto_tags (line 93) | def handle_auto_tags(self, document_id_list: list, question_reference:... method handle_custom_tags (line 117) | def handle_custom_tags(self, document_id_list: List, search_condition_... method get_details (line 198) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/search_knowledge_node/i_search_knowledge_node.py class DatasetSettingSerializer (line 21) | class DatasetSettingSerializer(serializers.Serializer): class SearchDatasetStepNodeSerializer (line 36) | class SearchDatasetStepNodeSerializer(serializers.Serializer): method is_valid (line 58) | def is_valid(self, *, raise_exception=False): function get_paragraph_list (line 62) | def get_paragraph_list(chat_record, node_id): class ISearchKnowledgeStepNode (line 69) | class ISearchKnowledgeStepNode(INode): method get_node_params_serializer_class (line 73) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 76) | def _run(self): method execute (line 91) | def execute(self, dataset_id_list, dataset_setting, question, show_kno... FILE: apps/application/flow/step_node/search_knowledge_node/impl/base_search_knowledge_node.py function get_embedding_id (line 28) | def get_embedding_id(dataset_id_list): function get_none_result (line 37) | def get_none_result(question): function reset_title (line 43) | def reset_title(title): function reset_meta (line 50) | def reset_meta(meta): class BaseSearchKnowledgeNode (line 56) | class BaseSearchKnowledgeNode(ISearchKnowledgeStepNode): method save_context (line 57) | def save_context(self, details, workflow_manage): method get_reference_content (line 73) | def get_reference_content(self, fields: List[str]): method execute (line 76) | def execute(self, knowledge_id_list, knowledge_setting, question, show... method reset_paragraph (line 139) | def reset_paragraph(paragraph: Dict, embedding_list: List): method list_paragraph (line 158) | def list_paragraph(embedding_list: List, vector): method get_details (line 175) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/speech_to_text_step_node/i_speech_to_text_node.py class SpeechToTextNodeSerializer (line 12) | class SpeechToTextNodeSerializer(serializers.Serializer): class ISpeechToTextNode (line 24) | class ISpeechToTextNode(INode): method get_node_params_serializer_class (line 29) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 32) | def _run(self): method execute (line 42) | def execute(self, stt_model_id, FILE: apps/application/flow/step_node/speech_to_text_step_node/impl/base_speech_to_text_node.py class BaseSpeechToTextNode (line 15) | class BaseSpeechToTextNode(ISpeechToTextNode): method save_context (line 17) | def save_context(self, details, workflow_manage): method execute (line 24) | def execute(self, stt_model_id, audio, model_params_setting=None, **kw... method get_details (line 62) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/start_node/i_start_node.py class IStarNode (line 13) | class IStarNode(INode): method _run (line 17) | def _run(self): method execute (line 20) | def execute(self, question, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/start_node/impl/base_start_node.py function get_default_global_variable (line 19) | def get_default_global_variable(input_field_list: List): function get_global_variable (line 27) | def get_global_variable(node): class BaseStartStepNode (line 42) | class BaseStartStepNode(IStarNode): method save_context (line 43) | def save_context(self, details, workflow_manage): method get_node_params_serializer_class (line 64) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method execute (line 67) | def execute(self, question, **kwargs) -> NodeResult: method get_details (line 87) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/text_to_speech_step_node/i_text_to_speech_node.py class TextToSpeechNodeSerializer (line 13) | class TextToSpeechNodeSerializer(serializers.Serializer): class ITextToSpeechNode (line 24) | class ITextToSpeechNode(INode): method get_node_params_serializer_class (line 29) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 32) | def _run(self): method execute (line 37) | def execute(self, tts_model_id, FILE: apps/application/flow/step_node/text_to_speech_step_node/impl/base_text_to_speech_node.py function bytes_to_uploaded_file (line 17) | def bytes_to_uploaded_file(file_bytes, file_name="generated_audio.mp3"): class BaseTextToSpeechNode (line 39) | class BaseTextToSpeechNode(ITextToSpeechNode): method save_context (line 40) | def save_context(self, details, workflow_manage): method execute (line 47) | def execute(self, tts_model_id, method upload_file (line 101) | def upload_file(self, file): method upload_knowledge_file (line 107) | def upload_knowledge_file(self, file): method upload_application_file (line 121) | def upload_application_file(self, file): method get_details (line 137) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/text_to_video_step_node/i_text_to_video_node.py class TextToVideoNodeSerializer (line 12) | class TextToVideoNodeSerializer(serializers.Serializer): class ITextToVideoNode (line 33) | class ITextToVideoNode(INode): method get_node_params_serializer_class (line 38) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 41) | def _run(self): method execute (line 50) | def execute(self, model_id, prompt, negative_prompt, dialogue_number, ... FILE: apps/application/flow/step_node/text_to_video_step_node/impl/base_text_to_video_node.py class BaseTextToVideoNode (line 18) | class BaseTextToVideoNode(ITextToVideoNode): method save_context (line 19) | def save_context(self, details, workflow_manage): method execute (line 26) | def execute(self, model_id, prompt, negative_prompt, dialogue_number, ... method upload_file (line 56) | def upload_file(self, file): method upload_knowledge_file (line 62) | def upload_knowledge_file(self, file): method upload_application_file (line 76) | def upload_application_file(self, file): method generate_history_ai_message (line 92) | def generate_history_ai_message(self, chat_record): method get_history_message (line 103) | def get_history_message(self, history_chat_record, dialogue_number): method generate_history_human_message (line 112) | def generate_history_human_message(self, chat_record): method generate_prompt_question (line 122) | def generate_prompt_question(self, prompt): method generate_message_list (line 125) | def generate_message_list(self, question: str, history_message): method reset_message_list (line 132) | def reset_message_list(message_list: List[BaseMessage], answer_text): method get_details (line 140) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/tool_lib_node/i_tool_lib_node.py class InputField (line 22) | class InputField(serializers.Serializer): class FunctionLibNodeParamsSerializer (line 27) | class FunctionLibNodeParamsSerializer(serializers.Serializer): method is_valid (line 33) | def is_valid(self, *, raise_exception=False): class IToolLibNode (line 42) | class IToolLibNode(INode): method get_node_params_serializer_class (line 47) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 50) | def _run(self): method execute (line 53) | def execute(self, tool_lib_id, input_field_list, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/tool_lib_node/impl/base_tool_lib_node.py function write_context (line 38) | def write_context(step_variable: Dict, global_variable: Dict, node, work... function get_field_value (line 49) | def get_field_value(debug_field_list, name, is_required): function valid_reference_value (line 58) | def valid_reference_value(_type, value, name): function convert_value (line 87) | def convert_value(name: str, value, _type, is_required, source, node): function valid_function (line 133) | def valid_function(tool_lib, workspace_id): function _filter_file_bytes (line 145) | def _filter_file_bytes(data): function bytes_to_uploaded_file (line 155) | def bytes_to_uploaded_file(file_bytes, file_name="unknown"): function _get_result_detail (line 177) | def _get_result_detail(result): class BaseToolLibNodeNode (line 189) | class BaseToolLibNodeNode(IToolLibNode): method save_context (line 190) | def save_context(self, details, workflow_manage): method execute (line 196) | def execute(self, tool_lib_id, input_field_list, **kwargs) -> NodeResult: method tool_exec_record (line 250) | def tool_exec_record(self, tool_lib, all_params): method upload_knowledge_file (line 292) | def upload_knowledge_file(self, file): method get_details (line 307) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/tool_node/i_tool_node.py class InputField (line 23) | class InputField(serializers.Serializer): method is_valid (line 36) | def is_valid(self, *, raise_exception=False): class FunctionNodeParamsSerializer (line 44) | class FunctionNodeParamsSerializer(serializers.Serializer): method is_valid (line 50) | def is_valid(self, *, raise_exception=False): class IToolNode (line 54) | class IToolNode(INode): method get_node_params_serializer_class (line 59) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 62) | def _run(self): method execute (line 65) | def execute(self, input_field_list, code, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/tool_node/impl/base_tool_node.py function write_context (line 23) | def write_context(step_variable: Dict, global_variable: Dict, node, work... function valid_reference_value (line 34) | def valid_reference_value(_type, value, name): function convert_value (line 63) | def convert_value(name: str, value, _type, is_required, source, node): class BaseToolNodeNode (line 109) | class BaseToolNodeNode(IToolNode): method save_context (line 110) | def save_context(self, details, workflow_manage): method execute (line 116) | def execute(self, input_field_list, code, **kwargs) -> NodeResult: method get_details (line 124) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/tool_start_node/i_tool_start_node.py class IToolStartNode (line 13) | class IToolStartNode(INode): method _run (line 17) | def _run(self): method execute (line 20) | def execute(self, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/tool_start_node/impl/base_tool_start_node.py class BaseToolStartStepNode (line 17) | class BaseToolStartStepNode(IToolStartNode): method save_context (line 18) | def save_context(self, details, workflow_manage): method get_node_params_serializer_class (line 29) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method execute (line 32) | def execute(self, **kwargs) -> NodeResult: method get_details (line 46) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/tool_workflow_lib_node/i_tool_workflow_lib_node.py class InputField (line 22) | class InputField(serializers.Serializer): class FunctionLibNodeParamsSerializer (line 30) | class FunctionLibNodeParamsSerializer(serializers.Serializer): method is_valid (line 36) | def is_valid(self, *, raise_exception=False): class IToolWorkflowLibNode (line 45) | class IToolWorkflowLibNode(INode): method get_node_params_serializer_class (line 50) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 53) | def _run(self): method execute (line 56) | def execute(self, tool_lib_id, input_field_list, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/tool_workflow_lib_node/impl/base_tool_workflow_lib_node.py function _write_context (line 27) | def _write_context(node_variable: Dict, workflow_variable: Dict, node: I... function get_answer_list (line 43) | def get_answer_list(instance, child_node_node_dict, runtime_node_id): function write_context_stream (line 53) | def write_context_stream(node_variable: Dict, workflow_variable: Dict, n... function _is_interrupt_exec (line 127) | def _is_interrupt_exec(node, node_variable: Dict, workflow_variable: Dict): class BaseToolWorkflowLibNodeNode (line 131) | class BaseToolWorkflowLibNodeNode(IToolWorkflowLibNode): method get_parameters (line 132) | def get_parameters(self, input_field_list): method save_context (line 145) | def save_context(self, details, workflow_manage): method to_chat_record (line 154) | def to_chat_record(record): method execute (line 163) | def execute(self, tool_lib_id, input_field_list, **kwargs) -> NodeResult: method get_details (line 202) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/variable_aggregation_node/i_variable_aggregation_node.py class VariableListSerializer (line 12) | class VariableListSerializer(serializers.Serializer): class VariableGroupSerializer (line 17) | class VariableGroupSerializer(serializers.Serializer): class VariableAggregationNodeSerializer (line 24) | class VariableAggregationNodeSerializer(serializers.Serializer): class IVariableAggregation (line 29) | class IVariableAggregation(INode): method get_node_params_serializer_class (line 34) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 37) | def _run(self): method execute (line 40) | def execute(self, strategy, group_list, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/variable_aggregation_node/impl/base_variable_aggregation_node.py function _filter_file_bytes (line 13) | def _filter_file_bytes(data): class BaseVariableAggregationNode (line 23) | class BaseVariableAggregationNode(IVariableAggregation): method save_context (line 25) | def save_context(self, details, workflow_manage): method get_first_non_null (line 33) | def get_first_non_null(self, variable_list): method set_variable_to_json (line 43) | def set_variable_to_json(self, variable_list): method reset_variable (line 49) | def reset_variable(self, variable): method reset_group_list (line 58) | def reset_group_list(self, group_list): method execute (line 66) | def execute(self, strategy, group_list, **kwargs) -> NodeResult: method get_details (line 76) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/variable_assign_node/i_variable_assign_node.py class VariableAssignNodeParamsSerializer (line 12) | class VariableAssignNodeParamsSerializer(serializers.Serializer): class IVariableAssignNode (line 17) | class IVariableAssignNode(INode): method get_node_params_serializer_class (line 22) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 25) | def _run(self): method execute (line 28) | def execute(self, variable_list, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/variable_assign_node/impl/base_variable_assign_node.py class BaseVariableAssignNode (line 9) | class BaseVariableAssignNode(IVariableAssignNode): method save_context (line 10) | def save_context(self, details, workflow_manage): method global_evaluation (line 15) | def global_evaluation(self, variable, value): method loop_evaluation (line 22) | def loop_evaluation(self, variable, value): method chat_evaluation (line 27) | def chat_evaluation(self, variable, value): method out_evaluation (line 34) | def out_evaluation(self, variable, value): method handle (line 41) | def handle(self, variable, evaluation): method execute (line 69) | def execute(self, variable_list, **kwargs) -> NodeResult: method get_reference_content (line 98) | def get_reference_content(self, fields: List[str]): method get_details (line 103) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/variable_splitting_node/i_variable_splitting_node.py class VariableSplittingNodeParamsSerializer (line 12) | class VariableSplittingNodeParamsSerializer(serializers.Serializer): class IVariableSplittingNode (line 20) | class IVariableSplittingNode(INode): method get_node_params_serializer_class (line 25) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 28) | def _run(self): method execute (line 34) | def execute(self, input_variable, variable_list, **kwargs) -> NodeResult: FILE: apps/application/flow/step_node/variable_splitting_node/impl/base_variable_splitting_node.py function smart_jsonpath_search (line 16) | def smart_jsonpath_search(data: dict, path: str): class BaseVariableSplittingNode (line 35) | class BaseVariableSplittingNode(IVariableSplittingNode): method save_context (line 36) | def save_context(self, details, workflow_manage): method execute (line 43) | def execute(self, input_variable, variable_list, **kwargs) -> NodeResult: method get_details (line 54) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/step_node/video_understand_step_node/i_video_understand_node.py class VideoUnderstandNodeSerializer (line 12) | class VideoUnderstandNodeSerializer(serializers.Serializer): class IVideoUnderstandNode (line 31) | class IVideoUnderstandNode(INode): method get_node_params_serializer_class (line 36) | def get_node_params_serializer_class(self) -> Type[serializers.Seriali... method _run (line 39) | def _run(self): method execute (line 51) | def execute(self, model_id, system, prompt, dialogue_number, dialogue_... FILE: apps/application/flow/step_node/video_understand_step_node/impl/base_video_understand_node.py function _write_context (line 16) | def _write_context(node_variable: Dict, workflow_variable: Dict, node: I... function write_context_stream (line 30) | def write_context_stream(node_variable: Dict, workflow_variable: Dict, n... function write_context (line 46) | def write_context(node_variable: Dict, workflow_variable: Dict, node: IN... function file_id_to_base64 (line 59) | def file_id_to_base64(file_id: str, video_model): class BaseVideoUnderstandNode (line 66) | class BaseVideoUnderstandNode(IVideoUnderstandNode): method save_context (line 67) | def save_context(self, details, workflow_manage): method execute (line 74) | def execute(self, model_id, system, prompt, dialogue_number, dialogue_... method generate_context_video (line 105) | def generate_context_video(self, video): method get_history_message_for_details (line 111) | def get_history_message_for_details(self, history_chat_record, dialogu... method generate_history_ai_message (line 120) | def generate_history_ai_message(self, chat_record): method generate_history_human_message_for_details (line 128) | def generate_history_human_message_for_details(self, chat_record): method get_history_message (line 149) | def get_history_message(self, history_chat_record, dialogue_number, vi... method generate_history_human_message (line 158) | def generate_history_human_message(self, chat_record, video_model): method generate_prompt_question (line 182) | def generate_prompt_question(self, prompt): method _process_videos (line 185) | def _process_videos(self, image, video_model): method generate_message_list (line 202) | def generate_message_list(self, video_model, system: str, prompt: str,... method reset_message_list (line 224) | def reset_message_list(message_list: List[BaseMessage], answer_text): method get_details (line 232) | def get_details(self, index: int, **kwargs): FILE: apps/application/flow/tool_loop_workflow_manage.py class ToolLoopWorkflowManage (line 13) | class ToolLoopWorkflowManage(LoopWorkflowManage): method get_params_serializer_class (line 14) | def get_params_serializer_class(self): method get_source_type (line 17) | def get_source_type(self): method get_source_id (line 20) | def get_source_id(self): FILE: apps/application/flow/tool_workflow_manage.py class ToolWorkflowManage (line 23) | class ToolWorkflowManage(WorkflowManage): method __init__ (line 24) | def __init__(self, flow: Workflow, params, work_flow_post_handler: Wor... method get_params_serializer_class (line 32) | def get_params_serializer_class(self): method stream (line 35) | def stream(self): method get_start_node (line 41) | def get_start_node(self): method get_base_node (line 44) | def get_base_node(self): method get_source_type (line 51) | def get_source_type(self): method get_source_id (line 54) | def get_source_id(self): FILE: apps/application/flow/tools.py function _merge_lists_normalize_empty_tool_chunk_ids (line 55) | def _merge_lists_normalize_empty_tool_chunk_ids(left, *others): class Reasoning (line 79) | class Reasoning: method __init__ (line 80) | def __init__(self, reasoning_content_start, reasoning_content_end): method get_end_reasoning_content (line 96) | def get_end_reasoning_content(self): method _normalize_content (line 107) | def _normalize_content(self, content): method get_reasoning_content (line 122) | def get_reasoning_content(self, chunk): function event_content (line 194) | def event_content(chat_id, chat_record_id, response, workflow, function to_stream_response (line 224) | def to_stream_response(chat_id, chat_record_id, response: Iterator[BaseM... function to_response (line 246) | def to_response(chat_id, chat_record_id, response: BaseMessage, workflow... function to_response_simple (line 266) | def to_response_simple(chat_id, chat_record_id, response: BaseMessage, w... function to_stream_response_simple (line 274) | def to_stream_response_simple(stream_event): function generate_tool_message_complete (line 284) | def generate_tool_message_complete(icon, name, input_content, output_con... function get_global_loop (line 310) | def get_global_loop(): function _extract_tool_id (line 329) | def _extract_tool_id(raw_id): function _initialize_skills (line 354) | async def _initialize_skills(mcp_servers, temp_dir): function _yield_mcp_response (line 403) | async def _yield_mcp_response(chat_model, message_list, mcp_servers, mcp... function save_tool_record (line 721) | async def save_tool_record(tool_id, tool_info, tool_result, source_id, s... function mcp_response_generator (line 736) | def mcp_response_generator(chat_model, message_list, mcp_servers, mcp_ou... function anext_async (line 779) | async def anext_async(agen): function get_node_handle_callback (line 808) | def get_node_handle_callback(source_type, source_id): function get_workflow_resource (line 825) | def get_workflow_resource(workflow, node_handle): function get_instance_resource (line 861) | def get_instance_resource(instance, source_type, source_id, instance_fie... function save_workflow_mapping (line 874) | def save_workflow_mapping(workflow, source_type, source_id, other_resour... function get_tool_id_list (line 890) | def get_tool_id_list(workflow): FILE: apps/application/flow/workflow_manage.py class NodeResultFuture (line 33) | class NodeResultFuture: method __init__ (line 34) | def __init__(self, r, e, status=200): method result (line 39) | def result(self): function await_result (line 46) | def await_result(result, timeout=1): class NodeChunkManage (line 54) | class NodeChunkManage: method __init__ (line 56) | def __init__(self, work_flow): method add_node_chunk (line 61) | def add_node_chunk(self, node_chunk): method contains (line 64) | def contains(self, node_chunk): method pop (line 67) | def pop(self): class WorkflowManage (line 92) | class WorkflowManage: method __init__ (line 93) | def __init__(self, flow: Workflow, params, work_flow_post_handler: Wor... method init_fields (line 147) | def init_fields(self): method append_answer (line 178) | def append_answer(self, content): method answer_is_not_empty (line 182) | def answer_is_not_empty(self): method load_node (line 185) | def load_node(self, chat_record, start_node_id, start_node_data): method run (line 226) | def run(self): method run_block (line 233) | def run_block(self, language='zh'): method _cleanup (line 263) | def _cleanup(self): method run_stream (line 295) | def run_stream(self, current_node, node_result_future, language='zh'): method get_body (line 303) | def get_body(self): method is_run (line 306) | def is_run(self, timeout=0.5): method await_result (line 320) | def await_result(self, is_cleanup=True): method run_chain_async (line 351) | def run_chain_async(self, current_node, node_result_future, language='... method run_chain_manage (line 355) | def run_chain_manage(self, current_node, node_result_future, language=... method run_chain (line 378) | def run_chain(self, current_node, node_result_future=None): method hand_node_result (line 391) | def hand_node_result(self, current_node, node_result_future): method append_node (line 407) | def append_node(self, current_node): method hand_event_node_result (line 415) | def hand_event_node_result(self, current_node, node_result_future): method run_node_async (line 523) | def run_node_async(self, node): method run_node_future (line 527) | def run_node_future(self, node): method run_node (line 535) | def run_node(self, node): method is_result (line 539) | def is_result(self, current_node, current_node_result): method get_chat_info (line 543) | def get_chat_info(self): method get_chunk_content (line 546) | def get_chunk_content(self, chunk, is_end=False): method _has_next_node (line 551) | def _has_next_node(self, current_node, node_result: NodeResult | None): method has_next_node (line 564) | def has_next_node(self, node_result: NodeResult | None): method get_runtime_details (line 571) | def get_runtime_details(self, get_details=lambda n, index: n.get_detai... method get_record_answer_list (line 587) | def get_record_answer_list(self): method get_answer_text_list (line 591) | def get_answer_text_list(self): method dependent_node (line 617) | def dependent_node(edge, node): method dependent_node_been_executed (line 633) | def dependent_node_been_executed(self, node_id): method get_next_node_list (line 645) | def get_next_node_list(self, current_node, current_node_result): method get_reference_field (line 705) | def get_reference_field(self, node_id: str, fields: List[str]): method get_workflow_content (line 721) | def get_workflow_content(self): method reset_prompt (line 731) | def reset_prompt(self, prompt: str): method generate_prompt (line 749) | def generate_prompt(self, prompt: str): method get_start_node (line 761) | def get_start_node(self): method get_base_node (line 769) | def get_base_node(self): method get_node_cls_by_id (line 777) | def get_node_cls_by_id(self, node_id, up_node_id_list=None, method get_node_by_id (line 787) | def get_node_by_id(self, node_id): method get_node_reference (line 793) | def get_node_reference(self, reference_address: Dict): method get_params_serializer_class (line 797) | def get_params_serializer_class(self): method get_source_type (line 800) | def get_source_type(self): method get_source_id (line 803) | def get_source_id(self): FILE: apps/application/migrations/0001_initial.py function insert_default_data (line 14) | def insert_default_data(apps, schema_editor): class Migration (line 20) | class Migration(migrations.Migration): FILE: apps/application/migrations/0002_application_simple_mcp.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/application/migrations/0003_application_stt_model_params_setting_and_more.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/application/migrations/0004_application_application_enable_and_more.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/application/migrations/0005_chatrecord_vote_other_content_chatrecord_vote_reason.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/application/migrations/0006_application_file_clean_time.py function insert_default_data (line 6) | def insert_default_data(apps, schema_editor): class Migration (line 12) | class Migration(migrations.Migration): FILE: apps/application/migrations/0007_applicationapikey_expire_time_and_more.py class Migration (line 7) | class Migration(migrations.Migration): FILE: apps/application/migrations/0008_chat_ip_address_chat_source_chatrecord_ip_address_and_more.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/application/migrations/0009_clean_application_knowledge_mapping.py class Migration (line 4) | class Migration(migrations.Migration): FILE: apps/application/migrations/0010_chatsharelink.py class Migration (line 9) | class Migration(migrations.Migration): FILE: apps/application/migrations/0011_application_skill_tool_ids.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/application/migrations/0012_remove_applicationapikey_user.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/application/models/application.py class ApplicationFolder (line 20) | class ApplicationFolder(MPTTModel, AppModelMixin): class Meta (line 28) | class Meta: class MPTTMeta (line 31) | class MPTTMeta: class ApplicationTypeChoices (line 35) | class ApplicationTypeChoices(models.TextChoices): function get_dataset_setting_dict (line 41) | def get_dataset_setting_dict(): function get_model_setting_dict (line 49) | def get_model_setting_dict(): class Application (line 59) | class Application(AppModelMixin): method get_default_model_prompt (line 110) | def get_default_model_prompt(): class Meta (line 123) | class Meta: class ApplicationKnowledgeMapping (line 127) | class ApplicationKnowledgeMapping(AppModelMixin): class Meta (line 132) | class Meta: class ApplicationVersion (line 136) | class ApplicationVersion(AppModelMixin): class Meta (line 185) | class Meta: FILE: apps/application/models/application_access_token.py class ApplicationAccessToken (line 16) | class ApplicationAccessToken(AppModelMixin): class Meta (line 35) | class Meta: FILE: apps/application/models/application_api_key.py class ApplicationApiKey (line 11) | class ApplicationApiKey(AppModelMixin): class Meta (line 24) | class Meta: FILE: apps/application/models/application_chat.py class ChatUserType (line 21) | class ChatUserType(models.TextChoices): function default_asker (line 29) | def default_asker(): class Chat (line 33) | class Chat(AppModelMixin): class Meta (line 50) | class Meta: class VoteChoices (line 54) | class VoteChoices(models.TextChoices): class VoteReasonChoices (line 61) | class VoteReasonChoices(models.TextChoices): class ShareLinkType (line 68) | class ShareLinkType(models.TextChoices): class ChatSourceChoices (line 72) | class ChatSourceChoices(models.TextChoices): class ChatRecord (line 84) | class ChatRecord(AppModelMixin): method get_human_message (line 112) | def get_human_message(self): method get_ai_message (line 117) | def get_ai_message(self): method get_node_details_runtime_node_id (line 124) | def get_node_details_runtime_node_id(self, runtime_node_id): class Meta (line 127) | class Meta: class ApplicationChatUserStats (line 131) | class ApplicationChatUserStats(AppModelMixin): class Meta (line 140) | class Meta: class ChatShareLink (line 146) | class ChatShareLink(AppModelMixin): class Meta (line 154) | class Meta: FILE: apps/application/serializers/application.py function get_base_node_work_flow (line 63) | def get_base_node_work_flow(work_flow): function hand_node (line 71) | def hand_node(node, update_tool_map): class MKInstance (line 96) | class MKInstance: method __init__ (line 98) | def __init__(self, application: dict, function_lib_list: List[dict], v... method get_tool_list (line 104) | def get_tool_list(self): class ApplicationSerializerModel (line 108) | class ApplicationSerializerModel(serializers.ModelSerializer): class Meta (line 109) | class Meta: class NoReferencesChoices (line 114) | class NoReferencesChoices(models.TextChoices): class NoReferencesSetting (line 120) | class NoReferencesSetting(serializers.Serializer): class KnowledgeSettingSerializer (line 126) | class KnowledgeSettingSerializer(serializers.Serializer): class ModelKnowledgeAssociation (line 142) | class ModelKnowledgeAssociation(serializers.Serializer): method is_valid (line 151) | def is_valid(self, *, raise_exception=True): class ModelSettingSerializer (line 166) | class ModelSettingSerializer(serializers.Serializer): class ApplicationCreateSerializer (line 185) | class ApplicationCreateSerializer(serializers.Serializer): class ApplicationResponse (line 186) | class ApplicationResponse(serializers.ModelSerializer): class Meta (line 187) | class Meta: class WorkflowRequest (line 191) | class WorkflowRequest(serializers.Serializer): method to_application_model (line 203) | def to_application_model(user_id: str, workspace_id: str, applicatio... class SimplateRequest (line 234) | class SimplateRequest(serializers.Serializer): method is_valid (line 287) | def is_valid(self, *, user_id=None, raise_exception=False): method to_application_model (line 293) | def to_application_model(user_id: str, workspace_id: str, applicatio... class ApplicationQueryRequest (line 329) | class ApplicationQueryRequest(serializers.Serializer): class ApplicationListResponse (line 339) | class ApplicationListResponse(serializers.Serializer): class Query (line 352) | class Query(serializers.Serializer): method get_query_set (line 356) | def get_query_set(self, instance: Dict, workspace_manage: bool, is_x_p... method is_x_pack_ee (line 400) | def is_x_pack_ee(): method list (line 405) | def list(self, instance: Dict): method page (line 419) | def page(self, current_page: int, page_size: int, instance: Dict): class ApplicationImportRequest (line 437) | class ApplicationImportRequest(serializers.Serializer): class ApplicationEditSerializer (line 442) | class ApplicationEditSerializer(serializers.Serializer): class ApplicationSerializer (line 487) | class ApplicationSerializer(serializers.Serializer): method insert (line 492) | def insert(self, instance: Dict): method insert_template_workflow (line 510) | def insert_template_workflow(self, instance: Dict): method insert_workflow (line 539) | def insert_workflow(self, instance: Dict): method to_application_knowledge_mapping (line 553) | def to_application_knowledge_mapping(application_id: str, knowledge_id... method insert_simple (line 558) | def insert_simple(self, instance: Dict): method import_ (line 579) | def import_(self, instance: dict, is_import_tool, with_valid=True): method to_tool (line 638) | def to_tool(tool, workspace_id, user_id): method to_application (line 672) | def to_application(application, workspace_id, user_id, update_tool_map... class StoreApplication (line 710) | class StoreApplication(serializers.Serializer): method get_appstore_templates (line 714) | def get_appstore_templates(self): class TextToSpeechRequest (line 760) | class TextToSpeechRequest(serializers.Serializer): class SpeechToTextRequest (line 764) | class SpeechToTextRequest(serializers.Serializer): class PlayDemoTextRequest (line 768) | class PlayDemoTextRequest(serializers.Serializer): function get_mcp_tools (line 772) | async def get_mcp_tools(servers): class McpServersSerializer (line 777) | class McpServersSerializer(serializers.Serializer): class ApplicationOperateSerializer (line 781) | class ApplicationOperateSerializer(serializers.Serializer): method is_valid (line 786) | def is_valid(self, *, raise_exception=False): method get_mcp_servers (line 795) | def get_mcp_servers(self, instance, with_valid=True): method delete (line 815) | def delete(self, with_valid=True): method export (line 838) | def export(self, with_valid=True): method reset_application_version (line 873) | def reset_application_version(application_version, application): method publish (line 899) | def publish(self, instance, with_valid=True): method update_work_flow_model (line 947) | def update_work_flow_model(instance): method move (line 993) | def move(self, folder_id: str): method edit (line 1002) | def edit(self, instance: Dict, with_valid=True): method update_template_workflow (line 1072) | def update_template_workflow(self, instance: Dict, app: Application): method to_tool (line 1134) | def to_tool(tool, workspace_id, user_id): method one (line 1149) | def one(self, with_valid=True): method get_search_node (line 1173) | def get_search_node(work_flow): method update_knowledge_node (line 1188) | def update_knowledge_node(self, workflow, available_knowledge_dict): method list_knowledge (line 1209) | def list_knowledge(self, with_valid=True): method save_application_knowledge_mapping (line 1237) | def save_application_knowledge_mapping(application_knowledge_id_list, ... method get_application_knowledge_mapping (line 1253) | def get_application_knowledge_mapping(application_knowledge_id_list, k... method speech_to_text (line 1273) | def speech_to_text(self, instance, debug=True, with_valid=True): method text_to_speech (line 1289) | def text_to_speech(self, instance, debug=True, with_valid=True): method play_demo_text (line 1306) | def play_demo_text(self, instance, with_valid=True): FILE: apps/application/serializers/application_access_token.py class AccessTokenEditSerializer (line 23) | class AccessTokenEditSerializer(serializers.Serializer): class AccessTokenSerializer (line 46) | class AccessTokenSerializer(serializers.Serializer): method is_valid (line 50) | def is_valid(self, *, raise_exception=False): method edit (line 59) | def edit(self, instance): method one (line 94) | def one(self, with_valid=True): FILE: apps/application/serializers/application_api_key.py class ApplicationKeySerializerModel (line 16) | class ApplicationKeySerializerModel(serializers.ModelSerializer): class Meta (line 17) | class Meta: class EditApplicationKeySerializer (line 22) | class EditApplicationKeySerializer(serializers.Serializer): class ApplicationKeySerializer (line 36) | class ApplicationKeySerializer(serializers.Serializer): method is_valid (line 41) | def is_valid(self, *, raise_exception=False): method generate (line 50) | def generate(self, with_valid=True): method page (line 61) | def page(self, current_page: int, page_size: int, with_valid=True): class Operate (line 73) | class Operate(serializers.Serializer): method is_valid (line 78) | def is_valid(self, *, raise_exception=False): method delete (line 87) | def delete(self, with_valid=True): method edit (line 97) | def edit(self, instance, with_valid=True): FILE: apps/application/serializers/application_chat.py class ApplicationChatResponseSerializers (line 34) | class ApplicationChatResponseSerializers(serializers.Serializer): class ApplicationChatRecordExportRequest (line 47) | class ApplicationChatRecordExportRequest(serializers.Serializer): class ApplicationChatQuerySerializers (line 52) | class ApplicationChatQuerySerializers(serializers.Serializer): method is_valid (line 68) | def is_valid(self, *, raise_exception=False): method get_end_time (line 77) | def get_end_time(self): method get_start_time (line 82) | def get_start_time(self): method get_query_set (line 87) | def get_query_set(self, select_ids=None): method list (line 136) | def list(self, with_valid=True): method paragraph_list_to_string (line 146) | def paragraph_list_to_string(paragraph_list): method to_row (line 152) | def to_row(row: Dict): method reset_value (line 193) | def reset_value(value): method export (line 202) | def export(self, data, with_valid=True): method page (line 250) | def page(self, current_page: int, page_size: int, with_valid=True): class ChatCountSerializer (line 260) | class ChatCountSerializer(serializers.Serializer): method get_query_set (line 263) | def get_query_set(self): method update_chat (line 266) | def update_chat(self): function get_source_display (line 279) | def get_source_display(source): FILE: apps/application/serializers/application_chat_link.py class ShareChatRecordModelSerializer (line 17) | class ShareChatRecordModelSerializer(serializers.ModelSerializer): class Meta (line 18) | class Meta: class ChatRecordShareLinkRequestSerializer (line 22) | class ChatRecordShareLinkRequestSerializer(serializers.Serializer): method validate (line 31) | def validate(self, attrs): class ChatRecordShareLinkSerializer (line 36) | class ChatRecordShareLinkSerializer(serializers.Serializer): method is_valid (line 41) | def is_valid(self, *, raise_exception=False): method generate_link (line 50) | def generate_link(self, instance, with_valid=True): class ChatShareLinkDetailSerializer (line 99) | class ChatShareLinkDetailSerializer(serializers.Serializer): method is_valid (line 102) | def is_valid(self, *, raise_exception=False): method get_record_list (line 116) | def get_record_list(self): FILE: apps/application/serializers/application_chat_record.py class ChatRecordSerializerModel (line 34) | class ChatRecordSerializerModel(serializers.ModelSerializer): class Meta (line 35) | class Meta: class ChatRecordOperateSerializer (line 43) | class ChatRecordOperateSerializer(serializers.Serializer): method is_valid (line 49) | def is_valid(self, *, debug=False, raise_exception=False): method get_chat_record (line 62) | def get_chat_record(self): method one (line 73) | def one(self, debug): class ApplicationChatRecordQuerySerializers (line 89) | class ApplicationChatRecordQuerySerializers(serializers.Serializer): method is_valid (line 95) | def is_valid(self, *, raise_exception=False): method list (line 104) | def list(self, with_valid=True): method get_loop_workflow_node (line 114) | def get_loop_workflow_node(details): method reset_chat_record (line 124) | def reset_chat_record(chat_record, show_source, show_exec): method page (line 175) | def page(self, current_page: int, page_size: int, with_valid=True, sho... class ParagraphModel (line 191) | class ParagraphModel(serializers.ModelSerializer): class Meta (line 192) | class Meta: class ChatRecordImproveSerializer (line 197) | class ChatRecordImproveSerializer(serializers.Serializer): method is_valid (line 207) | def is_valid(self, *, raise_exception=False): method get (line 216) | def get(self, with_valid=True): class ApplicationChatRecordImproveInstanceSerializer (line 237) | class ApplicationChatRecordImproveInstanceSerializer(serializers.Seriali... class ApplicationChatRecordAddKnowledgeSerializer (line 246) | class ApplicationChatRecordAddKnowledgeSerializer(serializers.Serializer): method is_valid (line 254) | def is_valid(self, *, raise_exception=False): method post_embedding_paragraph (line 266) | def post_embedding_paragraph(paragraph_ids, knowledge_id): method post_improve (line 272) | def post_improve(self, instance: Dict, request=None, scope='WORKSPACE'... method prepend_paragraphs (line 344) | def prepend_paragraphs(document_id, paragraphs): class ApplicationChatRecordImproveSerializer (line 368) | class ApplicationChatRecordImproveSerializer(serializers.Serializer): method is_valid (line 381) | def is_valid(self, *, raise_exception=False): method post_embedding_paragraph (line 401) | def post_embedding_paragraph(chat_record, paragraph_id, knowledge_id): method improve (line 409) | def improve(self, instance: Dict, request=None, scope='WORKSPACE', wit... class Operate (line 467) | class Operate(serializers.Serializer): method delete (line 481) | def delete(self, request=None, scope='WORKSPACE', with_valid=True): FILE: apps/application/serializers/application_folder.py class ApplicationFolderTreeSerializer (line 6) | class ApplicationFolderTreeSerializer(serializers.ModelSerializer): class Meta (line 9) | class Meta: method get_children (line 13) | def get_children(self, obj): class ApplicationFolderFlatSerializer (line 17) | class ApplicationFolderFlatSerializer(serializers.ModelSerializer): class Meta (line 18) | class Meta: FILE: apps/application/serializers/application_stats.py class ApplicationStatsSerializer (line 27) | class ApplicationStatsSerializer(serializers.Serializer): class ApplicationStatisticsSerializer (line 37) | class ApplicationStatisticsSerializer(serializers.Serializer): method is_valid (line 43) | def is_valid(self, *, raise_exception=False): method get_end_time (line 52) | def get_end_time(self): method get_start_time (line 57) | def get_start_time(self): method get_customer_count_trend (line 62) | def get_customer_count_trend(self, with_valid=True): method get_chat_record_aggregate_trend (line 75) | def get_chat_record_aggregate_trend(self, with_valid=True): method merge_customer_chat_record (line 93) | def merge_customer_chat_record(self, chat_record_aggregate_trend: List... method find (line 106) | def find(source_list, condition, default): method get_days_between_dates (line 113) | def get_days_between_dates(start_date, end_date): method get_token_usage_statistics (line 123) | def get_token_usage_statistics(self, with_valid=True): method get_top_questions_statistics (line 142) | def get_top_questions_statistics(self, with_valid=True): FILE: apps/application/serializers/application_version.py class ApplicationVersionQuerySerializer (line 20) | class ApplicationVersionQuerySerializer(serializers.Serializer): class ApplicationVersionModelSerializer (line 26) | class ApplicationVersionModelSerializer(serializers.ModelSerializer): class Meta (line 27) | class Meta: class ApplicationVersionEditSerializer (line 34) | class ApplicationVersionEditSerializer(serializers.Serializer): class ApplicationVersionSerializer (line 39) | class ApplicationVersionSerializer(serializers.Serializer): class Query (line 42) | class Query(serializers.Serializer): method get_query_set (line 45) | def get_query_set(self, query): method list (line 53) | def list(self, query, with_valid=True): method page (line 60) | def page(self, query, current_page, page_size, with_valid=True): class Operate (line 67) | class Operate(serializers.Serializer): method is_valid (line 73) | def is_valid(self, *, raise_exception=False): method one (line 82) | def one(self, with_valid=True): method edit (line 93) | def edit(self, instance: Dict, with_valid=True): FILE: apps/application/serializers/common.py class ToolExecute (line 28) | class ToolExecute: method __init__ (line 29) | def __init__(self, tool_id: str, method get_record (line 42) | def get_record(self): method to_record (line 51) | def to_record(self, tool_record_dict): method to_dict (line 63) | def to_dict(self, tool_record): method set_record (line 73) | def set_record(self, tool_record): class ChatInfo (line 96) | class ChatInfo: method __init__ (line 97) | def __init__(self, method get_no_references_setting (line 132) | def get_no_references_setting(knowledge_setting, model_setting): method get_application (line 142) | def get_application(self): method get_chat_user (line 169) | def get_chat_user(self, asker=None): method get_chat_user_group (line 193) | def get_chat_user_group(self, asker=None): method to_base_pipeline_manage_params (line 209) | def to_base_pipeline_manage_params(self): method to_pipeline_manage_params (line 260) | def to_pipeline_manage_params(self, problem_text: str, post_response_h... method set_chat (line 271) | def set_chat(self, question): method set_chat_variable (line 279) | def set_chat_variable(self, chat_context): method get_chat_variable (line 290) | def get_chat_variable(self): method append_chat_record (line 300) | def append_chat_record(self, chat_record: ChatRecord): method to_dict (line 355) | def to_dict(self): method chat_record_to_map (line 370) | def chat_record_to_map(self, chat_record): method map_to_chat_record (line 388) | def map_to_chat_record(chat_record_dict): method set_cache (line 405) | def set_cache(self): method map_to_chat_info (line 411) | def map_to_chat_info(chat_info_dict): method get_cache (line 423) | def get_cache(chat_id): function update_resource_mapping_by_application (line 431) | def update_resource_mapping_by_application(application_id: str, other_re... FILE: apps/application/views/application.py function get_application_operation_object (line 29) | def get_application_operation_object(application_id): class ApplicationAPI (line 38) | class ApplicationAPI(APIView): method post (line 57) | def post(self, request: Request, workspace_id: str): method get (line 73) | def get(self, request: Request, workspace_id: str): class Page (line 77) | class Page(APIView): method get (line 92) | def get(self, request: Request, workspace_id: str, current_page: int... class Import (line 97) | class Import(APIView): method post (line 115) | def post(self, request: Request, workspace_id: str, folder_id: str): class Export (line 125) | class Export(APIView): method get (line 147) | def get(self, request: Request, workspace_id: str, application_id: s... class Operate (line 153) | class Operate(APIView): method delete (line 175) | def delete(self, request: Request, workspace_id: str, application_id... method put (line 200) | def put(self, request: Request, workspace_id: str, application_id: s... method get (line 223) | def get(self, request: Request, workspace_id: str, application_id: s... class Move (line 228) | class Move(APIView): method put (line 249) | def put(self, request: Request, workspace_id: str, application_id: s... class Publish (line 255) | class Publish(APIView): method put (line 276) | def put(self, request: Request, workspace_id: str, application_id: s... class StoreApplication (line 282) | class StoreApplication(APIView): method get (line 293) | def get(self, request: Request): class McpServers (line 300) | class McpServers(APIView): method post (line 319) | def post(self, request: Request, workspace_id, application_id: str): class SpeechToText (line 326) | class SpeechToText(APIView): method post (line 345) | def post(self, request: Request, workspace_id: str, application_id: str): class TextToSpeech (line 352) | class TextToSpeech(APIView): method post (line 371) | def post(self, request: Request, workspace_id: str, application_id: str): class PlayDemoText (line 379) | class PlayDemoText(APIView): method post (line 400) | def post(self, request: Request, workspace_id: str, application_id: str): FILE: apps/application/views/application_access_token.py function get_application_operation_object (line 24) | def get_application_operation_object(application_id): class AccessToken (line 33) | class AccessToken(APIView): method put (line 54) | def put(self, request: Request, workspace_id: str, application_id: str): method get (line 74) | def get(self, request: Request, workspace_id: str, application_id: str): FILE: apps/application/views/application_api_key.py function get_application_operation_object (line 17) | def get_application_operation_object(application_id): class ApplicationKey (line 26) | class ApplicationKey(APIView): method post (line 49) | def post(self, request: Request, workspace_id: str, application_id: str): class Page (line 54) | class Page(APIView): method get (line 72) | def get(self, request: Request, workspace_id: str, application_id: s... class Operate (line 78) | class Operate(APIView): method put (line 100) | def put(self, request: Request, workspace_id: str, application_id: s... method delete (line 126) | def delete(self, request: Request, workspace_id: str, application_id... FILE: apps/application/views/application_chat.py function get_application_operation_object (line 31) | def get_application_operation_object(application_id): class ApplicationChat (line 39) | class ApplicationChat(APIView): method get (line 58) | def get(self, request: Request, workspace_id: str, application_id: str): class Page (line 64) | class Page(APIView): method get (line 83) | def get(self, request: Request, workspace_id: str, application_id: s... class Export (line 90) | class Export(APIView): method post (line 109) | def post(self, request: Request, workspace_id: str, application_id: ... class OpenView (line 116) | class OpenView(APIView): method get (line 134) | def get(self, request: Request, workspace_id: str, application_id: str): class ChatView (line 141) | class ChatView(APIView): method post (line 154) | def post(self, request: Request, chat_id: str): class PromptGenerateView (line 157) | class PromptGenerateView(APIView): method post (line 178) | def post(self, request: Request, workspace_id: str, model_id:str, appl... FILE: apps/application/views/application_chat_link.py class ChatRecordLinkView (line 19) | class ChatRecordLinkView(APIView): method post (line 33) | def post(self, request: Request, application_id: str, chat_id: str): class ChatRecordDetailView (line 41) | class ChatRecordDetailView(APIView): method get (line 52) | def get(self, request, link: str): FILE: apps/application/views/application_chat_record.py class ApplicationChatRecord (line 26) | class ApplicationChatRecord(APIView): method get (line 45) | def get(self, request: Request, workspace_id: str, application_id: str... class Page (line 52) | class Page(APIView): method get (line 71) | def get(self, request: Request, workspace_id: str, application_id: s... class ApplicationChatRecordOperateAPI (line 81) | class ApplicationChatRecordOperateAPI(APIView): method get (line 102) | def get(self, request: Request, workspace_id: str, application_id: str... class ApplicationChatRecordAddKnowledge (line 111) | class ApplicationChatRecordAddKnowledge(APIView): method post (line 130) | def post(self, request: Request, workspace_id: str, application_id: str): class ApplicationChatRecordImprove (line 135) | class ApplicationChatRecordImprove(APIView): method get (line 154) | def get(self, request: Request, workspace_id: str, application_id: str... class ApplicationChatRecordImproveParagraph (line 160) | class ApplicationChatRecordImproveParagraph(APIView): method put (line 179) | def put(self, request: Request, class Operate (line 191) | class Operate(APIView): method delete (line 210) | def delete(self, request: Request, workspace_id: str, application_id... FILE: apps/application/views/application_stats.py class ApplicationStats (line 23) | class ApplicationStats(APIView): method get (line 41) | def get(self, request: Request, workspace_id: str, application_id: str): class TokenUsageStatistics (line 50) | class TokenUsageStatistics(APIView): method get (line 69) | def get(self, request: Request, workspace_id: str, application_id: s... class TopQuestionsStatistics (line 78) | class TopQuestionsStatistics(APIView): method get (line 96) | def get(self, request: Request, workspace_id: str, application_id: s... FILE: apps/application/views/application_version.py class ApplicationVersionView (line 25) | class ApplicationVersionView(APIView): method get (line 43) | def get(self, request: Request, workspace_id, application_id: str): class Page (line 49) | class Page(APIView): method get (line 67) | def get(self, request: Request, workspace_id: str, application_id: s... class Operate (line 74) | class Operate(APIView): method get (line 92) | def get(self, request: Request, workspace_id: str, application_id: s... method put (line 117) | def put(self, request: Request, workspace_id: str, application_id: s... FILE: apps/chat/api/chat_api.py class PromptGenerateAPI (line 19) | class PromptGenerateAPI(APIMixin): method get_parameters (line 21) | def get_parameters(): method get_request (line 46) | def get_request(): class ChatAPI (line 50) | class ChatAPI(APIMixin): method get_parameters (line 52) | def get_parameters(): method get_request (line 62) | def get_request(): class ApplicationCreateResponse (line 66) | class ApplicationCreateResponse(ResultSerializer): method get_data (line 67) | def get_data(self): class PageApplicationCreateResponse (line 71) | class PageApplicationCreateResponse(ResultPageSerializer): method get_data (line 72) | def get_data(self): class ApplicationRecordResponse (line 76) | class ApplicationRecordResponse(ResultSerializer): method get_data (line 77) | def get_data(self): class PageApplicationRecordResponse (line 81) | class PageApplicationRecordResponse(ResultPageSerializer): method get_data (line 82) | def get_data(self): class HistoricalConversationAPI (line 86) | class HistoricalConversationAPI(APIMixin): method get_parameters (line 88) | def get_parameters(): method get_response (line 92) | def get_response(): class PageHistoricalConversationAPI (line 96) | class PageHistoricalConversationAPI(APIMixin): method get_parameters (line 98) | def get_parameters(): method get_response (line 102) | def get_response(): class HistoricalConversationOperateAPI (line 106) | class HistoricalConversationOperateAPI(APIMixin): method get_parameters (line 108) | def get_parameters(): method get_request (line 118) | def get_request(): method get_response (line 122) | def get_response(): class HistoricalConversationRecordAPI (line 126) | class HistoricalConversationRecordAPI(APIMixin): method get_parameters (line 128) | def get_parameters(): method get_response (line 138) | def get_response(): class PageHistoricalConversationRecordAPI (line 142) | class PageHistoricalConversationRecordAPI(APIMixin): method get_parameters (line 144) | def get_parameters(): method get_response (line 154) | def get_response(): FILE: apps/chat/api/chat_authentication_api.py class OpenAIAPI (line 19) | class OpenAIAPI(APIMixin): method get_request (line 21) | def get_request(): class ChatAuthenticationAPI (line 25) | class ChatAuthenticationAPI(APIMixin): method get_request (line 27) | def get_request(): method get_parameters (line 31) | def get_parameters(): method get_response (line 35) | def get_response(): class ChatAuthenticationProfileAPI (line 39) | class ChatAuthenticationProfileAPI(APIMixin): method get_parameters (line 42) | def get_parameters(): class ChatOpenAPI (line 52) | class ChatOpenAPI(APIMixin): method get_parameters (line 54) | def get_parameters(): FILE: apps/chat/api/chat_embed_api.py class ChatEmbedAPI (line 18) | class ChatEmbedAPI(APIMixin): method get_parameters (line 20) | def get_parameters(): method get_response (line 46) | def get_response(): FILE: apps/chat/api/vote_api.py class VoteAPI (line 18) | class VoteAPI(APIMixin): method get_request (line 20) | def get_request(): method get_parameters (line 24) | def get_parameters(): method get_response (line 42) | def get_response(): FILE: apps/chat/apps.py class ChatConfig (line 4) | class ChatConfig(AppConfig): FILE: apps/chat/mcp/tools.py class MCPToolHandler (line 10) | class MCPToolHandler: method __init__ (line 11) | def __init__(self, auth_header): method initialize (line 20) | def initialize(self): method list_tools (line 32) | def list_tools(self): method _get_chat_id (line 49) | def _get_chat_id(self): method call_tool (line 65) | def call_tool(self, params): FILE: apps/chat/serializers/chat.py class ChatMessagesSerializers (line 48) | class ChatMessagesSerializers(serializers.Serializer): class GeneratePromptSerializers (line 53) | class GeneratePromptSerializers(serializers.Serializer): method is_valid (line 57) | def is_valid(self, *, raise_exception=False): class ChatMessageSerializers (line 74) | class ChatMessageSerializers(serializers.Serializer): function get_post_handler (line 100) | def get_post_handler(chat_info: ChatInfo): class DebugChatSerializers (line 135) | class DebugChatSerializers(serializers.Serializer): method chat (line 138) | def chat(self, instance: dict, base_to_response: BaseToResponse = Syst... class PromptGenerateSerializer (line 154) | class PromptGenerateSerializer(serializers.Serializer): method is_valid (line 159) | def is_valid(self, *, raise_exception=False): method generate_prompt (line 170) | def generate_prompt(self, instance: dict): class OpenAIMessage (line 205) | class OpenAIMessage(serializers.Serializer): class OpenAIInstanceSerializer (line 210) | class OpenAIInstanceSerializer(serializers.Serializer): class OpenAIChatSerializer (line 217) | class OpenAIChatSerializer(serializers.Serializer): method get_message (line 225) | def get_message(instance): method generate_chat (line 229) | def generate_chat(chat_id, application_id, message, chat_user_id, chat... method chat (line 251) | def chat(self, instance: Dict, with_valid=True): class ChatSerializers (line 285) | class ChatSerializers(serializers.Serializer): method is_valid_application_workflow (line 295) | def is_valid_application_workflow(self, *, raise_exception=False): method is_valid_chat_id (line 298) | def is_valid_chat_id(self, chat_info: ChatInfo): method is_valid_intraday_access_num (line 303) | def is_valid_intraday_access_num(self): method is_valid_application_simple (line 323) | def is_valid_application_simple(self, *, chat_info: ChatInfo, raise_ex... method chat_simple (line 337) | def chat_simple(self, chat_info: ChatInfo, instance, base_to_response): method get_chat_record (line 379) | def get_chat_record(chat_info, chat_record_id): method chat_work_flow (line 392) | def chat_work_flow(self, chat_info: ChatInfo, instance: dict, base_to_... method is_valid_chat_user (line 441) | def is_valid_chat_user(self): method chat (line 454) | def chat(self, instance: dict, base_to_response: BaseToResponse = Syst... method get_chat_info (line 469) | def get_chat_info(self): method re_open_chat (line 478) | def re_open_chat(self, chat_id: str): method re_open_chat_simple (line 494) | def re_open_chat_simple(self, chat_id, application): method re_open_chat_work_flow (line 516) | def re_open_chat_work_flow(self, chat_id, application): class OpenChatSerializers (line 528) | class OpenChatSerializers(serializers.Serializer): method is_valid (line 537) | def is_valid(self, *, raise_exception=False): method open (line 547) | def open(self): method open_work_flow (line 563) | def open_work_flow(self, application): method open_simple (line 577) | def open_simple(self, application): class TextToSpeechSerializers (line 600) | class TextToSpeechSerializers(serializers.Serializer): method text_to_speech (line 603) | def text_to_speech(self, instance): class SpeechToTextSerializers (line 612) | class SpeechToTextSerializers(serializers.Serializer): method speech_to_text (line 615) | def speech_to_text(self, instance): FILE: apps/chat/serializers/chat_authentication.py class AnonymousAuthenticationSerializer (line 26) | class AnonymousAuthenticationSerializer(serializers.Serializer): method auth (line 29) | def auth(self, request, with_valid=True): class AuthProfileSerializer (line 52) | class AuthProfileSerializer(serializers.Serializer): method profile (line 55) | def profile(self): class ApplicationProfileSerializer (line 92) | class ApplicationProfileSerializer(serializers.Serializer): method reset_application (line 96) | def reset_application(application, application_version): method profile (line 113) | def profile(self, with_valid=True): FILE: apps/chat/serializers/chat_embed_serializers.py class ChatEmbedSerializer (line 24) | class ChatEmbedSerializer(serializers.Serializer): method get_embed (line 29) | def get_embed(self, with_valid=True, params=None): method get_query_api_input (line 91) | def get_query_api_input(application, params): FILE: apps/chat/serializers/chat_record.py class VoteRequest (line 25) | class VoteRequest(serializers.Serializer): class HistoryChatModel (line 34) | class HistoryChatModel(serializers.ModelSerializer): class Meta (line 35) | class Meta: class VoteSerializer (line 44) | class VoteSerializer(serializers.Serializer): method vote (line 51) | def vote(self, instance: Dict, with_valid=True): class HistoricalConversationSerializer (line 102) | class HistoricalConversationSerializer(serializers.Serializer): method get_queryset (line 106) | def get_queryset(self): method list (line 112) | def list(self): method page (line 117) | def page(self, current_page, page_size): class EditAbstractSerializer (line 122) | class EditAbstractSerializer(serializers.Serializer): class HistoricalConversationOperateSerializer (line 126) | class HistoricalConversationOperateSerializer(serializers.Serializer): method is_valid (line 131) | def is_valid(self, *, raise_exception=False): method edit_abstract (line 138) | def edit_abstract(self, instance, with_valid=True): method logic_delete (line 147) | def logic_delete(self, with_valid=True): class Clear (line 154) | class Clear(serializers.Serializer): method batch_logic_delete (line 158) | def batch_logic_delete(self, with_valid=True): class HistoricalConversationRecordSerializer (line 166) | class HistoricalConversationRecordSerializer(serializers.Serializer): method is_valid (line 171) | def is_valid(self, *, raise_exception=False): method get_queryset (line 181) | def get_queryset(self): method list (line 185) | def list(self): method page (line 190) | def page(self, current_page, page_size): FILE: apps/chat/template/embed.js function initMaxkb (line 132) | function initMaxkb(){ function initMaxkbStyle (line 149) | function initMaxkbStyle(root, maxkbId){ function embedChatbot (line 319) | function embedChatbot() { FILE: apps/chat/views/chat.py function stream_image (line 36) | def stream_image(response): class ResourceProxy (line 43) | class ResourceProxy(APIView): method get (line 44) | def get(self, request: Request): class OpenAIView (line 69) | class OpenAIView(APIView): method post (line 81) | def post(self, request: Request, application_id: str): class AnonymousAuthentication (line 92) | class AnonymousAuthentication(APIView): method options (line 93) | def options(self, request, *args, **kwargs): method post (line 108) | def post(self, request: Request): class ApplicationProfile (line 118) | class ApplicationProfile(APIView): method get (line 130) | def get(self, request: Request): class AuthProfile (line 137) | class AuthProfile(APIView): method get (line 147) | def get(self, request: Request): class ChatView (line 152) | class ChatView(APIView): method post (line 165) | def post(self, request: Request, chat_id: str): class OpenView (line 179) | class OpenView(APIView): method get (line 191) | def get(self, request: Request): class CaptchaView (line 202) | class CaptchaView(APIView): method get (line 209) | def get(self, request: Request): class SpeechToText (line 215) | class SpeechToText(APIView): method post (line 227) | def post(self, request: Request): class TextToSpeech (line 234) | class TextToSpeech(APIView): method post (line 246) | def post(self, request: Request): class UploadFile (line 253) | class UploadFile(APIView): method post (line 266) | def post(self, request: Request, chat_id: str): FILE: apps/chat/views/chat_embed.py class ChatEmbedView (line 18) | class ChatEmbedView(APIView): method get (line 29) | def get(self, request: Request): FILE: apps/chat/views/chat_record.py class VoteView (line 24) | class VoteView(APIView): method put (line 37) | def put(self, request: Request, chat_id: str, chat_record_id: str): class HistoricalConversationView (line 44) | class HistoricalConversationView(APIView): method get (line 56) | def get(self, request: Request): class Operate (line 63) | class Operate(APIView): method put (line 76) | def put(self, request: Request, chat_id: str): method delete (line 94) | def delete(self, request: Request, chat_id: str): class BatchDelete (line 102) | class BatchDelete(APIView): method delete (line 114) | def delete(self, request: Request): class PageView (line 120) | class PageView(APIView): method get (line 132) | def get(self, request: Request, current_page: int, page_size: int): class HistoricalConversationRecordView (line 140) | class HistoricalConversationRecordView(APIView): method get (line 152) | def get(self, request: Request, chat_id: str): class PageView (line 160) | class PageView(APIView): method get (line 172) | def get(self, request: Request, chat_id: str, current_page: int, pag... class ChatRecordView (line 181) | class ChatRecordView(APIView): method get (line 193) | def get(self, request: Request, chat_id: str, chat_record_id: str): FILE: apps/chat/views/mcp.py function mcp_view (line 10) | def mcp_view(request): FILE: apps/common/auth/authenticate.py class AnonymousAuthentication (line 25) | class AnonymousAuthentication(TokenAuthentication): method authenticate (line 26) | def authenticate(self, request): class AnonymousAuthenticationScheme (line 30) | class AnonymousAuthenticationScheme(OpenApiAuthenticationExtension): method get_security_definition (line 34) | def get_security_definition(self, auto_schema): method get_security_requirement (line 39) | def get_security_requirement(self, auto_schema): function new_instance_by_class_path (line 44) | def new_instance_by_class_path(class_path: str): class TokenDetails (line 58) | class TokenDetails: method __init__ (line 62) | def __init__(self, token: str): method get_token_details (line 65) | def get_token_details(self): class TokenAuth (line 74) | class TokenAuth(TokenAuthentication): method authenticate (line 78) | def authenticate(self, request): class ChatTokenAuth (line 100) | class ChatTokenAuth(TokenAuthentication): method authenticate (line 104) | def authenticate(self, request): class AllTokenAuth (line 126) | class AllTokenAuth(TokenAuthentication): method authenticate (line 130) | def authenticate(self, request): class WebhookAuth (line 152) | class WebhookAuth(TokenAuthentication): method authenticate (line 156) | def authenticate(self, request): FILE: apps/common/auth/authentication.py function exist_permissions_by_permission_constants (line 18) | def exist_permissions_by_permission_constants(user_permission: List[Perm... function exist_role_by_role_constants (line 29) | def exist_role_by_role_constants(user_role: List[RoleConstants], function exist_permissions_by_view_permission (line 40) | def exist_permissions_by_view_permission(user_role: List[RoleConstants], function exist_permissions (line 64) | def exist_permissions(user_role: List[RoleConstants], user_permission: L... function exist (line 79) | def exist(user_role: List[RoleConstants], user_permission: List[Permissi... function get_is_permissions (line 86) | def get_is_permissions(request, **kwargs): function has_permissions (line 96) | def has_permissions(*permission, compare=CompareConstants.OR): FILE: apps/common/auth/common.py function _decrypt (line 22) | def _decrypt(authentication: str): class ChatAuthentication (line 35) | class ChatAuthentication: method __init__ (line 36) | def __init__(self, auth_type: str | None, **kwargs): method to_dict (line 41) | def to_dict(self): method to_string (line 44) | def to_string(self): method new_instance (line 52) | def new_instance(authentication: str): class ChatUserToken (line 57) | class ChatUserToken: method __init__ (line 58) | def __init__(self, application_id, user_id, access_token, _type, chat_... method to_dict (line 68) | def to_dict(self): method to_token (line 79) | def to_token(self): method new_instance (line 83) | def new_instance(token_dict): FILE: apps/common/auth/handle/auth_base_handle.py class AuthBaseHandle (line 12) | class AuthBaseHandle(ABC): method support (line 14) | def support(self, request, token: str, get_token_details): method handle (line 18) | def handle(self, request, token: str, get_token_details): FILE: apps/common/auth/handle/impl/application_key.py class ApplicationKey (line 19) | class ApplicationKey(AuthBaseHandle): method handle (line 20) | def handle(self, request, token: str, get_token_details): method support (line 44) | def support(self, request, token: str, get_token_details): FILE: apps/common/auth/handle/impl/chat_anonymous_user_token.py class ChatAnonymousUserToken (line 22) | class ChatAnonymousUserToken(AuthBaseHandle): method support (line 23) | def support(self, request, token: str, get_token_details): method handle (line 32) | def handle(self, request, token: str, get_token_details): FILE: apps/common/auth/handle/impl/user_token.py function get_permission (line 32) | def get_permission(permission_id): function get_workspace_permission (line 43) | def get_workspace_permission(permission_id, workspace_id, role=None): function get_role_permission (line 59) | def get_role_permission(role, workspace_id): function get_workspace_permission_list (line 71) | def get_workspace_permission_list(role_permission_mapping_dict, workspac... function get_workspace_resource_permission_list (line 87) | def get_workspace_resource_permission_list( function get_workspace_resource_permission_list_by_workspace_user_permission (line 107) | def get_workspace_resource_permission_list_by_workspace_user_permission( function get_permission_list (line 147) | def get_permission_list(user, function reset_workspace_role (line 224) | def reset_workspace_role(role_id, workspace_id, role_dict): function get_role_list (line 240) | def get_role_list(user, function get_auth (line 278) | def get_auth(user): class UserToken (line 291) | class UserToken(AuthBaseHandle): method support (line 292) | def support(self, request, token: str, get_token_details): method handle (line 298) | def handle(self, request, token: str, get_token_details): FILE: apps/common/cache/mem_cache.py class MemCache (line 13) | class MemCache(LocMemCache): method __init__ (line 14) | def __init__(self, name, params): method set (line 17) | def set(self, key, value, timeout=DEFAULT_TIMEOUT, version=None): method get (line 23) | def get(self, key, default=None, version=None): method clear_by_application_id (line 33) | def clear_by_application_id(self, application_id): method clear_timeout_data (line 45) | def clear_timeout_data(self): FILE: apps/common/cache_data/application_access_token_cache.py function get_application_access_token (line 19) | def get_application_access_token(access_token, use_get_data): function del_application_access_token (line 29) | def del_application_access_token(access_token): FILE: apps/common/cache_data/application_api_key_cache.py function get_application_api_key (line 20) | def get_application_api_key(secret_key, use_get_data): function del_application_api_key (line 26) | def del_application_api_key(secret_key): FILE: apps/common/chunk/__init__.py function text_to_chunk (line 14) | def text_to_chunk(text: str, chunk_size: int = 256): FILE: apps/common/chunk/i_chunk_handle.py class IChunkHandle (line 13) | class IChunkHandle(ABC): method handle (line 15) | def handle(self, chunk_list: List[str], chunk_size: int = 256): FILE: apps/common/chunk/impl/mark_chunk_handle.py class MarkChunkHandle (line 14) | class MarkChunkHandle(IChunkHandle): method handle (line 15) | def handle(self, chunk_list: List[str], chunk_size: int = 256): FILE: apps/common/config/embedding_config.py class ModelManage (line 19) | class ModelManage: method _get_lock (line 24) | def _get_lock(_id): method get_model (line 36) | def get_model(_id, get_model): method clear_timeout_cache (line 55) | def clear_timeout_cache(): method delete_key (line 61) | def delete_key(_id): class VectorStore (line 66) | class VectorStore: method get_embedding_vector (line 75) | def get_embedding_vector() -> BaseVectorStore: FILE: apps/common/config/tokenizer_manage_config.py class MKTokenizer (line 12) | class MKTokenizer: method __init__ (line 13) | def __init__(self, tokenizer): method encode (line 16) | def encode(self, text): class TokenizerManage (line 20) | class TokenizerManage: method get_tokenizer (line 24) | def get_tokenizer(): FILE: apps/common/constants/authentication_type.py class AuthenticationType (line 12) | class AuthenticationType(Enum): FILE: apps/common/constants/cache_version.py class Cache_Version (line 12) | class Cache_Version(Enum): method get_version (line 44) | def get_version(self): method get_key_func (line 47) | def get_key_func(self): method get_key (line 50) | def get_key(self, **kwargs): FILE: apps/common/constants/exception_code_constants.py class ExceptionCodeConstantsValue (line 15) | class ExceptionCodeConstantsValue: method __init__ (line 16) | def __init__(self, code, message): method get_message (line 20) | def get_message(self): method get_code (line 23) | def get_code(self): method to_app_api_exception (line 26) | def to_app_api_exception(self): class ExceptionCodeConstants (line 30) | class ExceptionCodeConstants(Enum): FILE: apps/common/constants/permission_constants.py class Group (line 18) | class Group(Enum): class SystemGroup (line 104) | class SystemGroup(Enum): class WorkspaceGroup (line 126) | class WorkspaceGroup(Enum): class UserGroup (line 137) | class UserGroup(Enum): class Operate (line 145) | class Operate(Enum): class RoleGroup (line 196) | class RoleGroup(Enum): class ResourcePermissionRole (line 203) | class ResourcePermissionRole(models.TextChoices): method __eq__ (line 209) | def __eq__(self, other): class ResourcePermission (line 213) | class ResourcePermission(models.TextChoices): method __eq__ (line 222) | def __eq__(self, other): class Resource (line 226) | class Resource(models.TextChoices): method __eq__ (line 235) | def __eq__(self, other): class ResourcePermissionGroup (line 239) | class ResourcePermissionGroup: method __init__ (line 240) | def __init__(self, resource: Resource, permission: ResourcePermission): method __eq__ (line 244) | def __eq__(self, other): class ResourcePermissionConst (line 248) | class ResourcePermissionConst: class ResourceAuthType (line 265) | class ResourceAuthType(models.TextChoices): class Role (line 276) | class Role: method __init__ (line 277) | def __init__(self, name: str, decs: str, group: RoleGroup, resource_pa... method __str__ (line 283) | def __str__(self): method __eq__ (line 287) | def __eq__(self, other): method get_workspace_role (line 290) | def get_workspace_role(self): class RoleConstants (line 295) | class RoleConstants(Enum): method get_workspace_role (line 306) | def get_workspace_role(self): class Permission (line 432) | class Permission: method __init__ (line 437) | def __init__(self, group: Group, operate: Operate, resource_path=None,... method new_instance (line 455) | def new_instance(permission_str: str): method __str__ (line 464) | def __str__(self): method __eq__ (line 470) | def __eq__(self, other): class PermissionConstants (line 474) | class PermissionConstants(Enum): method get_workspace_application_permission (line 1846) | def get_workspace_application_permission(self): method get_workspace_knowledge_permission (line 1851) | def get_workspace_knowledge_permission(self): method get_workspace_model_permission (line 1856) | def get_workspace_model_permission(self): method get_workspace_tool_permission (line 1861) | def get_workspace_tool_permission(self): method get_workspace_permission (line 1866) | def get_workspace_permission(self): method get_workspace_permission_workspace_manage_role (line 1871) | def get_workspace_permission_workspace_manage_role(self): method __eq__ (line 1876) | def __eq__(self, other): function get_default_permission_list_by_role (line 1883) | def get_default_permission_list_by_role(role: RoleConstants): class RolePermissionMapping (line 1894) | class RolePermissionMapping: method __init__ (line 1895) | def __init__(self, role_id, permission_id): class WorkspaceUserRoleMapping (line 1900) | class WorkspaceUserRoleMapping: method __init__ (line 1901) | def __init__(self, workspace_id, role_id, user_id): function get_default_role_permission_mapping_list (line 1907) | def get_default_role_permission_mapping_list(): function get_default_workspace_user_role_mapping_list (line 1914) | def get_default_workspace_user_role_mapping_list(user_role_list: list): function get_permission_list_by_resource_group (line 1919) | def get_permission_list_by_resource_group(resource_group: ResourcePermis... class ChatAuth (line 1927) | class ChatAuth: method __init__ (line 1928) | def __init__(self, class Auth (line 1943) | class Auth: method __init__ (line 1948) | def __init__(self, class CompareConstants (line 1959) | class CompareConstants(Enum): class ViewPermission (line 1966) | class ViewPermission: method __init__ (line 1967) | def __init__(self, roleList: List[RoleConstants], permissionList: List... FILE: apps/common/database_model_manage/database_model_manage.py function new_instance_by_class_path (line 13) | def new_instance_by_class_path(class_path: str): class DatabaseModelManage (line 25) | class DatabaseModelManage: method get_model (line 32) | def get_model(model_name): method init (line 39) | def init(): FILE: apps/common/database_model_manage/handle/base_handle.py class IBaseModelHandle (line 12) | class IBaseModelHandle(ABC): method get_model_dict (line 14) | def get_model_dict(self): FILE: apps/common/database_model_manage/handle/impl/default_base_model_handle.py class DefaultBaseModelHandle (line 12) | class DefaultBaseModelHandle(IBaseModelHandle): method get_model_dict (line 13) | def get_model_dict(self): FILE: apps/common/db/compiler.py class AppSQLCompiler (line 16) | class AppSQLCompiler(SQLCompiler): method __init__ (line 17) | def __init__(self, query, connection, using, elide_empty=True, field_r... method get_query_str (line 23) | def get_query_str(self, with_limits=True, with_table_name=False, with_... method as_sql (line 212) | def as_sql(self, with_limits=True, with_col_aliases=False, select_stri... FILE: apps/common/db/search.py function get_dynamics_model (line 23) | def get_dynamics_model(attr: dict, table_name='dynamics'): function generate_sql_by_query_dict (line 54) | def generate_sql_by_query_dict(queryset_dict: Dict[str, QuerySet], selec... function generate_sql_by_query (line 79) | def generate_sql_by_query(queryset: QuerySet, select_string: str, function compiler_queryset (line 92) | def compiler_queryset(queryset: QuerySet, field_replace_dict: None | Dic... function native_search (line 110) | def native_search(queryset: QuerySet | Dict[str, QuerySet], select_strin... function native_update (line 132) | def native_update(queryset: QuerySet | Dict[str, QuerySet], select_strin... function page_search (line 150) | def page_search(current_page: int, page_size: int, queryset: QuerySet, p... function native_page_search (line 164) | def native_page_search(current_page: int, page_size: int, queryset: Quer... function native_page_handler (line 193) | def native_page_handler(page_size: int, function get_field_replace_dict (line 238) | def get_field_replace_dict(queryset: QuerySet): function to_replace_field (line 252) | def to_replace_field(field: str): FILE: apps/common/db/sql_execute.py function sql_execute (line 14) | def sql_execute(sql: str, params): function update_execute (line 30) | def update_execute(sql: str, params): function select_list (line 44) | def select_list(sql: str, params: List): function select_one (line 57) | def select_one(sql: str, params: List): FILE: apps/common/encoder/encoder.py class SystemEncoder (line 17) | class SystemEncoder(json.JSONEncoder): method encode (line 18) | def encode(self, obj): method default (line 25) | def default(self, obj): FILE: apps/common/event/__init__.py function run (line 25) | def run(): FILE: apps/common/event/common.py function poxy (line 20) | def poxy(poxy_function): function get_cache_key (line 27) | def get_cache_key(poxy_function, args): function get_cache_poxy_function (line 31) | def get_cache_poxy_function(poxy_function, cache_key): function embedding_poxy (line 41) | def embedding_poxy(poxy_function): FILE: apps/common/event/listener_manage.py class SyncWebKnowledgeArgs (line 36) | class SyncWebKnowledgeArgs: method __init__ (line 37) | def __init__(self, lock_key: str, url: str, selector: str, handler): class SyncWebDocumentArgs (line 44) | class SyncWebDocumentArgs: method __init__ (line 45) | def __init__(self, source_url_list: List[str], selector: str, handler): class UpdateProblemArgs (line 51) | class UpdateProblemArgs: method __init__ (line 52) | def __init__(self, problem_id: str, problem_content: str, embedding_mo... class UpdateEmbeddingKnowledgeIdArgs (line 58) | class UpdateEmbeddingKnowledgeIdArgs: method __init__ (line 59) | def __init__(self, paragraph_id_list: List[str], target_knowledge_id: ... class UpdateEmbeddingDocumentIdArgs (line 64) | class UpdateEmbeddingDocumentIdArgs: method __init__ (line 65) | def __init__(self, paragraph_id_list: List[str], target_document_id: s... class ListenerManagement (line 73) | class ListenerManagement: method embedding_by_problem (line 76) | def embedding_by_problem(args, embedding_model: Embeddings): method embedding_by_paragraph_list (line 80) | def embedding_by_paragraph_list(paragraph_id_list, embedding_model: Em... method embedding_by_paragraph_data_list (line 95) | def embedding_by_paragraph_data_list(data_list, paragraph_id_list, emb... method embedding_by_paragraph (line 124) | def embedding_by_paragraph(paragraph_id, embedding_model: Embeddings): method embedding_by_data_list (line 163) | def embedding_by_data_list(data_list: List, embedding_model: Embeddings): method get_embedding_paragraph_apply (line 168) | def get_embedding_paragraph_apply(embedding_model, is_the_task_interru... method get_aggregation_document_status (line 179) | def get_aggregation_document_status(document_id): method get_aggregation_document_status_by_knowledge_id (line 188) | def get_aggregation_document_status_by_knowledge_id(knowledge_id): method get_aggregation_document_status_by_query_set (line 198) | def get_aggregation_document_status_by_query_set(queryset): method post_update_document_status (line 207) | def post_update_document_status(document_id, task_type: TaskType): method update_status (line 231) | def update_status(query_set: QuerySet, taskType: TaskType, state: State): method embedding_by_document (line 254) | def embedding_by_document(document_id, embedding_model: Embeddings, st... method embedding_by_knowledge (line 306) | def embedding_by_knowledge(knowledge_id, embedding_model: Embeddings): method delete_embedding_by_document (line 327) | def delete_embedding_by_document(document_id): method delete_embedding_by_document_list (line 331) | def delete_embedding_by_document_list(document_id_list: List[str]): method delete_embedding_by_knowledge (line 335) | def delete_embedding_by_knowledge(knowledge_id): method delete_embedding_by_paragraph (line 339) | def delete_embedding_by_paragraph(paragraph_id): method delete_embedding_by_source (line 343) | def delete_embedding_by_source(source_id): method disable_embedding_by_paragraph (line 347) | def disable_embedding_by_paragraph(paragraph_id): method enable_embedding_by_paragraph (line 351) | def enable_embedding_by_paragraph(paragraph_id): method update_problem (line 355) | def update_problem(args: UpdateProblemArgs): method update_embedding_knowledge_id (line 362) | def update_embedding_knowledge_id(args: UpdateEmbeddingKnowledgeIdArgs): method update_embedding_document_id (line 367) | def update_embedding_document_id(args: UpdateEmbeddingDocumentIdArgs): method delete_embedding_by_source_ids (line 377) | def delete_embedding_by_source_ids(source_ids: List[str]): method delete_embedding_by_paragraph_ids (line 381) | def delete_embedding_by_paragraph_ids(paragraph_ids: List[str]): method delete_embedding_by_knowledge_id_list (line 385) | def delete_embedding_by_knowledge_id_list(source_ids: List[str]): method hit_test (line 389) | def hit_test(query_text, knowledge_id: list[str], exclude_document_id_... FILE: apps/common/exception/app_exception.py class AppApiException (line 12) | class AppApiException(Exception): method __init__ (line 18) | def __init__(self, code, message): class NotFound404 (line 23) | class NotFound404(AppApiException): method __init__ (line 29) | def __init__(self, code, message): class AppAuthenticationFailed (line 34) | class AppAuthenticationFailed(AppApiException): method __init__ (line 40) | def __init__(self, code, message): class AppUnauthorizedFailed (line 45) | class AppUnauthorizedFailed(AppApiException): method __init__ (line 51) | def __init__(self, code, message): class AppEmbedIdentityFailed (line 56) | class AppEmbedIdentityFailed(AppApiException): method __init__ (line 62) | def __init__(self, code, message): class AppChatNumOutOfBoundsFailed (line 67) | class AppChatNumOutOfBoundsFailed(AppApiException): method __init__ (line 73) | def __init__(self, code, message): class ChatException (line 78) | class ChatException(AppApiException): method __init__ (line 81) | def __init__(self, code, message): FILE: apps/common/exception/handle_exception.py function to_result (line 24) | def to_result(key, args, parent_key=None): function validation_error_to_result (line 47) | def validation_error_to_result(exc: ValidationError): function find_err_detail (line 62) | def find_err_detail(exc_detail): function get_label (line 89) | def get_label(key, exc_detail): function handle_exception (line 96) | def handle_exception(exc, context): FILE: apps/common/field/common.py class ObjectField (line 15) | class ObjectField(serializers.Field): method __init__ (line 16) | def __init__(self, model_type_list, **kwargs): method to_internal_value (line 20) | def to_internal_value(self, data): method to_representation (line 26) | def to_representation(self, value): class InstanceField (line 30) | class InstanceField(serializers.Field): method __init__ (line 31) | def __init__(self, model_type, **kwargs): method to_internal_value (line 35) | def to_internal_value(self, data): method to_representation (line 40) | def to_representation(self, value): class FunctionField (line 44) | class FunctionField(serializers.Field): method to_internal_value (line 46) | def to_internal_value(self, data): method to_representation (line 51) | def to_representation(self, value): class UploadedImageField (line 55) | class UploadedImageField(serializers.ImageField): method __init__ (line 56) | def __init__(self, **kwargs): method to_representation (line 59) | def to_representation(self, value): class UploadedFileField (line 62) | class UploadedFileField(serializers.FileField): method __init__ (line 63) | def __init__(self, **kwargs): method to_representation (line 66) | def to_representation(self, value): FILE: apps/common/forms/array_object_card.py class ArrayCard (line 14) | class ArrayCard(BaseExecField): method __init__ (line 19) | def __init__(self, FILE: apps/common/forms/base_field.py class TriggerType (line 17) | class TriggerType(Enum): class BaseField (line 24) | class BaseField: method __init__ (line 25) | def __init__(self, method is_valid (line 60) | def is_valid(self, value): method to_dict (line 66) | def to_dict(self, **kwargs): class BaseDefaultOptionField (line 81) | class BaseDefaultOptionField(BaseField): method __init__ (line 82) | def __init__(self, input_type: str, method to_dict (line 111) | def to_dict(self, **kwargs): class BaseExecField (line 116) | class BaseExecField(BaseField): method __init__ (line 117) | def __init__(self, method to_dict (line 155) | def to_dict(self, **kwargs): FILE: apps/common/forms/base_form.py class BaseForm (line 14) | class BaseForm: method to_form_list (line 15) | def to_form_list(self, **kwargs): method valid_form (line 20) | def valid_form(self, form_data): method get_default_form_data (line 26) | def get_default_form_data(self): FILE: apps/common/forms/label/base_label.py class BaseLabel (line 11) | class BaseLabel: method __init__ (line 12) | def __init__(self, method to_dict (line 22) | def to_dict(self, **kwargs): FILE: apps/common/forms/label/tooltip_label.py class TooltipLabel (line 12) | class TooltipLabel(BaseLabel): method __init__ (line 13) | def __init__(self, label, tooltip): FILE: apps/common/forms/multi_select.py class MultiSelect (line 14) | class MultiSelect(BaseExecField): method __init__ (line 19) | def __init__(self, method to_dict (line 37) | def to_dict(self): FILE: apps/common/forms/object_card.py class ObjectCard (line 14) | class ObjectCard(BaseExecField): method __init__ (line 19) | def __init__(self, FILE: apps/common/forms/password_input.py class PasswordInputField (line 14) | class PasswordInputField(BaseField): method __init__ (line 19) | def __init__(self, label: str, FILE: apps/common/forms/radio_button_field.py class RadioButton (line 14) | class RadioButton(BaseExecField): method __init__ (line 19) | def __init__(self, method to_dict (line 37) | def to_dict(self): FILE: apps/common/forms/radio_card_field.py class RadioCard (line 14) | class RadioCard(BaseExecField): method __init__ (line 19) | def __init__(self, method to_dict (line 37) | def to_dict(self): FILE: apps/common/forms/radio_field.py class Radio (line 14) | class Radio(BaseExecField): method __init__ (line 19) | def __init__(self, method to_dict (line 37) | def to_dict(self): FILE: apps/common/forms/single_select_field.py class SingleSelect (line 15) | class SingleSelect(BaseExecField): method __init__ (line 20) | def __init__(self, method to_dict (line 38) | def to_dict(self): FILE: apps/common/forms/slider_field.py class SliderField (line 16) | class SliderField(BaseField): method __init__ (line 21) | def __init__(self, label: str or BaseLabel, method is_valid (line 50) | def is_valid(self, value): FILE: apps/common/forms/switch_field.py class SwitchField (line 12) | class SwitchField(BaseField): method __init__ (line 17) | def __init__(self, label: str or BaseLabel, FILE: apps/common/forms/tab_card.py class TabCard (line 14) | class TabCard(BaseExecField): method __init__ (line 19) | def __init__(self, FILE: apps/common/forms/table_checkbox.py class TableRadio (line 14) | class TableRadio(BaseExecField): method __init__ (line 19) | def __init__(self, FILE: apps/common/forms/table_radio.py class TableRadio (line 14) | class TableRadio(BaseExecField): method __init__ (line 19) | def __init__(self, FILE: apps/common/forms/text_input_field.py class TextInputField (line 15) | class TextInputField(BaseField): method __init__ (line 20) | def __init__(self, label: str or BaseLabel, FILE: apps/common/handle/base_parse_qa_handle.py function get_row_value (line 12) | def get_row_value(row, title_row_index_dict, field): function get_title_row_index_dict (line 21) | def get_title_row_index_dict(title_row_list): class BaseParseQAHandle (line 45) | class BaseParseQAHandle(ABC): method support (line 47) | def support(self, file, get_buffer): method handle (line 51) | def handle(self, file, get_buffer, save_image): FILE: apps/common/handle/base_parse_table_handle.py class BaseParseTableHandle (line 12) | class BaseParseTableHandle(ABC): method support (line 14) | def support(self, file, get_buffer): method handle (line 18) | def handle(self, file, get_buffer,save_image): method get_content (line 22) | def get_content(self, file, save_image): FILE: apps/common/handle/base_split_handle.py class BaseSplitHandle (line 13) | class BaseSplitHandle(ABC): method support (line 15) | def support(self, file, get_buffer): method handle (line 19) | def handle(self, file, pattern_list: List, with_filter: bool, limit: i... method get_content (line 23) | def get_content(self, file, save_image): FILE: apps/common/handle/base_to_response.py class BaseToResponse (line 14) | class BaseToResponse(ABC): method to_block_response (line 17) | def to_block_response(self, chat_id, chat_record_id, content, is_end, ... method to_stream_chunk_response (line 23) | def to_stream_chunk_response(self, chat_id, chat_record_id, node_id, u... method format_stream_chunk (line 29) | def format_stream_chunk(response_str): FILE: apps/common/handle/handle_exception.py function to_result (line 23) | def to_result(key, args, parent_key=None): function validation_error_to_result (line 46) | def validation_error_to_result(exc: ValidationError): function find_err_detail (line 61) | def find_err_detail(exc_detail): function handle_exception (line 81) | def handle_exception(exc, context): FILE: apps/common/handle/impl/common_handle.py function parse_element (line 29) | def parse_element(element) -> {}: function parse_element_sheet_xml (line 46) | def parse_element_sheet_xml(element) -> []: function level_order_traversal (line 57) | def level_order_traversal(root, flag: str) -> []: function handle_images (line 71) | def handle_images(deps, archive: ZipFile) -> []: function xlsx_embed_cells_images (line 88) | def xlsx_embed_cells_images(buffer) -> {}: FILE: apps/common/handle/impl/qa/csv_parse_qa_handle.py function read_csv_standard (line 19) | def read_csv_standard(file_path): class CsvParseQAHandle (line 28) | class CsvParseQAHandle(BaseParseQAHandle): method support (line 29) | def support(self, file, get_buffer): method handle (line 35) | def handle(self, file, get_buffer, save_image): FILE: apps/common/handle/impl/qa/md_parse_qa_handle.py class MarkdownParseQAHandle (line 19) | class MarkdownParseQAHandle(BaseParseQAHandle): method support (line 20) | def support(self, file, get_buffer): method parse_markdown_table (line 26) | def parse_markdown_table(self, content): method _unescape_cell_content (line 63) | def _unescape_cell_content(self, cell) -> Any: method handle (line 68) | def handle(self, file, get_buffer, save_image): method split_by_sheets (line 121) | def split_by_sheets(self, content): FILE: apps/common/handle/impl/qa/xls_parse_qa_handle.py function handle_sheet (line 17) | def handle_sheet(file_name, sheet): class XlsParseQAHandle (line 43) | class XlsParseQAHandle(BaseParseQAHandle): method support (line 44) | def support(self, file, get_buffer): method handle (line 51) | def handle(self, file, get_buffer, save_image): FILE: apps/common/handle/impl/qa/xlsx_parse_qa_handle.py function handle_sheet (line 19) | def handle_sheet(file_name, sheet, image_dict): class XlsxParseQAHandle (line 49) | class XlsxParseQAHandle(BaseParseQAHandle): method support (line 50) | def support(self, file, get_buffer): method handle (line 56) | def handle(self, file, get_buffer, save_image): FILE: apps/common/handle/impl/qa/zip_parse_qa_handle.py class FileBufferHandle (line 27) | class FileBufferHandle: method get_buffer (line 30) | def get_buffer(self, file): function file_to_paragraph (line 43) | def file_to_paragraph(file, save_inner_image): function is_valid_uuid (line 59) | def is_valid_uuid(uuid_str: str): function get_image_list (line 72) | def get_image_list(result_list: list, zip_files: List[str]): function filter_image_file (line 112) | def filter_image_file(result_list: list, image_list): class ZipParseQAHandle (line 117) | class ZipParseQAHandle(BaseParseQAHandle): method handle (line 119) | def handle(self, file, get_buffer, save_image): method support (line 156) | def support(self, file, get_buffer): FILE: apps/common/handle/impl/response/loop_to_response.py class LoopToResponse (line 14) | class LoopToResponse(SystemToResponse): method to_stream_chunk_response (line 16) | def to_stream_chunk_response(self, chat_id, chat_record_id, node_id, u... FILE: apps/common/handle/impl/response/openai_to_response.py class OpenaiToResponse (line 22) | class OpenaiToResponse(BaseToResponse): method to_block_response (line 23) | def to_block_response(self, chat_id, chat_record_id, content, is_end, ... method to_stream_chunk_response (line 39) | def to_stream_chunk_response(self, chat_id, chat_record_id, node_id, u... FILE: apps/common/handle/impl/response/system_to_response.py class SystemToResponse (line 17) | class SystemToResponse(BaseToResponse): method to_block_response (line 18) | def to_block_response(self, chat_id, chat_record_id, content, is_end, ... method to_stream_chunk_response (line 29) | def to_stream_chunk_response(self, chat_id, chat_record_id, node_id, u... FILE: apps/common/handle/impl/table/csv_parse_table_handle.py class CsvParseTableHandle (line 12) | class CsvParseTableHandle(BaseParseTableHandle): method support (line 13) | def support(self, file, get_buffer): method handle (line 19) | def handle(self, file, get_buffer, save_image): method get_content (line 39) | def get_content(self, file, save_image): FILE: apps/common/handle/impl/table/xls_parse_table_handle.py class XlsParseTableHandle (line 11) | class XlsParseTableHandle(BaseParseTableHandle): method support (line 12) | def support(self, file, get_buffer): method handle (line 19) | def handle(self, file, get_buffer, save_image): method get_content (line 63) | def get_content(self, file, save_image): FILE: apps/common/handle/impl/table/xlsx_parse_table_handle.py class XlsxParseTableHandle (line 13) | class XlsxParseTableHandle(BaseParseTableHandle): method support (line 14) | def support(self, file, get_buffer): method fill_merged_cells (line 20) | def fill_merged_cells(self, sheet, image_dict): method handle (line 55) | def handle(self, file, get_buffer, save_image): method get_content (line 82) | def get_content(self, file, save_image): FILE: apps/common/handle/impl/text/csv_split_handle.py function post_cell (line 21) | def post_cell(cell_value): function row_to_md (line 25) | def row_to_md(row): class CsvSplitHandle (line 30) | class CsvSplitHandle(BaseSplitHandle): method handle (line 31) | def handle(self, file, pattern_list: List, with_filter: bool, limit: i... method get_content (line 70) | def get_content(self, file, save_image): method support (line 104) | def support(self, file, get_buffer): FILE: apps/common/handle/impl/text/doc_split_handle.py function image_to_mode (line 38) | def image_to_mode(image, doc: Document, images_list, get_image_id): function get_paragraph_element_images (line 52) | def get_paragraph_element_images(paragraph_element, doc: Document, image... function images_to_string (line 67) | def images_to_string(images, doc: Document, images_list, get_image_id): function get_paragraph_element_txt (line 73) | def get_paragraph_element_txt(paragraph_element, doc: Document, images_l... function get_paragraph_txt (line 86) | def get_paragraph_txt(paragraph: Paragraph, doc: Document, images_list, ... function get_cell_text (line 93) | def get_cell_text(cell, doc: Document, images_list, get_image_id): function get_image_id_func (line 102) | def get_image_id_func(): function get_title_level (line 125) | def get_title_level(paragraph: Paragraph): class DocSplitHandle (line 144) | class DocSplitHandle(BaseSplitHandle): method paragraph_to_md (line 146) | def paragraph_to_md(paragraph: Paragraph, doc: Document, images_list, ... method table_to_md (line 166) | def table_to_md(table, doc: Document, images_list, get_image_id): method to_md (line 178) | def to_md(self, doc, images_list, get_image_id): method handle (line 199) | def handle(self, file, pattern_list: List, with_filter: bool, limit: i... method support (line 227) | def support(self, file, get_buffer): method get_content (line 234) | def get_content(self, file, save_image): FILE: apps/common/handle/impl/text/html_split_handle.py function get_encoding (line 29) | def get_encoding(buffer): class HTMLSplitHandle (line 40) | class HTMLSplitHandle(BaseSplitHandle): method support (line 41) | def support(self, file, get_buffer): method handle (line 47) | def handle(self, file, pattern_list: List, with_filter: bool, limit: i... method get_content (line 72) | def get_content(self, file, save_image): FILE: apps/common/handle/impl/text/pdf_split_handle.py function check_links_in_pdf (line 32) | def check_links_in_pdf(doc): class PdfSplitHandle (line 43) | class PdfSplitHandle(BaseSplitHandle): method handle (line 44) | def handle(self, file, pattern_list: List, with_filter: bool, limit: i... method handle_pdf_content (line 92) | def handle_pdf_content(file, pdf_document): method handle_toc (line 150) | def handle_toc(doc, limit): method handle_links (line 212) | def handle_links(doc, pattern_list, with_filter, limit): method handle_chapter_title (line 316) | def handle_chapter_title(title): method support (line 321) | def support(self, file, get_buffer): method get_content (line 327) | def get_content(self, file, save_image): FILE: apps/common/handle/impl/text/text_split_handle.py class TextSplitHandle (line 33) | class TextSplitHandle(BaseSplitHandle): method support (line 34) | def support(self, file, get_buffer): method handle (line 49) | def handle(self, file, pattern_list: List, with_filter: bool, limit: i... method get_content (line 66) | def get_content(self, file, save_image): FILE: apps/common/handle/impl/text/xls_split_handle.py function post_cell (line 18) | def post_cell(cell_value): function row_to_md (line 22) | def row_to_md(row): function handle_sheet (line 27) | def handle_sheet(file_name, sheet, limit: int): class XlsSplitHandle (line 59) | class XlsSplitHandle(BaseSplitHandle): method handle (line 60) | def handle(self, file, pattern_list: List, with_filter: bool, limit: i... method get_content (line 77) | def get_content(self, file, save_image): method support (line 109) | def support(self, file, get_buffer): FILE: apps/common/handle/impl/text/xlsx_split_handle.py function post_cell (line 23) | def post_cell(image_dict, cell_value): function row_to_md (line 30) | def row_to_md(row, image_dict): function handle_sheet (line 36) | def handle_sheet(file_name, sheet, image_dict, limit: int): class XlsxSplitHandle (line 68) | class XlsxSplitHandle(BaseSplitHandle): method fill_merged_cells (line 69) | def fill_merged_cells(self, sheet, image_dict): method handle (line 103) | def handle(self, file, pattern_list: List, with_filter: bool, limit: i... method get_content (line 127) | def get_content(self, file, save_image): method _escape_cell_content (line 166) | def _escape_cell_content(self, cell_value): method support (line 185) | def support(self, file, get_buffer): FILE: apps/common/handle/impl/text/zip_split_handle.py class FileBufferHandle (line 32) | class FileBufferHandle: method get_buffer (line 35) | def get_buffer(self, file): function file_to_paragraph (line 53) | def file_to_paragraph(file, pattern_list: List, with_filter: bool, limit... function is_valid_uuid (line 61) | def is_valid_uuid(uuid_str: str): function get_image_list (line 69) | def get_image_list(result_list: list, zip_files: List[str]): function get_image_list_by_content (line 104) | def get_image_list_by_content(name: str, content: str, zip_files: List[s... function get_file_name (line 135) | def get_file_name(file_name): function filter_image_file (line 144) | def filter_image_file(result_list: list, image_list): class ZipSplitHandle (line 149) | class ZipSplitHandle(BaseSplitHandle): method handle (line 150) | def handle(self, file, pattern_list: List, with_filter: bool, limit: i... method support (line 192) | def support(self, file, get_buffer): method get_content (line 198) | def get_content(self, file, save_image): FILE: apps/common/init/init_doc.py function init_app_doc (line 19) | def init_app_doc(system_urlpatterns): class ChatSpectacularSwaggerView (line 28) | class ChatSpectacularSwaggerView(SpectacularSwaggerView): method _swagger_ui_resource (line 30) | def _swagger_ui_resource(filename): method _swagger_ui_favicon (line 34) | def _swagger_ui_favicon(): function init_chat_doc (line 38) | def init_chat_doc(system_urlpatterns, chat_urlpatterns): function encrypt (line 52) | def encrypt(text): function get_call (line 59) | def get_call(application_urlpatterns, patterns, params, func): function init_doc (line 77) | def init_doc(system_urlpatterns, chat_patterns): FILE: apps/common/init/init_template.py function jinja2_formatter (line 15) | def jinja2_formatter(template: str, /, **kwargs: Any) -> str: function run (line 53) | def run(): FILE: apps/common/job/__init__.py function run (line 14) | def run(): FILE: apps/common/job/clean_chat_job.py function clean_chat_log_job (line 16) | def clean_chat_log_job(): function clean_chat_log_job_lock (line 21) | def clean_chat_log_job_lock(): function clean_method (line 48) | def clean_method(query_conditions, clean_log=True): function run (line 98) | def run(): FILE: apps/common/job/clean_debug_file_job.py function clean_debug_file (line 13) | def clean_debug_file(): function clean_debug_file_lock (line 18) | def clean_debug_file_lock(): function run (line 33) | def run(): FILE: apps/common/job/client_access_num_job.py function client_access_num_reset_job (line 18) | def client_access_num_reset_job(): function client_access_num_reset_job_lock (line 23) | def client_access_num_reset_job_lock(): function run (line 30) | def run(): FILE: apps/common/lock/base_lock.py class BaseLock (line 13) | class BaseLock(ABC): method try_lock (line 15) | def try_lock(self, key, timeout): method un_lock (line 19) | def un_lock(self, key): FILE: apps/common/log/log.py function _get_ip_address (line 13) | def _get_ip_address(request): function _get_user (line 27) | def _get_user(request): function _get_details (line 51) | def _get_details(request): function _get_workspace_id (line 62) | def _get_workspace_id(request, kwargs): function log (line 66) | def log(menu: str, operate, get_user=_get_user, get_ip_address=_get_ip_a... FILE: apps/common/management/commands/celery.py class Command (line 17) | class Command(BaseCommand): method add_arguments (line 20) | def add_arguments(self, parser): method handle (line 25) | def handle(self, *args, **options): FILE: apps/common/management/commands/restart.py class Command (line 4) | class Command(BaseActionCommand): FILE: apps/common/management/commands/services/command.py class Services (line 10) | class Services(TextChoices): method get_service_object_class (line 21) | def get_service_object_class(cls, name): method web_services (line 31) | def web_services(cls): method celery_services (line 35) | def celery_services(cls): method task_services (line 39) | def task_services(cls): method all_services (line 44) | def all_services(cls): method export_services_values (line 48) | def export_services_values(cls): method get_service_objects (line 52) | def get_service_objects(cls, service_names, **kwargs): class Action (line 77) | class Action(TextChoices): class BaseActionCommand (line 84) | class BaseActionCommand(BaseCommand): method __init__ (line 90) | def __init__(self, *args, **kwargs): method add_arguments (line 93) | def add_arguments(self, parser): method initial_util (line 102) | def initial_util(self, *args, **options): method handle (line 117) | def handle(self, *args, **options): method _handle_start (line 123) | def _handle_start(self): method _handle_stop (line 127) | def _handle_stop(self): method _handle_restart (line 130) | def _handle_restart(self): method _handle_status (line 133) | def _handle_status(self): FILE: apps/common/management/commands/services/services/base.py class BaseService (line 11) | class BaseService(object): method __init__ (line 13) | def __init__(self, **kwargs): method cmd (line 24) | def cmd(self): method cwd (line 29) | def cwd(self): method is_running (line 33) | def is_running(self): method show_status (line 43) | def show_status(self): method log_filename (line 57) | def log_filename(self): method log_filepath (line 61) | def log_filepath(self): method log_file (line 65) | def log_file(self): method log_dir (line 69) | def log_dir(self): method pid_filepath (line 75) | def pid_filepath(self): method pid (line 79) | def pid(self): method write_pid (line 89) | def write_pid(self): method remove_pid (line 93) | def remove_pid(self): method process (line 100) | def process(self): method open_subprocess (line 111) | def open_subprocess(self): method start (line 115) | def start(self): method start_other (line 124) | def start_other(self): method stop (line 127) | def stop(self, force=False): method watch (line 155) | def watch(self): method _check (line 161) | def _check(self): method _restart (line 174) | def _restart(self): method _rotate_log (line 183) | def _rotate_log(self): FILE: apps/common/management/commands/services/services/celery_base.py class CeleryBaseService (line 7) | class CeleryBaseService(BaseService): method __init__ (line 9) | def __init__(self, queue, num=10, **kwargs): method cmd (line 15) | def cmd(self): method cwd (line 44) | def cwd(self): FILE: apps/common/management/commands/services/services/celery_default.py class CeleryDefaultService (line 10) | class CeleryDefaultService(CeleryBaseService): method __init__ (line 12) | def __init__(self, **kwargs): method open_subprocess (line 16) | def open_subprocess(self): FILE: apps/common/management/commands/services/services/gunicorn.py class GunicornService (line 9) | class GunicornService(BaseService): method __init__ (line 11) | def __init__(self, **kwargs): method cmd (line 16) | def cmd(self): method cwd (line 41) | def cwd(self): method open_subprocess (line 44) | def open_subprocess(self): FILE: apps/common/management/commands/services/services/local_model.py class GunicornLocalModelService (line 18) | class GunicornLocalModelService(BaseService): method __init__ (line 20) | def __init__(self, **kwargs): method cmd (line 25) | def cmd(self): method cwd (line 50) | def cwd(self): method open_subprocess (line 53) | def open_subprocess(self): FILE: apps/common/management/commands/services/services/scheduler.py class SchedulerService (line 9) | class SchedulerService(BaseService): method __init__ (line 11) | def __init__(self, **kwargs): method cmd (line 16) | def cmd(self): method cwd (line 41) | def cwd(self): method open_subprocess (line 44) | def open_subprocess(self): FILE: apps/common/management/commands/services/utils.py class ServicesUtil (line 11) | class ServicesUtil(object): method __init__ (line 13) | def __init__(self, services, run_daemon=False, force_stop=False, stop_... method restart (line 22) | def restart(self): method start_and_watch (line 27) | def start_and_watch(self): method start (line 38) | def start(self): method stop (line 46) | def stop(self): method watch (line 55) | def watch(self): method _watch (line 67) | def _watch(self): method clean_up (line 77) | def clean_up(self): method show_status (line 82) | def show_status(self): method _stop_daemon (line 88) | def _stop_daemon(self): method remove_daemon_pid (line 93) | def remove_daemon_pid(self): method daemon_pid (line 98) | def daemon_pid(self): method daemon_is_running (line 109) | def daemon_is_running(self): method daemon_pid_filepath (line 118) | def daemon_pid_filepath(self): method daemon_log_filepath (line 122) | def daemon_log_filepath(self): method daemon_context (line 126) | def daemon_context(self): FILE: apps/common/management/commands/start.py class Command (line 4) | class Command(BaseActionCommand): FILE: apps/common/management/commands/status.py class Command (line 4) | class Command(BaseActionCommand): FILE: apps/common/management/commands/stop.py class Command (line 4) | class Command(BaseActionCommand): FILE: apps/common/middleware/chat_headers_middleware.py class ChatHeadersMiddleware (line 15) | class ChatHeadersMiddleware(MiddlewareMixin): method process_response (line 16) | def process_response(self, request, response): FILE: apps/common/middleware/cross_domain_middleware.py class CrossDomainMiddleware (line 15) | class CrossDomainMiddleware(MiddlewareMixin): method process_request (line 17) | def process_request(self, request): method process_response (line 25) | def process_response(self, request, response): FILE: apps/common/middleware/doc_headers_middleware.py class DocHeadersMiddleware (line 116) | class DocHeadersMiddleware(MiddlewareMixin): method process_response (line 117) | def process_response(self, request, response): FILE: apps/common/middleware/gzip.py class GZipMiddleware (line 17) | class GZipMiddleware(MiddlewareMixin): method process_response (line 26) | def process_response(self, request, response): FILE: apps/common/mixins/api_mixin.py class APIMixin (line 11) | class APIMixin: method get_request (line 13) | def get_request(): method get_response (line 17) | def get_response(): method get_parameters (line 21) | def get_parameters(): FILE: apps/common/mixins/app_model_mixin.py class AppModelMixin (line 12) | class AppModelMixin(models.Model): class Meta (line 18) | class Meta: FILE: apps/common/result/api.py class DefaultResultSerializer (line 13) | class DefaultResultSerializer(serializers.Serializer): class ResultSerializer (line 23) | class ResultSerializer(serializers.Serializer): method get_data (line 31) | def get_data(self): method __init__ (line 34) | def __init__(self, **kwargs): class PageDataResponse (line 39) | class PageDataResponse(serializers.Serializer): method __init__ (line 47) | def __init__(self, records, **kwargs): class ResultPageSerializer (line 52) | class ResultPageSerializer(ResultSerializer): method __init__ (line 54) | def __init__(self, **kwargs): FILE: apps/common/result/result.py class Page (line 16) | class Page(dict): method __init__ (line 21) | def __init__(self, total: int, records: List, current_page: int, page_... class Result (line 25) | class Result(JsonResponse): method __init__ (line 31) | def __init__(self, code=200, message=_('Success'), data=None, response... function success (line 36) | def success(data, **kwargs): function error (line 45) | def error(message, **kwargs): FILE: apps/common/utils/cache_util.py function get_data_by_default_cache (line 12) | def get_data_by_default_cache(key: str, get_data, cache_instance=cache, ... function set_data_by_default_cache (line 31) | def set_data_by_default_cache(key: str, get_data, cache_instance=cache, ... function get_cache (line 37) | def get_cache(cache_key, use_get_data: any = True, cache_instance=cache,... function del_cache (line 57) | def del_cache(cache_key, cache_instance=cache, version=None): FILE: apps/common/utils/chat_link_code.py class UUIDEncoder (line 13) | class UUIDEncoder: method encode (line 19) | def encode(uuid_obj: Union[uuid.UUID, str] = None) -> str: method decode (line 38) | def decode(encoded: str) -> uuid.UUID: method decode_to_str (line 47) | def decode_to_str(encoded: str) -> str: FILE: apps/common/utils/common.py function password_encrypt (line 29) | def password_encrypt(row_password): function group_by (line 41) | def group_by(list_source: List, key): function get_random_chars (line 64) | def get_random_chars(number=4): function encryption (line 70) | def encryption(message: str): function _remove_empty_lines (line 92) | def _remove_empty_lines(text): function markdown_to_plain_text (line 101) | def markdown_to_plain_text(md: str) -> str: function get_file_content (line 134) | def get_file_content(path): function sub_array (line 140) | def sub_array(array: List, item_num=10): function bytes_to_uploaded_file (line 153) | def bytes_to_uploaded_file(file_bytes, file_name="file.txt"): function any_to_amr (line 176) | def any_to_amr(any_path, amr_path): function any_to_mp3 (line 191) | def any_to_mp3(any_path, mp3_path): function sil_to_wav (line 206) | def sil_to_wav(silk_path, wav_path, rate: int = 24000): function split_and_transcribe (line 219) | def split_and_transcribe(file_path, model, max_segment_length_ms=59000, ... function query_params_to_single_dict (line 236) | def query_params_to_single_dict(query_params: Dict): function valid_license (line 243) | def valid_license(model=None, count=None, message=None): function post (line 263) | def post(post_function): function parse_md_image (line 274) | def parse_md_image(content: str): function bulk_create_in_batches (line 280) | def bulk_create_in_batches(model, data, batch_size=1000): function get_sha256_hash (line 288) | def get_sha256_hash(_v: str | bytes): class RestrictedUnpickler (line 306) | class RestrictedUnpickler(pickle.Unpickler): method find_class (line 308) | def find_class(self, module, name): function restricted_loads (line 315) | def restricted_loads(s): function flat_map (line 320) | def flat_map(array: List[List]): function parse_image (line 332) | def parse_image(content: str): function generate_uuid (line 338) | def generate_uuid(tag: str): function filter_workspace (line 342) | def filter_workspace(query_list): function filter_special_character (line 346) | def filter_special_character(_str): function is_valid_uuid (line 356) | def is_valid_uuid(uuid_string): FILE: apps/common/utils/fork.py class ChildLink (line 17) | class ChildLink: method __init__ (line 18) | def __init__(self, url, tag): class ForkManage (line 23) | class ForkManage: method __init__ (line 24) | def __init__(self, base_url: str, selector_list: List[str]): method fork (line 28) | def fork(self, level: int, exclude_link_url: Set[str], fork_handler): method fork_child (line 32) | def fork_child(child_link: ChildLink, selector_list: List[str], level:... function remove_fragment (line 49) | def remove_fragment(url: str) -> str: class Fork (line 56) | class Fork: class Response (line 57) | class Response: method __init__ (line 58) | def __init__(self, content: str, child_link_list: List[ChildLink], s... method success (line 65) | def success(html_content: str, child_link_list: List[ChildLink]): method error (line 69) | def error(message: str): method __init__ (line 72) | def __init__(self, base_fork_url: str, selector_list: List[str]): method get_child_link_list (line 94) | def get_child_link_list(self, bf: BeautifulSoup): method get_content_html (line 102) | def get_content_html(self, bf: BeautifulSoup): method reset_url (line 114) | def reset_url(tag, field, base_fork_url): method reset_beautiful_soup (line 127) | def reset_beautiful_soup(self, bf: BeautifulSoup): method get_beautiful_soup (line 144) | def get_beautiful_soup(response): method get_charset_list (line 161) | def get_charset_list(meta_list): method fork (line 173) | def fork(self): function handler (line 196) | def handler(base_url, response: Fork.Response): FILE: apps/common/utils/lock.py class RedisLock (line 17) | class RedisLock(): method __init__ (line 18) | def __init__(self): method try_lock (line 21) | def try_lock(self, key: str, timeout=None): method un_lock (line 35) | def un_lock(self, key: str): function lock (line 52) | def lock(lock_key, timeout=None): FILE: apps/common/utils/logger.py class DailyTimedRotatingFileHandler (line 9) | class DailyTimedRotatingFileHandler(TimedRotatingFileHandler): method rotator (line 10) | def rotator(self, source, dest): method _get_rotate_dest_filename (line 18) | def _get_rotate_dest_filename(source): FILE: apps/common/utils/page_utils.py function page (line 12) | def page(query_set, page_size, handler, is_the_task_interrupted=lambda: ... function page_desc (line 31) | def page_desc(query_set, page_size, handler, is_the_task_interrupted=lam... FILE: apps/common/utils/rsa_util.py function generate (line 28) | def generate(): function get_key_pair (line 42) | def get_key_pair(): function get_key_pair_by_sql (line 55) | def get_key_pair_by_sql(): function encrypt (line 65) | def encrypt(msg, public_key: str | None = None): function decrypt (line 79) | def decrypt(msg, pri_key: str | None = None): function _get_encrypt_cipher (line 95) | def _get_encrypt_cipher(public_key: str): function rsa_long_encrypt (line 100) | def rsa_long_encrypt(message, public_key: str | None = None, length=200): function _get_cipher (line 128) | def _get_cipher(pri_key: str): function rsa_long_decrypt (line 133) | def rsa_long_decrypt(message, pri_key: str | None = None, length=256): FILE: apps/common/utils/shared_resource_auth.py function filter_authorized_ids (line 17) | def filter_authorized_ids(resource_type: str, ids: List[str], workspace_... FILE: apps/common/utils/split_model.py function get_level_block (line 16) | def get_level_block(text, level_content_list, level_content_index, cursor): function to_tree_obj (line 33) | def to_tree_obj(content, state='title'): function remove_special_symbol (line 43) | def remove_special_symbol(str_source: str): function filter_special_symbol (line 52) | def filter_special_symbol(content: dict): function flat (line 62) | def flat(tree_data_list: List[dict], parent_chain: List[dict], result: L... function to_paragraph (line 84) | def to_paragraph(obj: dict): function get_keyword (line 96) | def get_keyword(content: str): function titles_to_paragraph (line 107) | def titles_to_paragraph(list_title: List[dict]): function parse_group_key (line 126) | def parse_group_key(level_list: List[dict]): function to_block_paragraph (line 140) | def to_block_paragraph(tree_data_list: List[dict]): function parse_title_level (line 151) | def parse_title_level(text, content_level_pattern: List, index): function parse_level (line 160) | def parse_level(text, pattern: str): function re_findall (line 174) | def re_findall(pattern, text): function to_flat_obj (line 193) | def to_flat_obj(parent_chain: List[dict], content: str, state: str): function flat_map (line 204) | def flat_map(array: List[List]): function group_by (line 216) | def group_by(list_source: List, key): function result_tree_to_paragraph (line 232) | def result_tree_to_paragraph(result_tree: List[dict], result, parent_cha... function post_handler_paragraph (line 252) | def post_handler_paragraph(content: str, limit: int): function smart_split_paragraph (line 280) | def smart_split_paragraph(content: str, limit: int): function filter_special_char (line 338) | def filter_special_char(content: str): class SplitModel (line 350) | class SplitModel: method __init__ (line 352) | def __init__(self, content_level_pattern, with_filter=True, limit=1000... method parse_to_tree (line 363) | def parse_to_tree(self, text: str, index=0): method parse (line 395) | def parse(self, text: str): method post_reset_paragraph (line 413) | def post_reset_paragraph(self, paragraph: Dict, title_list: List[str]): method sub_title (line 420) | def sub_title(paragraph: Dict): method content_is_null (line 428) | def content_is_null(paragraph: Dict, title_list: List[str]): method filter_title_special_characters (line 440) | def filter_title_special_characters(paragraph: Dict): function get_split_model (line 461) | def get_split_model(filename: str, with_filter: bool = False, limit: int... function to_title_tree_string (line 477) | def to_title_tree_string(result_tree: List): function title_tostring (line 482) | def title_tostring(title_obj): FILE: apps/common/utils/tool_code.py class ToolExecutor (line 39) | class ToolExecutor: method __init__ (line 41) | def __init__(self): method init_sandbox_dir (line 45) | def init_sandbox_dir(): method exec_code (line 92) | def exec_code(self, code_str, keywords, function_name=None): method _generate_mcp_server_code (line 140) | def _generate_mcp_server_code(self, _code, params, name=None, descript... method generate_mcp_server_code (line 245) | def generate_mcp_server_code(self, code_str, params, name, description... method get_tool_mcp_config (line 261) | def get_tool_mcp_config(self, tool, params): method get_app_mcp_config (line 279) | def get_app_mcp_config(self, api_key): method _exec (line 289) | def _exec(self, execute_file): method validate_mcp_transport (line 310) | def validate_mcp_transport(self, code_str): function execution_timer (line 318) | def execution_timer(id=""): FILE: apps/common/utils/ts_vecto_util.py function get_word_list (line 31) | def get_word_list(text: str): function replace_word (line 47) | def replace_word(word_dict, text: str): function get_word_key (line 54) | def get_word_key(text: str, use_word_list): function to_word_dict (line 64) | def to_word_dict(word_list: List, text: str): function get_key_by_word_dict (line 72) | def get_key_by_word_dict(key, word_dict): function to_ts_vector (line 79) | def to_ts_vector(text: str): function to_query (line 85) | def to_query(text: str): FILE: apps/folders/api/folder.py class FolderCreateResponse (line 11) | class FolderCreateResponse(ResultSerializer): method get_data (line 12) | def get_data(self): class FolderCreateAPI (line 16) | class FolderCreateAPI(APIMixin): method get_parameters (line 18) | def get_parameters(): method get_request (line 38) | def get_request(): method get_response (line 42) | def get_response(): class FolderReadAPI (line 46) | class FolderReadAPI(APIMixin): method get_parameters (line 48) | def get_parameters(): method get_response (line 75) | def get_response(): class FolderEditAPI (line 79) | class FolderEditAPI(FolderReadAPI): method get_request (line 82) | def get_request(): class FolderDeleteAPI (line 86) | class FolderDeleteAPI(FolderReadAPI): method get_response (line 88) | def get_response(): class FolderTreeReadAPI (line 92) | class FolderTreeReadAPI(APIMixin): method get_parameters (line 94) | def get_parameters(): FILE: apps/folders/models/folder.py class FolderCreateRequest (line 5) | class FolderCreateRequest(serializers.Serializer): class FolderEditRequest (line 16) | class FolderEditRequest(serializers.Serializer): FILE: apps/folders/serializers/folder.py function has_exact_permission_by_role (line 28) | def has_exact_permission_by_role(user_id: str, workspace_id: str, permis... function get_source_type (line 42) | def get_source_type(source): function get_folder_type (line 53) | def get_folder_type(source): function get_folder_tree_serializer (line 64) | def get_folder_tree_serializer(source): function check_depth (line 78) | def check_depth(source, parent_id, workspace_id, current_depth=0): function get_max_depth (line 100) | def get_max_depth(current_node): function has_target_permission (line 118) | def has_target_permission(workspace_id, source, user_id, target): class FolderSerializer (line 124) | class FolderSerializer(serializers.Serializer): class Create (line 132) | class Create(serializers.Serializer): method insert (line 137) | def insert(self, instance, with_valid=True): class Operate (line 174) | class Operate(serializers.Serializer): method edit (line 181) | def edit(self, instance): method one (line 231) | def one(self): method delete (line 238) | def delete(self): method delete_source (line 279) | def delete_source(self, node): class FolderTreeSerializer (line 304) | class FolderTreeSerializer(serializers.Serializer): method _check_tree_integrity (line 309) | def _check_tree_integrity(queryset): method _having_read_permission_by_role (line 319) | def _having_read_permission_by_role(user_id: str, workspace_id: str, s... method get_folder_tree (line 333) | def get_folder_tree(self, FILE: apps/folders/views/folder.py function get_folder_operation_object (line 17) | def get_folder_operation_object(folder_id, source): class FolderView (line 27) | class FolderView(APIView): method post (line 58) | def post(self, request: Request, workspace_id: str, source: str): method get (line 83) | def get(self, request: Request, workspace_id: str, source: str): class Operate (line 88) | class Operate(APIView): method put (line 119) | def put(self, request: Request, workspace_id: str, source: str, fold... method get (line 139) | def get(self, request: Request, workspace_id: str, source: str, fold... method delete (line 171) | def delete(self, request: Request, workspace_id: str, source: str, f... FILE: apps/knowledge/api/document.py class DocumentSplitAPI (line 12) | class DocumentSplitAPI(APIMixin): method get_parameters (line 14) | def get_parameters(): method get_request (line 26) | def get_request(): class DocumentBatchAPI (line 52) | class DocumentBatchAPI(APIMixin): method get_parameters (line 54) | def get_parameters(): method get_request (line 73) | def get_request(): method get_response (line 77) | def get_response(): class DocumentBatchCreateAPI (line 81) | class DocumentBatchCreateAPI(APIMixin): method get_parameters (line 83) | def get_parameters(): method get_request (line 102) | def get_request(): method get_response (line 106) | def get_response(): class DocumentCreateAPI (line 110) | class DocumentCreateAPI(APIMixin): method get_parameters (line 112) | def get_parameters(): method get_request (line 131) | def get_request(): method get_response (line 135) | def get_response(): class DocumentReadAPI (line 139) | class DocumentReadAPI(APIMixin): method get_parameters (line 141) | def get_parameters(): method get_response (line 167) | def get_response(): class DocumentEditAPI (line 171) | class DocumentEditAPI(DocumentReadAPI): method get_request (line 173) | def get_request(): class DocumentDeleteAPI (line 177) | class DocumentDeleteAPI(DocumentReadAPI): class TableDocumentCreateAPI (line 181) | class TableDocumentCreateAPI(APIMixin): method get_parameters (line 183) | def get_parameters(): method get_request (line 203) | def get_request(): method get_response (line 217) | def get_response(): class QaDocumentCreateAPI (line 221) | class QaDocumentCreateAPI(TableDocumentCreateAPI): class WebDocumentCreateAPI (line 225) | class WebDocumentCreateAPI(APIMixin): method get_request (line 227) | def get_request(): class CancelTaskAPI (line 231) | class CancelTaskAPI(DocumentReadAPI): method get_request (line 233) | def get_request(): class BatchCancelTaskAPI (line 237) | class BatchCancelTaskAPI(DocumentReadAPI): method get_request (line 239) | def get_request(): class SyncWebAPI (line 243) | class SyncWebAPI(DocumentReadAPI): class RefreshAPI (line 247) | class RefreshAPI(DocumentReadAPI): method get_request (line 249) | def get_request(): class BatchEditHitHandlingAPI (line 253) | class BatchEditHitHandlingAPI(APIMixin): method get_parameters (line 255) | def get_parameters(): method get_request (line 274) | def get_request(): class DocumentTreeReadAPI (line 278) | class DocumentTreeReadAPI(APIMixin): method get_parameters (line 280) | def get_parameters(): class DocumentSplitPatternAPI (line 327) | class DocumentSplitPatternAPI(APIMixin): method get_parameters (line 329) | def get_parameters(): method get_response (line 348) | def get_response(): class BatchRefreshAPI (line 352) | class BatchRefreshAPI(APIMixin): method get_parameters (line 354) | def get_parameters(): method get_request (line 373) | def get_request(): class BatchGenerateRelatedAPI (line 377) | class BatchGenerateRelatedAPI(APIMixin): method get_parameters (line 379) | def get_parameters(): method get_request (line 398) | def get_request(): class TemplateExportAPI (line 402) | class TemplateExportAPI(APIMixin): method get_parameters (line 404) | def get_parameters(): method get_response (line 430) | def get_response(): class DocumentExportAPI (line 434) | class DocumentExportAPI(APIMixin): method get_parameters (line 436) | def get_parameters(): method get_response (line 462) | def get_response(): class DocumentMigrateAPI (line 466) | class DocumentMigrateAPI(APIMixin): method get_parameters (line 468) | def get_parameters(): method get_request (line 494) | def get_request(): class DocumentDownloadSourceAPI (line 498) | class DocumentDownloadSourceAPI(APIMixin): method get_parameters (line 500) | def get_parameters(): method get_response (line 526) | def get_response(): class DocumentTagsAPI (line 530) | class DocumentTagsAPI(APIMixin): method get_parameters (line 532) | def get_parameters(): method get_request (line 558) | def get_request(): method get_response (line 562) | def get_response(): FILE: apps/knowledge/api/file.py class FileUploadAPI (line 8) | class FileUploadAPI(APIMixin): method get_request (line 11) | def get_request(): method get_response (line 35) | def get_response(): class FileGetAPI (line 39) | class FileGetAPI(APIMixin): method get_parameters (line 41) | def get_parameters(): method get_response (line 53) | def get_response(): FILE: apps/knowledge/api/knowledge.py class KnowledgeCreateResponse (line 11) | class KnowledgeCreateResponse(ResultSerializer): method get_data (line 12) | def get_data(self): class KnowledgeReadAPI (line 16) | class KnowledgeReadAPI(APIMixin): method get_parameters (line 18) | def get_parameters(): method get_response (line 37) | def get_response(): class KnowledgeBaseCreateAPI (line 41) | class KnowledgeBaseCreateAPI(APIMixin): method get_parameters (line 43) | def get_parameters(): method get_request (line 55) | def get_request(): method get_response (line 59) | def get_response(): class KnowledgeWebCreateAPI (line 63) | class KnowledgeWebCreateAPI(APIMixin): method get_parameters (line 65) | def get_parameters(): method get_request (line 77) | def get_request(): method get_response (line 81) | def get_response(): class KnowledgeEditAPI (line 85) | class KnowledgeEditAPI(APIMixin): method get_parameters (line 87) | def get_parameters(): method get_request (line 106) | def get_request(): method get_response (line 110) | def get_response(): class KnowledgeTreeReadAPI (line 114) | class KnowledgeTreeReadAPI(KnowledgeReadAPI): method get_parameters (line 116) | def get_parameters(): class KnowledgePageAPI (line 156) | class KnowledgePageAPI(KnowledgeReadAPI): method get_parameters (line 158) | def get_parameters(): class SyncWebAPI (line 205) | class SyncWebAPI(APIMixin): method get_parameters (line 207) | def get_parameters(): method get_response (line 226) | def get_response(): class GenerateRelatedAPI (line 230) | class GenerateRelatedAPI(SyncWebAPI): method get_request (line 232) | def get_request(): class HitTestAPI (line 236) | class HitTestAPI(SyncWebAPI): method get_request (line 238) | def get_request(): class EmbeddingAPI (line 242) | class EmbeddingAPI(SyncWebAPI): class GetModelAPI (line 246) | class GetModelAPI(SyncWebAPI): method get_parameters (line 248) | def get_parameters(): method get_response (line 260) | def get_response(): class KnowledgeExportAPI (line 263) | class KnowledgeExportAPI(APIMixin): method get_parameters (line 265) | def get_parameters(): method get_response (line 284) | def get_response(): FILE: apps/knowledge/api/knowledge_version.py class KnowledgeListVersionResult (line 17) | class KnowledgeListVersionResult(ResultSerializer): method get_data (line 18) | def get_data(self): class KnowledgePageVersionResult (line 22) | class KnowledgePageVersionResult(ResultPageSerializer): method get_data (line 23) | def get_data(self): class KnowledgeWorkflowVersionResult (line 27) | class KnowledgeWorkflowVersionResult(ResultSerializer): method get_data (line 28) | def get_data(self): class KnowledgeVersionAPI (line 32) | class KnowledgeVersionAPI(APIMixin): method get_parameters (line 34) | def get_parameters(): class KnowledgeVersionOperateAPI (line 53) | class KnowledgeVersionOperateAPI(APIMixin): method get_parameters (line 55) | def get_parameters(): method get_response (line 68) | def get_response(): class KnowledgeVersionListAPI (line 72) | class KnowledgeVersionListAPI(APIMixin): method get_parameters (line 74) | def get_parameters(): method get_response (line 85) | def get_response(): class KnowledgeVersionPageAPI (line 89) | class KnowledgeVersionPageAPI(APIMixin): method get_parameters (line 91) | def get_parameters(): method get_response (line 95) | def get_response(): FILE: apps/knowledge/api/knowledge_workflow.py class KnowledgeWorkflowApi (line 12) | class KnowledgeWorkflowApi(APIMixin): class KnowledgeWorkflowVersionApi (line 16) | class KnowledgeWorkflowVersionApi(APIMixin): class KnowledgeWorkflowActionPageApi (line 20) | class KnowledgeWorkflowActionPageApi(APIMixin): method get_request (line 22) | def get_request(): class KnowledgeWorkflowActionApi (line 26) | class KnowledgeWorkflowActionApi(APIMixin): method get_request (line 28) | def get_request(): method get_parameters (line 32) | def get_parameters(): class Operate (line 50) | class Operate(APIMixin): method get_parameters (line 52) | def get_parameters(): class KnowledgeWorkflowExportApi (line 77) | class KnowledgeWorkflowExportApi(APIMixin): method get_parameters (line 79) | def get_parameters(): method get_response (line 97) | def get_response(): class KnowledgeWorkflowImportApi (line 100) | class KnowledgeWorkflowImportApi(APIMixin): method get_parameters (line 102) | def get_parameters(): method get_request (line 106) | def get_request(): method get_response (line 110) | def get_response(): FILE: apps/knowledge/api/paragraph.py class ParagraphReadResponse (line 11) | class ParagraphReadResponse(ResultSerializer): method get_data (line 13) | def get_data(): class ParagraphReadAPI (line 17) | class ParagraphReadAPI(APIMixin): method get_parameters (line 19) | def get_parameters(): method get_response (line 59) | def get_response(): class ParagraphCreateAPI (line 63) | class ParagraphCreateAPI(APIMixin): method get_parameters (line 65) | def get_parameters(): method get_request (line 91) | def get_request(): method get_response (line 95) | def get_response(): class ParagraphBatchDeleteAPI (line 99) | class ParagraphBatchDeleteAPI(ParagraphCreateAPI): method get_request (line 101) | def get_request(): method get_response (line 105) | def get_response(): class ParagraphBatchGenerateRelatedAPI (line 109) | class ParagraphBatchGenerateRelatedAPI(ParagraphCreateAPI): method get_request (line 111) | def get_request(): method get_response (line 115) | def get_response(): class ParagraphGetAPI (line 119) | class ParagraphGetAPI(APIMixin): method get_parameters (line 121) | def get_parameters(): class ParagraphEditAPI (line 154) | class ParagraphEditAPI(ParagraphGetAPI): method get_request (line 157) | def get_request(): method get_response (line 161) | def get_response(): class ProblemCreateAPI (line 165) | class ProblemCreateAPI(ParagraphGetAPI): method get_request (line 167) | def get_request(): method get_response (line 171) | def get_response(): class UnAssociationAPI (line 175) | class UnAssociationAPI(APIMixin): method get_parameters (line 177) | def get_parameters(): class AssociationAPI (line 217) | class AssociationAPI(UnAssociationAPI): class ParagraphPageAPI (line 221) | class ParagraphPageAPI(APIMixin): method get_parameters (line 223) | def get_parameters(): class ParagraphMigrateAPI (line 270) | class ParagraphMigrateAPI(APIMixin): method get_parameters (line 272) | def get_parameters(): method get_request (line 312) | def get_request(): class ParagraphAdjustOrderAPI (line 316) | class ParagraphAdjustOrderAPI(APIMixin): method get_parameters (line 318) | def get_parameters(): method get_response (line 358) | def get_response(): FILE: apps/knowledge/api/problem.py class ProblemReadAPI (line 11) | class ProblemReadAPI(APIMixin): method get_parameters (line 13) | def get_parameters(): method get_response (line 32) | def get_response(): class ProblemBatchCreateAPI (line 36) | class ProblemBatchCreateAPI(ProblemReadAPI): method get_request (line 38) | def get_request(): class BatchAssociationAPI (line 43) | class BatchAssociationAPI(ProblemReadAPI): method get_request (line 45) | def get_request(): class BatchDeleteAPI (line 49) | class BatchDeleteAPI(ProblemReadAPI): method get_request (line 51) | def get_request(): class ProblemPageAPI (line 56) | class ProblemPageAPI(APIMixin): method get_parameters (line 58) | def get_parameters(): method get_response (line 91) | def get_response(): class ProblemDeleteAPI (line 95) | class ProblemDeleteAPI(APIMixin): method get_parameters (line 97) | def get_parameters(): method get_response (line 123) | def get_response(): class ProblemEditAPI (line 127) | class ProblemEditAPI(ProblemDeleteAPI): method get_request (line 129) | def get_request(): class ProblemParagraphAPI (line 133) | class ProblemParagraphAPI(ProblemDeleteAPI): FILE: apps/knowledge/api/tag.py class TagCreateAPI (line 10) | class TagCreateAPI(APIMixin): method get_parameters (line 12) | def get_parameters(): method get_request (line 31) | def get_request(): method get_response (line 35) | def get_response(): class TagDeleteAPI (line 39) | class TagDeleteAPI(APIMixin): method get_parameters (line 41) | def get_parameters(): method get_request (line 67) | def get_request(): method get_response (line 71) | def get_response(): class DocsTagDeleteAPI (line 75) | class DocsTagDeleteAPI(APIMixin): method get_parameters (line 77) | def get_parameters(): method get_request (line 103) | def get_request(): method get_response (line 107) | def get_response(): class TagEditAPI (line 111) | class TagEditAPI(APIMixin): method get_parameters (line 113) | def get_parameters(): method get_request (line 139) | def get_request(): method get_response (line 143) | def get_response(): FILE: apps/knowledge/apps.py class KnowledgeConfig (line 4) | class KnowledgeConfig(AppConfig): FILE: apps/knowledge/migrations/0001_initial.py function insert_default_data (line 13) | def insert_default_data(apps, schema_editor): class Migration (line 18) | class Migration(migrations.Migration): FILE: apps/knowledge/migrations/0002_alter_file_source_type.py function add_allow_download_to_existing_documents (line 8) | def add_allow_download_to_existing_documents(apps, schema_editor): class Migration (line 28) | class Migration(migrations.Migration): FILE: apps/knowledge/migrations/0003_tag_documenttag.py class Migration (line 8) | class Migration(migrations.Migration): FILE: apps/knowledge/migrations/0004_alter_document_type_alter_knowledge_type_and_more.py class Migration (line 8) | class Migration(migrations.Migration): FILE: apps/knowledge/migrations/0005_knowledgeaction.py class Migration (line 9) | class Migration(migrations.Migration): FILE: apps/knowledge/migrations/0006_paragraph_chunks.py class Migration (line 7) | class Migration(migrations.Migration): FILE: apps/knowledge/migrations/0007_remove_knowledgeworkflowversion_workflow_and_more.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/knowledge/models/knowledge.py class KnowledgeType (line 22) | class KnowledgeType(models.IntegerChoices): class TaskType (line 30) | class TaskType(Enum): class State (line 39) | class State(Enum): class KnowledgeScope (line 56) | class KnowledgeScope(models.TextChoices): class HitHandlingMethod (line 61) | class HitHandlingMethod(models.TextChoices): class Status (line 66) | class Status: method __init__ (line 70) | def __init__(self, status: str = None): method of (line 79) | def of(status: str): method __str__ (line 82) | def __str__(self): method __setitem__ (line 88) | def __setitem__(self, key, value): method __getitem__ (line 91) | def __getitem__(self, item): method update_status (line 94) | def update_status(self, task_type: TaskType, state: State): function default_status_meta (line 98) | def default_status_meta(): class KnowledgeFolder (line 102) | class KnowledgeFolder(MPTTModel, AppModelMixin): class Meta (line 110) | class Meta: class MPTTMeta (line 113) | class MPTTMeta: class Knowledge (line 117) | class Knowledge(AppModelMixin): class Meta (line 136) | class Meta: class KnowledgeWorkflow (line 140) | class KnowledgeWorkflow(AppModelMixin): class Meta (line 152) | class Meta: class KnowledgeWorkflowVersion (line 156) | class KnowledgeWorkflowVersion(AppModelMixin): class Meta (line 168) | class Meta: function get_default_status (line 172) | def get_default_status(): class Document (line 176) | class Document(AppModelMixin): class Meta (line 196) | class Meta: class Tag (line 200) | class Tag(AppModelMixin): class Meta (line 209) | class Meta: class DocumentTag (line 217) | class DocumentTag(AppModelMixin): class Meta (line 225) | class Meta: class Paragraph (line 230) | class Paragraph(AppModelMixin): class Meta (line 246) | class Meta: class Problem (line 250) | class Problem(AppModelMixin): class Meta (line 259) | class Meta: class ProblemParagraphMapping (line 263) | class ProblemParagraphMapping(AppModelMixin): class Meta (line 270) | class Meta: class SourceType (line 274) | class SourceType(models.IntegerChoices): class SearchMode (line 281) | class SearchMode(models.TextChoices): class FileSourceType (line 287) | class FileSourceType(models.TextChoices): class VectorField (line 307) | class VectorField(models.Field): method db_type (line 308) | def db_type(self, connection): class Embedding (line 312) | class Embedding(models.Model): class Meta (line 325) | class Meta: class File (line 329) | class File(AppModelMixin): class Meta (line 341) | class Meta: method save (line 344) | def save(self, bytea=None, force_insert=False, force_update=False, usi... method _compress_data (line 365) | def _compress_data(self, data, compression_level=9): method _create_large_object (line 375) | def _create_large_object(self): method _write_compressed_data (line 379) | def _write_compressed_data(self, data, block_size=64 * 1024): method get_bytes (line 394) | def get_bytes(self): method get_bytes_stream (line 408) | def get_bytes_stream(self, start=0, end=None, chunk_size=64 * 1024): function on_delete_file (line 430) | def on_delete_file(sender, instance, **kwargs): FILE: apps/knowledge/models/knowledge_action.py class State (line 18) | class State(models.TextChoices): class KnowledgeAction (line 33) | class KnowledgeAction(AppModelMixin): class Meta (line 48) | class Meta: FILE: apps/knowledge/serializers/common.py class MetaSerializer (line 34) | class MetaSerializer(serializers.Serializer): class WebMeta (line 35) | class WebMeta(serializers.Serializer): method is_valid (line 39) | def is_valid(self, *, raise_exception=False): class BaseMeta (line 46) | class BaseMeta(serializers.Serializer): method is_valid (line 47) | def is_valid(self, *, raise_exception=False): class BatchSerializer (line 51) | class BatchSerializer(serializers.Serializer): method is_valid (line 54) | def is_valid(self, *, model=None, raise_exception=False): class ProblemParagraphObject (line 66) | class ProblemParagraphObject: method __init__ (line 67) | def __init__(self, knowledge_id: str, document_id: str, paragraph_id: ... class GenerateRelatedSerializer (line 74) | class GenerateRelatedSerializer(serializers.Serializer): class ProblemParagraphManage (line 81) | class ProblemParagraphManage: method __init__ (line 82) | def __init__(self, problem_paragraph_object_list: List[ProblemParagrap... method to_problem_model_list (line 86) | def to_problem_model_list(self): function get_embedding_model_by_knowledge_id_list (line 118) | def get_embedding_model_by_knowledge_id_list(knowledge_id_list: List): function get_embedding_model_by_knowledge_id (line 133) | def get_embedding_model_by_knowledge_id(knowledge_id: str): function get_embedding_model_by_knowledge (line 142) | def get_embedding_model_by_knowledge(knowledge): function get_embedding_model_id_by_knowledge_id (line 149) | def get_embedding_model_id_by_knowledge_id(knowledge_id): function get_embedding_model_id_by_knowledge_id_list (line 154) | def get_embedding_model_id_by_knowledge_id_list(knowledge_id_list: List): function zip_dir (line 163) | def zip_dir(zip_path, output=None): function is_valid_uuid (line 173) | def is_valid_uuid(s): function write_image (line 181) | def write_image(zip_path: str, image_list: List[str]): function update_document_char_length (line 202) | def update_document_char_length(document_id: str): function list_paragraph (line 208) | def list_paragraph(paragraph_list: List[str]): function or_get (line 215) | def or_get(exists_problem_list, content, knowledge_id, document_id, para... function get_knowledge_operation_object (line 228) | def get_knowledge_operation_object(knowledge_id: str): function create_knowledge_index (line 241) | def create_knowledge_index(knowledge_id=None, document_id=None): function drop_knowledge_index (line 266) | def drop_knowledge_index(knowledge_id=None, document_id=None): function update_resource_mapping_by_knowledge (line 284) | def update_resource_mapping_by_knowledge(knowledge_id: str): FILE: apps/knowledge/serializers/document.py function convert_uuid_to_str (line 84) | def convert_uuid_to_str(obj): class BatchCancelInstanceSerializer (line 95) | class BatchCancelInstanceSerializer(serializers.Serializer): method is_valid (line 99) | def is_valid(self, *, raise_exception=False): class DocumentInstanceSerializer (line 108) | class DocumentInstanceSerializer(serializers.Serializer): class CancelInstanceSerializer (line 115) | class CancelInstanceSerializer(serializers.Serializer): method is_valid (line 118) | def is_valid(self, *, raise_exception=False): class DocumentEditInstanceSerializer (line 127) | class DocumentEditInstanceSerializer(serializers.Serializer): method get_meta_valid_map (line 143) | def get_meta_valid_map(): method is_valid (line 150) | def is_valid(self, *, document: Document = None): class DocumentSplitRequest (line 159) | class DocumentSplitRequest(serializers.Serializer): class DocumentWebInstanceSerializer (line 170) | class DocumentWebInstanceSerializer(serializers.Serializer): class DocumentInstanceQASerializer (line 176) | class DocumentInstanceQASerializer(serializers.Serializer): class DocumentInstanceTableSerializer (line 181) | class DocumentInstanceTableSerializer(serializers.Serializer): class DocumentRefreshSerializer (line 186) | class DocumentRefreshSerializer(serializers.Serializer): class DocumentBatchRefreshSerializer (line 190) | class DocumentBatchRefreshSerializer(serializers.Serializer): class DocumentBatchGenerateRelatedSerializer (line 195) | class DocumentBatchGenerateRelatedSerializer(serializers.Serializer): class DocumentMigrateSerializer (line 202) | class DocumentMigrateSerializer(serializers.Serializer): class BatchEditHitHandlingSerializer (line 206) | class BatchEditHitHandlingSerializer(serializers.Serializer): method is_valid (line 212) | def is_valid(self, *, raise_exception=False): class DocumentSerializers (line 218) | class DocumentSerializers(serializers.Serializer): class Export (line 219) | class Export(serializers.Serializer): method export (line 226) | def export(self, with_valid=True): method table_export (line 249) | def table_export(self, with_valid=True): class Migrate (line 273) | class Migrate(serializers.Serializer): method is_valid (line 280) | def is_valid(self, *, raise_exception=False): method migrate (line 295) | def migrate(self, with_valid=True): method get_target_knowledge_problem (line 359) | def get_target_knowledge_problem(target_knowledge_id: str, class Query (line 380) | class Query(serializers.Serializer): method get_query_set (line 400) | def get_query_set(self): method list (line 463) | def list(self): method page (line 469) | def page(self, current_page, page_size): class Sync (line 475) | class Sync(serializers.Serializer): method is_valid (line 480) | def is_valid(self, *, raise_exception=False): method sync (line 496) | def sync(self, with_valid=True, with_embedding=True): class Operate (line 575) | class Operate(serializers.Serializer): method is_valid (line 580) | def is_valid(self, *, raise_exception=False): method export (line 592) | def export(self, with_valid=True): method export_zip (line 615) | def export_zip(self, with_valid=True): method download_source_file (line 648) | def download_source_file(self): method one (line 655) | def one(self, with_valid=False): method edit (line 665) | def edit(self, instance: Dict, with_valid=False): method cancel (line 678) | def cancel(self, instance, with_valid=True): method delete (line 711) | def delete(self): method refresh (line 732) | def refresh(self, state_list=None, with_valid=True): method get_workbook (line 765) | def get_workbook(data_dict, document_dict): method merge_problem (line 793) | def merge_problem(paragraph_list: List[Dict], problem_mapping_list: ... method reset_document_name (line 829) | def reset_document_name(document_name): class Create (line 836) | class Create(serializers.Serializer): method is_valid (line 840) | def is_valid(self, *, raise_exception=False): method post_embedding (line 847) | def post_embedding(result, document_id, knowledge_id): method save (line 854) | def save(self, instance: Dict, with_valid=True, **kwargs): method get_paragraph_model (line 888) | def get_paragraph_model(document_model, paragraph_list: List): method get_document_paragraph_model (line 912) | def get_document_paragraph_model(knowledge_id, instance: Dict): method save_web (line 935) | def save_web(self, instance: Dict, with_valid=True): method save_qa (line 944) | def save_qa(self, instance: Dict, with_valid=True): method save_table (line 954) | def save_table(self, instance: Dict, with_valid=True): method parse_qa_file (line 964) | def parse_qa_file(self, file): method parse_table_file (line 986) | def parse_table_file(self, file): method save_image (line 1008) | def save_image(self, image_list): class Split (line 1022) | class Split(serializers.Serializer): method is_valid (line 1026) | def is_valid(self, *, instance=None, raise_exception=True): method parse (line 1042) | def parse(self, instance): method save_image (line 1058) | def save_image(self, image_list): method file_to_paragraph (line 1072) | def file_to_paragraph(self, file, pattern_list: List, with_filter: b... class SplitPattern (line 1103) | class SplitPattern(serializers.Serializer): method list (line 1108) | def list(): class Batch (line 1123) | class Batch(serializers.Serializer): method is_valid (line 1127) | def is_valid(self, *, raise_exception=False): method link_file (line 1137) | def link_file(source_file_id, document_id): method post_embedding (line 1159) | def post_embedding(document_list, knowledge_id, workspace_id): method batch_save (line 1170) | def batch_save(self, instance_list: List[Dict], with_valid=True): method batch_sync (line 1229) | def batch_sync(self, instance: Dict, with_valid=True): method batch_delete (line 1247) | def batch_delete(self, instance: Dict, with_valid=True): method batch_cancel (line 1266) | def batch_cancel(self, instance: Dict, with_valid=True): method batch_edit_hit_handling (line 1296) | def batch_edit_hit_handling(self, instance: Dict, with_valid=True): method batch_refresh (line 1326) | def batch_refresh(self, instance: Dict, with_valid=True): method batch_add_tag (line 1339) | def batch_add_tag(self, instance: Dict, with_valid=True): method batch_export (line 1370) | def batch_export(self, instance: Dict, with_valid=True): method batch_export_zip (line 1395) | def batch_export_zip(self, instance: Dict, with_valid=True): class BatchGenerateRelated (line 1430) | class BatchGenerateRelated(serializers.Serializer): method is_valid (line 1434) | def is_valid(self, *, raise_exception=False): method batch_generate_related (line 1443) | def batch_generate_related(self, instance: Dict, with_valid=True): class Tags (line 1478) | class Tags(serializers.Serializer): method is_valid (line 1484) | def is_valid(self, *, raise_exception=False): method list (line 1498) | def list(self): class AddTags (line 1543) | class AddTags(serializers.Serializer): method is_valid (line 1551) | def is_valid(self, *, raise_exception=False): method add_tags (line 1565) | def add_tags(self): class DeleteTags (line 1584) | class DeleteTags(serializers.Serializer): method is_valid (line 1592) | def is_valid(self, *, raise_exception=False): method delete_tags (line 1606) | def delete_tags(self): class DeleteDocsTag (line 1615) | class DeleteDocsTag(serializers.Serializer): method is_valid (line 1620) | def is_valid(self, *, raise_exception=False): method batch_delete_docs_tag (line 1634) | def batch_delete_docs_tag(self, instance, with_valid=True): class ReplaceSourceFile (line 1650) | class ReplaceSourceFile(serializers.Serializer): method is_valid (line 1656) | def is_valid(self, *, raise_exception=False): method replace (line 1671) | def replace(self): class FileBufferHandle (line 1722) | class FileBufferHandle: method get_buffer (line 1725) | def get_buffer(self, file): FILE: apps/knowledge/serializers/knowledge.py class KnowledgeModelSerializer (line 54) | class KnowledgeModelSerializer(serializers.ModelSerializer): class Meta (line 55) | class Meta: class KnowledgeBaseCreateRequest (line 61) | class KnowledgeBaseCreateRequest(serializers.Serializer): class KnowledgeWebCreateRequest (line 68) | class KnowledgeWebCreateRequest(serializers.Serializer): class KnowledgeEditRequest (line 77) | class KnowledgeEditRequest(serializers.Serializer): method get_knowledge_meta_valid_map (line 90) | def get_knowledge_meta_valid_map(): method is_valid (line 97) | def is_valid(self, *, knowledge: Knowledge = None): class HitTestSerializer (line 105) | class HitTestSerializer(serializers.Serializer): class KnowledgeSerializer (line 115) | class KnowledgeSerializer(serializers.Serializer): class Query (line 116) | class Query(serializers.Serializer): method is_x_pack_ee (line 128) | def is_x_pack_ee(): method get_query_set (line 133) | def get_query_set(self, workspace_manage, is_x_pack_ee): method page (line 182) | def page(self, current_page: int, page_size: int): method list (line 208) | def list(self): class Operate (line 232) | class Operate(serializers.Serializer): method is_valid (line 237) | def is_valid(self, *, raise_exception=False): method embedding (line 247) | def embedding(self, with_valid=True): method generate_related (line 273) | def generate_related(self, instance: Dict, with_valid=True): method list_application (line 303) | def list_application(self, with_valid=True): method is_x_pack_ee (line 317) | def is_x_pack_ee(): method one (line 322) | def one(self): method edit (line 378) | def edit(self, instance: Dict, select_one=True): method delete (line 403) | def delete(self): method export_excel (line 422) | def export_excel(self, with_valid=True): method export_zip (line 446) | def export_zip(self, with_valid=True): method merge_problem (line 481) | def merge_problem(paragraph_list: List[Dict], problem_mapping_list: ... class Create (line 506) | class Create(serializers.Serializer): method post_embedding_knowledge (line 513) | def post_embedding_knowledge(document_list, knowledge_id): method save_base (line 520) | def save_base(self, instance, with_valid=True): method save_web (line 583) | def save_web(self, instance: Dict, with_valid=True): class SyncWeb (line 619) | class SyncWeb(serializers.Serializer): method is_valid (line 627) | def is_valid(self, *, raise_exception=False): method sync (line 641) | def sync(self, with_valid=True): method get_sync_handler (line 651) | def get_sync_handler(knowledge): method replace_sync (line 678) | def replace_sync(self, knowledge): method complete_sync (line 687) | def complete_sync(self, knowledge): class HitTest (line 703) | class HitTest(serializers.Serializer): method is_valid (line 715) | def is_valid(self, *, raise_exception=True): method hit_test (line 726) | def hit_test(self): class StoreKnowledge (line 755) | class StoreKnowledge(serializers.Serializer): method get_appstore_templates (line 759) | def get_appstore_templates(self): class TransformWorkflow (line 804) | class TransformWorkflow(serializers.Serializer): method transform (line 809) | def transform(self, instance: Dict): class Tags (line 834) | class Tags(serializers.Serializer): method list (line 842) | def list(self): FILE: apps/knowledge/serializers/knowledge_folder.py class KnowledgeFolderTreeSerializer (line 6) | class KnowledgeFolderTreeSerializer(serializers.ModelSerializer): class Meta (line 9) | class Meta: method get_children (line 13) | def get_children(self, obj): class KnowledgeFolderFlatSerializer (line 17) | class KnowledgeFolderFlatSerializer(serializers.ModelSerializer): class Meta (line 18) | class Meta: FILE: apps/knowledge/serializers/knowledge_version.py class KnowledgeWorkflowVersionEditSerializer (line 21) | class KnowledgeWorkflowVersionEditSerializer(serializers.Serializer): class KnowledgeVersionModelSerializer (line 26) | class KnowledgeVersionModelSerializer(serializers.ModelSerializer): class Meta (line 27) | class Meta: class KnowledgeWorkflowVersionQuerySerializer (line 34) | class KnowledgeWorkflowVersionQuerySerializer(serializers.Serializer): class KnowledgeWorkflowVersionSerializer (line 40) | class KnowledgeWorkflowVersionSerializer(serializers.Serializer): class Query (line 43) | class Query(serializers.Serializer): method get_query_set (line 46) | def get_query_set(self, query): method list (line 54) | def list(self, query, with_valid=True): method page (line 61) | def page(self, query, current_page, page_size, with_valid=True): class Operate (line 68) | class Operate(serializers.Serializer): method is_valid (line 74) | def is_valid(self, *, raise_exception=False): method one (line 83) | def one(self, with_valid=True): method edit (line 94) | def edit(self, instance: Dict, with_valid=True): FILE: apps/knowledge/serializers/knowledge_workflow.py function hand_node (line 48) | def hand_node(node, update_tool_map): class KnowledgeWorkflowModelSerializer (line 69) | class KnowledgeWorkflowModelSerializer(serializers.ModelSerializer): class Meta (line 70) | class Meta: class KnowledgeWorkflowActionRequestSerializer (line 75) | class KnowledgeWorkflowActionRequestSerializer(serializers.Serializer): class KnowledgeWorkflowImportRequest (line 80) | class KnowledgeWorkflowImportRequest(serializers.Serializer): class KnowledgeWorkflowActionListQuerySerializer (line 84) | class KnowledgeWorkflowActionListQuerySerializer(serializers.Serializer): class KBWFInstance (line 89) | class KBWFInstance: method __init__ (line 91) | def __init__(self, knowledge_workflow: dict, function_lib_list: List[d... method get_tool_list (line 97) | def get_tool_list(self): class KnowledgeWorkflowActionSerializer (line 101) | class KnowledgeWorkflowActionSerializer(serializers.Serializer): method get_query_set (line 105) | def get_query_set(self, instance: Dict): method list (line 117) | def list(self, instance: Dict, is_valid=True): method page (line 125) | def page(self, current_page, page_size, instance: Dict, is_valid=True): method action (line 134) | def action(self, instance: Dict, user, with_valid=True): method upload_document (line 163) | def upload_document(self, instance: Dict, user, with_valid=True): class Operate (line 196) | class Operate(serializers.Serializer): method one (line 201) | def one(self, is_valid=True): method cancel (line 211) | def cancel(self, is_valid=True): class KnowledgeWorkflowSerializer (line 222) | class KnowledgeWorkflowSerializer(serializers.Serializer): class Datasource (line 223) | class Datasource(serializers.Serializer): method action (line 229) | def action(self): class Create (line 240) | class Create(serializers.Serializer): method save_workflow (line 248) | def save_workflow(self, instance: Dict): class Import (line 303) | class Import(serializers.Serializer): method import_ (line 309) | def import_(self, instance: dict, is_import_tool, with_valid=True): method to_knowledge_workflow (line 368) | def to_knowledge_workflow(knowledge_workflow, update_tool_map): method to_tool (line 378) | def to_tool(tool, workspace_id, user_id): class Export (line 392) | class Export(serializers.Serializer): method export (line 397) | def export(self, with_valid=True): class Operate (line 424) | class Operate(serializers.Serializer): method publish (line 429) | def publish(self, with_valid=True): method edit (line 450) | def edit(self, instance: Dict): method one (line 484) | def one(self): class McpServersSerializer (line 490) | class McpServersSerializer(serializers.Serializer): class KnowledgeWorkflowMcpSerializer (line 494) | class KnowledgeWorkflowMcpSerializer(serializers.Serializer): method is_valid (line 499) | def is_valid(self, *, raise_exception=False): method get_mcp_servers (line 508) | def get_mcp_servers(self, instance, with_valid=True): FILE: apps/knowledge/serializers/paragraph.py class ParagraphSerializer (line 28) | class ParagraphSerializer(serializers.ModelSerializer): class Meta (line 29) | class Meta: class ParagraphInstanceSerializer (line 34) | class ParagraphInstanceSerializer(serializers.Serializer): class EditParagraphSerializers (line 46) | class EditParagraphSerializers(serializers.Serializer): class ParagraphBatchGenerateRelatedSerializer (line 54) | class ParagraphBatchGenerateRelatedSerializer(serializers.Serializer): class ParagraphSerializers (line 63) | class ParagraphSerializers(serializers.Serializer): class Problem (line 68) | class Problem(serializers.Serializer): method is_valid (line 74) | def is_valid(self, *, raise_exception=False): method list (line 85) | def list(self, with_valid=False): method save (line 101) | def save(self, instance: Dict, with_valid=True, with_embedding=True,... class Operate (line 143) | class Operate(serializers.Serializer): method is_valid (line 152) | def is_valid(self, *, raise_exception=True): method post_embedding (line 164) | def post_embedding(paragraph, instance, knowledge_id): method edit (line 176) | def edit(self, instance: Dict): method get_problem_list (line 228) | def get_problem_list(self): method one (line 237) | def one(self, with_valid=False): method delete (line 243) | def delete(self, with_valid=False): class Create (line 253) | class Create(serializers.Serializer): method is_valid (line 258) | def is_valid(self, *, raise_exception=False): method save (line 265) | def save(self, instance: Dict, with_valid=True, with_embedding=True): method get_paragraph_problem_model (line 322) | def get_paragraph_problem_model(knowledge_id: str, document_id: str,... method or_get (line 340) | def or_get(exists_problem_list, content, knowledge_id): class Query (line 347) | class Query(serializers.Serializer): method is_valid (line 354) | def is_valid(self, *, raise_exception=False): method get_query_set (line 363) | def get_query_set(self): method list (line 376) | def list(self): method page (line 379) | def page(self, current_page, page_size): class Association (line 383) | class Association(serializers.Serializer): method is_valid (line 390) | def is_valid(self, *, raise_exception=True): method association (line 406) | def association(self, with_valid=True, with_embedding=True): method un_association (line 437) | def un_association(self, with_valid=True): class Batch (line 450) | class Batch(serializers.Serializer): method is_valid (line 455) | def is_valid(self, *, raise_exception=False): method batch_delete (line 465) | def batch_delete(self, instance: Dict, with_valid=True): method batch_generate_related (line 477) | def batch_generate_related(self, instance: Dict, with_valid=True): class Migrate (line 501) | class Migrate(serializers.Serializer): method is_valid (line 510) | def is_valid(self, *, raise_exception=False): method migrate (line 533) | def migrate(self, with_valid=True): method update_problem_paragraph_mapping (line 625) | def update_problem_paragraph_mapping(target_document_id: str, proble... method get_target_knowledge_problem (line 630) | def get_target_knowledge_problem(target_knowledge_id: str, class AdjustPosition (line 653) | class AdjustPosition(serializers.Serializer): method is_valid (line 659) | def is_valid(self, *, raise_exception=False): method adjust_position (line 669) | def adjust_position(self, new_position): function delete_problems_and_mappings (line 699) | def delete_problems_and_mappings(paragraph_ids): FILE: apps/knowledge/serializers/problem.py class ProblemSerializer (line 20) | class ProblemSerializer(serializers.ModelSerializer): class Meta (line 21) | class Meta: class ProblemInstanceSerializer (line 26) | class ProblemInstanceSerializer(serializers.Serializer): class ProblemEditSerializer (line 31) | class ProblemEditSerializer(serializers.Serializer): class ProblemMappingSerializer (line 35) | class ProblemMappingSerializer(serializers.Serializer): class ProblemBatchSerializer (line 40) | class ProblemBatchSerializer(serializers.Serializer): class ProblemBatchDeleteSerializer (line 45) | class ProblemBatchDeleteSerializer(serializers.Serializer): class AssociationParagraph (line 50) | class AssociationParagraph(serializers.Serializer): class BatchAssociation (line 55) | class BatchAssociation(serializers.Serializer): class ProblemSerializers (line 61) | class ProblemSerializers(serializers.Serializer): class BatchOperate (line 62) | class BatchOperate(serializers.Serializer): method is_valid (line 66) | def is_valid(self, *, raise_exception=False): method delete (line 75) | def delete(self, problem_id_list: List, with_valid=True): method association (line 88) | def association(self, instance: Dict, with_valid=True): class Operate (line 136) | class Operate(serializers.Serializer): method is_valid (line 141) | def is_valid(self, *, raise_exception=False): method list_paragraph (line 150) | def list_paragraph(self, with_valid=True): method one (line 164) | def one(self, with_valid=True): method delete (line 170) | def delete(self, with_valid=True): method edit (line 183) | def edit(self, instance: Dict, with_valid=True): class Create (line 196) | class Create(serializers.Serializer): method is_valid (line 200) | def is_valid(self, *, raise_exception=False): method batch (line 209) | def batch(self, problem_list, with_valid=True): class Query (line 233) | class Query(serializers.Serializer): method is_valid (line 238) | def is_valid(self, *, raise_exception=False): method get_query_set (line 247) | def get_query_set(self): method list (line 257) | def list(self): method page (line 262) | def page(self, current_page, page_size): function is_exits (line 268) | def is_exits(exits_problem_paragraph_mapping_list, new_paragraph_mapping): function to_problem_paragraph_mapping (line 277) | def to_problem_paragraph_mapping(problem, document_id: str, paragraph_id... FILE: apps/knowledge/serializers/tag.py class TagModelSerializer (line 24) | class TagModelSerializer(serializers.ModelSerializer): class Meta (line 27) | class Meta: class TagCreateSerializer (line 33) | class TagCreateSerializer(serializers.Serializer): class TagEditSerializer (line 39) | class TagEditSerializer(serializers.Serializer): class TagSerializers (line 44) | class TagSerializers(serializers.Serializer): class Create (line 45) | class Create(serializers.Serializer): method is_valid (line 50) | def is_valid(self, *, raise_exception=False): method insert (line 59) | def insert(self): class Operate (line 92) | class Operate(serializers.Serializer): method is_valid (line 97) | def is_valid(self, *, raise_exception=False): method edit (line 107) | def edit(self, instance: Dict): method delete (line 149) | def delete(self, delete_type: str): class BatchDelete (line 166) | class BatchDelete(serializers.Serializer): method is_valid (line 171) | def is_valid(self, *, raise_exception=False): method batch_delete (line 181) | def batch_delete(self): class Query (line 200) | class Query(serializers.Serializer): method is_valid (line 205) | def is_valid(self, *, raise_exception=False): method list (line 214) | def list(self): FILE: apps/knowledge/task/embedding.py function get_embedding_model (line 21) | def get_embedding_model(model_id, exception_handler=lambda e: maxkb_logg... function embedding_by_paragraph (line 39) | def embedding_by_paragraph(paragraph_id, model_id): function embedding_by_paragraph_data_list (line 45) | def embedding_by_paragraph_data_list(data_list, paragraph_id_list, model... function embedding_by_paragraph_list (line 51) | def embedding_by_paragraph_list(paragraph_id_list, model_id): function embedding_by_document (line 57) | def embedding_by_document(document_id, model_id, state_list=None): function embedding_by_document_list (line 86) | def embedding_by_document_list(document_id_list, model_id): function embedding_by_knowledge (line 98) | def embedding_by_knowledge(knowledge_id, model_id): function embedding_by_problem (line 126) | def embedding_by_problem(args, model_id): function embedding_by_data_list (line 137) | def embedding_by_data_list(args: List, model_id): function delete_embedding_by_document (line 142) | def delete_embedding_by_document(document_id): function delete_embedding_by_document_list (line 152) | def delete_embedding_by_document_list(document_id_list: List[str]): function delete_embedding_by_knowledge (line 161) | def delete_embedding_by_knowledge(knowledge_id): function delete_embedding_by_paragraph (line 170) | def delete_embedding_by_paragraph(paragraph_id): function delete_embedding_by_source (line 179) | def delete_embedding_by_source(source_id): function disable_embedding_by_paragraph (line 188) | def disable_embedding_by_paragraph(paragraph_id): function enable_embedding_by_paragraph (line 197) | def enable_embedding_by_paragraph(paragraph_id): function delete_embedding_by_source_ids (line 206) | def delete_embedding_by_source_ids(source_ids: List[str]): function update_problem_embedding (line 215) | def update_problem_embedding(problem_id: str, problem_content: str, mode... function update_embedding_knowledge_id (line 227) | def update_embedding_knowledge_id(paragraph_id_list, target_knowledge_id): function delete_embedding_by_paragraph_ids (line 239) | def delete_embedding_by_paragraph_ids(paragraph_ids: List[str]): function update_embedding_document_id (line 248) | def update_embedding_document_id(paragraph_id_list, target_document_id, ... function delete_embedding_by_knowledge_id_list (line 257) | def delete_embedding_by_knowledge_id_list(knowledge_id_list): FILE: apps/knowledge/task/generate.py function get_llm_model (line 20) | def get_llm_model(model_id, model_params_setting=None): function generate_problem_by_paragraph (line 25) | def generate_problem_by_paragraph(paragraph, llm_model, prompt): function get_generate_problem (line 43) | def get_generate_problem(llm_model, prompt, post_apply=lambda: None, is_... function get_is_the_task_interrupted (line 54) | def get_is_the_task_interrupted(document_id): function generate_related_by_knowledge_id (line 66) | def generate_related_by_knowledge_id(knowledge_id, model_id, model_param... function generate_related_by_document_id (line 77) | def generate_related_by_document_id(document_id, model_id, model_params_... function generate_related_by_paragraph_id_list (line 112) | def generate_related_by_paragraph_id_list(document_id, paragraph_id_list... FILE: apps/knowledge/task/handler.py function get_save_handler (line 17) | def get_save_handler(knowledge_id, selector): function get_sync_handler (line 40) | def get_sync_handler(knowledge_id): function get_sync_web_document_handler (line 72) | def get_sync_web_document_handler(knowledge_id): function save_problem (line 97) | def save_problem(knowledge_id, document_id, paragraph_id, problem): FILE: apps/knowledge/task/sync.py function sync_web_knowledge (line 24) | def sync_web_knowledge(knowledge_id: str, url: str, selector: str): function sync_replace_web_knowledge (line 41) | def sync_replace_web_knowledge(knowledge_id: str, url: str, selector: str): function sync_web_document (line 57) | def sync_web_document(knowledge_id, source_url_list: List[str], selector... FILE: apps/knowledge/vector/base_vector.py function chunk_data (line 24) | def chunk_data(data: Dict): function chunk_data_list (line 32) | def chunk_data_list(data_list: List[Dict]): function normalize_for_embedding (line 48) | def normalize_for_embedding(text: str) -> str: class BaseVectorStore (line 57) | class BaseVectorStore(ABC): method vector_is_create (line 61) | def vector_is_create(self) -> bool: method vector_create (line 69) | def vector_create(self): method save_pre_handler (line 76) | def save_pre_handler(self): method save (line 87) | def save(self, text, source_type: SourceType, knowledge_id: str, docum... method batch_save (line 111) | def batch_save(self, data_list: List[Dict], embedding: Embeddings, is_... method _save (line 129) | def _save(self, text, source_type: SourceType, knowledge_id: str, docu... method _batch_save (line 136) | def _batch_save(self, text_list: List[Dict], embedding: Embeddings, is... method search (line 139) | def search(self, query_text, knowledge_id_list: list[str], exclude_doc... method query (line 152) | def query(self, query_text: str, query_embedding: List[float], knowled... method hit_test (line 160) | def hit_test(self, query_text, knowledge_id: list[str], exclude_docume... method update_by_paragraph_id (line 167) | def update_by_paragraph_id(self, paragraph_id: str, instance: Dict): method update_by_paragraph_ids (line 171) | def update_by_paragraph_ids(self, paragraph_ids: str, instance: Dict): method update_by_source_id (line 175) | def update_by_source_id(self, source_id: str, instance: Dict): method update_by_source_ids (line 179) | def update_by_source_ids(self, source_ids: List[str], instance: Dict): method delete_by_knowledge_id (line 183) | def delete_by_knowledge_id(self, knowledge_id: str): method delete_by_document_id (line 187) | def delete_by_document_id(self, document_id: str): method delete_by_document_id_list (line 191) | def delete_by_document_id_list(self, document_id_list: List[str]): method delete_by_knowledge_id_list (line 195) | def delete_by_knowledge_id_list(self, knowledge_id_list: List[str]): method delete_by_source_id (line 199) | def delete_by_source_id(self, source_id: str, source_type: str): method delete_by_source_ids (line 203) | def delete_by_source_ids(self, source_ids: List[str], source_type: str): method delete_by_paragraph_id (line 207) | def delete_by_paragraph_id(self, paragraph_id: str): method delete_by_paragraph_ids (line 211) | def delete_by_paragraph_ids(self, paragraph_ids: List[str]): FILE: apps/knowledge/vector/pg_vector.py class PGVector (line 28) | class PGVector(BaseVectorStore): method delete_by_source_ids (line 30) | def delete_by_source_ids(self, source_ids: List[str], source_type: str): method update_by_source_ids (line 35) | def update_by_source_ids(self, source_ids: List[str], instance: Dict): method vector_is_create (line 38) | def vector_is_create(self) -> bool: method vector_create (line 42) | def vector_create(self): method _save (line 45) | def _save(self, text, source_type: SourceType, knowledge_id: str, docu... method _batch_save (line 65) | def _batch_save(self, text_list: List[Dict], embedding: Embeddings, is... method hit_test (line 84) | def hit_test(self, query_text, knowledge_id_list: list[str], exclude_d... method query (line 101) | def query(self, query_text: str, query_embedding: List[float], knowled... method update_by_source_id (line 121) | def update_by_source_id(self, source_id: str, instance: Dict): method update_by_paragraph_id (line 124) | def update_by_paragraph_id(self, paragraph_id: str, instance: Dict): method update_by_paragraph_ids (line 127) | def update_by_paragraph_ids(self, paragraph_id: str, instance: Dict): method delete_by_knowledge_id (line 130) | def delete_by_knowledge_id(self, knowledge_id: str): method delete_by_knowledge_id_list (line 133) | def delete_by_knowledge_id_list(self, knowledge_id_list: List[str]): method delete_by_document_id (line 136) | def delete_by_document_id(self, document_id: str): method delete_by_document_id_list (line 140) | def delete_by_document_id_list(self, document_id_list: List[str]): method delete_by_source_id (line 145) | def delete_by_source_id(self, source_id: str, source_type: str): method delete_by_paragraph_id (line 149) | def delete_by_paragraph_id(self, paragraph_id: str): method delete_by_paragraph_ids (line 152) | def delete_by_paragraph_ids(self, paragraph_ids: List[str]): class ISearch (line 156) | class ISearch(ABC): method support (line 158) | def support(self, search_mode: SearchMode): method handle (line 162) | def handle(self, query_set, query_text, query_embedding, top_number: int, class EmbeddingSearch (line 167) | class EmbeddingSearch(ISearch): method handle (line 168) | def handle(self, method support (line 189) | def support(self, search_mode: SearchMode): class KeywordsSearch (line 193) | class KeywordsSearch(ISearch): method handle (line 194) | def handle(self, method support (line 214) | def support(self, search_mode: SearchMode): class BlendSearch (line 218) | class BlendSearch(ISearch): method handle (line 219) | def handle(self, method support (line 240) | def support(self, search_mode: SearchMode): FILE: apps/knowledge/views/common.py function get_document_operation_object (line 6) | def get_document_operation_object(document_id: str): function get_document_operation_object_batch (line 16) | def get_document_operation_object_batch(document_id_list: str): function get_knowledge_document_operation_object (line 27) | def get_knowledge_document_operation_object(knowledge_dict: dict, docume... FILE: apps/knowledge/views/document.py class DocumentView (line 24) | class DocumentView(APIView): method post (line 48) | def post(self, request: Request, workspace_id: str, knowledge_id: str): method get (line 70) | def get(self, request: Request, workspace_id: str, knowledge_id: str): class Operate (line 87) | class Operate(APIView): method get (line 105) | def get(self, request: Request, workspace_id: str, knowledge_id: str... method put (line 135) | def put(self, request: Request, workspace_id: str, knowledge_id: str... method delete (line 162) | def delete(self, request: Request, workspace_id: str, knowledge_id: ... class Split (line 169) | class Split(APIView): method post (line 190) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class SplitPattern (line 205) | class SplitPattern(APIView): method get (line 216) | def get(self, request: Request, workspace_id: str, knowledge_id: str): class BatchEditHitHandling (line 221) | class BatchEditHitHandling(APIView): method put (line 248) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class SyncWeb (line 253) | class SyncWeb(APIView): method put (line 280) | def put(self, request: Request, workspace_id: str, knowledge_id: str... class Refresh (line 285) | class Refresh(APIView): method put (line 312) | def put(self, request: Request, workspace_id: str, knowledge_id: str... class CancelTask (line 317) | class CancelTask(APIView): method put (line 343) | def put(self, request: Request, workspace_id: str, knowledge_id: str... class BatchCancelTask (line 348) | class BatchCancelTask(APIView): method put (line 374) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class BatchCreate (line 379) | class BatchCreate(APIView): method put (line 408) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class BatchSync (line 413) | class BatchSync(APIView): method put (line 442) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class BatchDelete (line 447) | class BatchDelete(APIView): method put (line 476) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class BatchRefresh (line 481) | class BatchRefresh(APIView): method put (line 509) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class BatchAddTag (line 515) | class BatchAddTag(APIView): method post (line 541) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class BatchGenerateRelated (line 546) | class BatchGenerateRelated(APIView): method put (line 575) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class BatchExport (line 580) | class BatchExport(APIView): method post (line 597) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class BatchExportZip (line 604) | class BatchExportZip(APIView): method post (line 621) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class Page (line 628) | class Page(APIView): method get (line 647) | def get(self, request: Request, workspace_id: str, knowledge_id: str... class Export (line 669) | class Export(APIView): method get (line 693) | def get(self, request: Request, workspace_id: str, knowledge_id: str... class ExportZip (line 698) | class ExportZip(APIView): method get (line 722) | def get(self, request: Request, workspace_id: str, knowledge_id: str... class DownloadSourceFile (line 727) | class DownloadSourceFile(APIView): method get (line 744) | def get(self, request: Request, workspace_id: str, knowledge_id: str... class ReplaceSourceFile (line 749) | class ReplaceSourceFile(APIView): method post (line 766) | def post(self, request: Request, workspace_id: str, knowledge_id: st... class Tags (line 774) | class Tags(APIView): method get (line 792) | def get(self, request: Request, workspace_id: str, knowledge_id: str... method post (line 813) | def post(self, request: Request, workspace_id: str, knowledge_id: st... class BatchDelete (line 819) | class BatchDelete(APIView): method put (line 846) | def put(self, request: Request, workspace_id: str, knowledge_id: s... class BatchDeleteDocsTag (line 854) | class BatchDeleteDocsTag(APIView): method put (line 879) | def put(self, request: Request, workspace_id: str, knowledge_id: s... class Migrate (line 886) | class Migrate(APIView): method put (line 911) | def put(self, request: Request, workspace_id, knowledge_id: str, tar... class WebDocumentView (line 921) | class WebDocumentView(APIView): method post (line 949) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class QaDocumentView (line 955) | class QaDocumentView(APIView): method post (line 983) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class TableDocumentView (line 989) | class TableDocumentView(APIView): method post (line 1017) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class Template (line 1023) | class Template(APIView): method get (line 1033) | def get(self, request: Request): class TableTemplate (line 1037) | class TableTemplate(APIView): method get (line 1046) | def get(self, request: Request): FILE: apps/knowledge/views/knowledge.py class KnowledgeView (line 21) | class KnowledgeView(APIView): method get (line 37) | def get(self, request: Request, workspace_id: str): class Operate (line 49) | class Operate(APIView): method put (line 74) | def put(self, request: Request, workspace_id: str, knowledge_id: str): method delete (line 101) | def delete(self, request: Request, workspace_id: str, knowledge_id: ... method get (line 122) | def get(self, request: Request, workspace_id: str, knowledge_id: str): class Page (line 127) | class Page(APIView): method get (line 143) | def get(self, request: Request, workspace_id: str, current_page: int... class SyncWeb (line 156) | class SyncWeb(APIView): method put (line 181) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class HitTest (line 191) | class HitTest(APIView): method post (line 211) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class StoreKnowledge (line 224) | class StoreKnowledge(APIView): method get (line 235) | def get(self, request: Request): class Embedding (line 241) | class Embedding(APIView): method put (line 266) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class Export (line 271) | class Export(APIView): method get (line 293) | def get(self, request: Request, workspace_id: str, knowledge_id: str): class ExportZip (line 298) | class ExportZip(APIView): method get (line 320) | def get(self, request: Request, workspace_id: str, knowledge_id: str): class GenerateRelated (line 325) | class GenerateRelated(APIView): method put (line 350) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class Model (line 355) | class Model(APIView): method get (line 371) | def get(self, request: Request, workspace_id: str): class EmbeddingModel (line 379) | class EmbeddingModel(APIView): method get (line 386) | def get(self, request: Request, workspace_id: str): class TransformWorkflow (line 394) | class TransformWorkflow(APIView): method post (line 408) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class Tags (line 413) | class Tags(APIView): method get (line 429) | def get(self, request: Request, workspace_id: str): class KnowledgeBaseView (line 437) | class KnowledgeBaseView(APIView): method post (line 459) | def post(self, request: Request, workspace_id: str): class KnowledgeWebView (line 465) | class KnowledgeWebView(APIView): method post (line 491) | def post(self, request: Request, workspace_id: str): FILE: apps/knowledge/views/knowledge_workflow.py class KnowledgeDatasourceFormListView (line 21) | class KnowledgeDatasourceFormListView(APIView): method post (line 34) | def post(self, request: Request, workspace_id: str, knowledge_id: str,... class KnowledgeDatasourceView (line 42) | class KnowledgeDatasourceView(APIView): method post (line 55) | def post(self, request: Request, workspace_id: str, knowledge_id: str,... class KnowledgeWorkflowUploadDocumentView (line 60) | class KnowledgeWorkflowUploadDocumentView(APIView): method post (line 83) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class KnowledgeWorkflowActionView (line 89) | class KnowledgeWorkflowActionView(APIView): method post (line 112) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class Page (line 116) | class Page(APIView): method get (line 139) | def get(self, request: Request, workspace_id: str, knowledge_id: str... class Operate (line 144) | class Operate(APIView): method get (line 166) | def get(self, request, workspace_id: str, knowledge_id: str, knowled... class Cancel (line 171) | class Cancel(APIView): method post (line 193) | def post(self, request, workspace_id: str, knowledge_id: str, knowle... class KnowledgeWorkflowView (line 199) | class KnowledgeWorkflowView(APIView): method post (line 215) | def post(self, request: Request, workspace_id: str): class Publish (line 220) | class Publish(APIView): method put (line 241) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class Export (line 247) | class Export(APIView): method get (line 273) | def get(self, request: Request, workspace_id: str, knowledge_id: str): class Import (line 278) | class Import(APIView): method post (line 304) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class Operate (line 314) | class Operate(APIView): method put (line 341) | def put(self, request: Request, workspace_id: str, knowledge_id: str): method get (line 365) | def get(self, request: Request, workspace_id: str, knowledge_id: str): class KnowledgeWorkflowVersionView (line 371) | class KnowledgeWorkflowVersionView(APIView): method get (line 393) | def get(self, request: Request, workspace_id: str, knowledge_id: str): class McpServers (line 399) | class McpServers(APIView): method post (line 418) | def post(self, request: Request, workspace_id, knowledge_id: str): FILE: apps/knowledge/views/knowledge_workflow_version.py function get_knowledge_operation_object (line 26) | def get_knowledge_operation_object(knowledge_id): class KnowledgeWorkflowVersionView (line 35) | class KnowledgeWorkflowVersionView(APIView): method get (line 53) | def get(self, request: Request, workspace_id, knowledge_id: str): class Page (line 59) | class Page(APIView): method get (line 77) | def get(self, request: Request, workspace_id: str, knowledge_id: str... class Operate (line 84) | class Operate(APIView): method get (line 102) | def get(self, request: Request, workspace_id: str, knowledge_id: str... method put (line 127) | def put(self, request: Request, workspace_id: str, knowledge_id: str... FILE: apps/knowledge/views/paragraph.py class ParagraphView (line 20) | class ParagraphView(APIView): method get (line 38) | def get(self, request: Request, workspace_id: str, knowledge_id: str, ... method post (line 72) | def post(self, request: Request, workspace_id: str, knowledge_id: str,... class BatchDelete (line 77) | class BatchDelete(APIView): method put (line 97) | def put(self, request: Request, workspace_id: str, knowledge_id: str... class BatchMigrate (line 102) | class BatchMigrate(APIView): method put (line 127) | def put(self, request: Request, workspace_id: str, knowledge_id: str... class BatchGenerateRelated (line 139) | class BatchGenerateRelated(APIView): method put (line 166) | def put(self, request: Request, workspace_id: str, knowledge_id: str... class Operate (line 171) | class Operate(APIView): method put (line 198) | def put(self, request: Request, workspace_id: str, knowledge_id: str... method get (line 226) | def get(self, request: Request, workspace_id: str, knowledge_id: str... method delete (line 260) | def delete(self, request: Request, workspace_id: str, knowledge_id: ... class Problem (line 272) | class Problem(APIView): method post (line 299) | def post(self, request: Request, workspace_id: str, knowledge_id: st... method get (line 325) | def get(self, request: Request, workspace_id: str, knowledge_id: str... class UnAssociation (line 335) | class UnAssociation(APIView): method put (line 362) | def put(self, request: Request, workspace_id: str, knowledge_id: str... class Association (line 373) | class Association(APIView): method put (line 400) | def put(self, request: Request, workspace_id: str, knowledge_id: str... class Page (line 411) | class Page(APIView): method get (line 430) | def get(self, request: Request, class AdjustPosition (line 442) | class AdjustPosition(APIView): method put (line 462) | def put(self, request: Request, workspace_id: str, knowledge_id: str... FILE: apps/knowledge/views/problem.py class ProblemView (line 18) | class ProblemView(APIView): method get (line 37) | def get(self, request: Request, workspace_id: str, knowledge_id: str): method post (line 70) | def post(self, request: Request, workspace_id: str, knowledge_id: str): class Paragraph (line 75) | class Paragraph(APIView): method get (line 93) | def get(self, request: Request, workspace_id: str, knowledge_id: str... class BatchAssociation (line 103) | class BatchAssociation(APIView): method put (line 127) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class BatchDelete (line 132) | class BatchDelete(APIView): method put (line 157) | def put(self, request: Request, workspace_id: str, knowledge_id: str): class Operate (line 162) | class Operate(APIView): method delete (line 186) | def delete(self, request: Request, workspace_id: str, knowledge_id: ... method put (line 218) | def put(self, request: Request, workspace_id: str, knowledge_id: str... class Page (line 228) | class Page(APIView): method get (line 248) | def get(self, request: Request, workspace_id: str, knowledge_id: str... FILE: apps/knowledge/views/tag.py class KnowledgeTagView (line 16) | class KnowledgeTagView(APIView): method post (line 38) | def post(self, request: Request, workspace_id: str, knowledge_id: str): method get (line 62) | def get(self, request: Request, workspace_id: str, knowledge_id: str): class Operate (line 69) | class Operate(APIView): method put (line 91) | def put(self, request: Request, workspace_id: str, knowledge_id: str... class Delete (line 96) | class Delete(APIView): method delete (line 118) | def delete(self, request: Request, workspace_id: str, knowledge_id: ... class BatchDelete (line 123) | class BatchDelete(APIView): method put (line 145) | def put(self, request: Request, workspace_id: str, knowledge_id: str): FILE: apps/local_model/apps.py class LocalModelConfig (line 4) | class LocalModelConfig(AppConfig): FILE: apps/local_model/models/model_management.py class Status (line 10) | class Status(models.TextChoices): class Model (line 21) | class Model(AppModelMixin): class Meta (line 47) | class Meta: FILE: apps/local_model/models/system_setting.py class SettingType (line 15) | class SettingType(models.IntegerChoices): class SystemSetting (line 24) | class SystemSetting(AppModelMixin): class Meta (line 33) | class Meta: FILE: apps/local_model/models/user.py class User (line 16) | class User(models.Model): class Meta (line 33) | class Meta: method set_password (line 36) | def set_password(self, row_password): FILE: apps/local_model/serializers/model_apply_serializers.py class ModelManage (line 29) | class ModelManage: method _get_lock (line 34) | def _get_lock(_id): method get_model (line 46) | def get_model(_id, get_model): method clear_timeout_cache (line 65) | def clear_timeout_cache(): method delete_key (line 71) | def delete_key(_id): function get_local_model (line 76) | def get_local_model(model, **kwargs): function get_embedding_model (line 84) | def get_embedding_model(model_id): class EmbedDocuments (line 93) | class EmbedDocuments(serializers.Serializer): class EmbedQuery (line 99) | class EmbedQuery(serializers.Serializer): class CompressDocument (line 103) | class CompressDocument(serializers.Serializer): class CompressDocuments (line 108) | class CompressDocuments(serializers.Serializer): class ValidateModelSerializers (line 113) | class ValidateModelSerializers(serializers.Serializer): method validate_model (line 120) | def validate_model(self, with_valid=True): class ModelApplySerializers (line 128) | class ModelApplySerializers(serializers.Serializer): method embed_documents (line 131) | def embed_documents(self, instance, with_valid=True): method embed_query (line 139) | def embed_query(self, instance, with_valid=True): method compress_documents (line 147) | def compress_documents(self, instance, with_valid=True): method unload (line 156) | def unload(self, with_valid=True): FILE: apps/local_model/serializers/rsa_util.py function generate (line 27) | def generate(): function get_key_pair (line 41) | def get_key_pair(): function get_key_pair_by_sql (line 54) | def get_key_pair_by_sql(): function encrypt (line 64) | def encrypt(msg, public_key: str | None = None): function decrypt (line 78) | def decrypt(msg, pri_key: str | None = None): function rsa_long_encrypt (line 92) | def rsa_long_encrypt(message, public_key: str | None = None, length=200): function rsa_long_decrypt (line 124) | def rsa_long_decrypt(message, pri_key: str | None = None, length=256): FILE: apps/local_model/views/model_apply.py class LocalModelApply (line 17) | class LocalModelApply(APIView): class EmbedDocuments (line 18) | class EmbedDocuments(APIView): method post (line 20) | def post(self, request: Request, model_id): class EmbedQuery (line 24) | class EmbedQuery(APIView): method post (line 26) | def post(self, request: Request, model_id): class CompressDocuments (line 30) | class CompressDocuments(APIView): method post (line 32) | def post(self, request: Request, model_id): class Unload (line 36) | class Unload(APIView): method post (line 37) | def post(self, request: Request, model_id): class Validate (line 41) | class Validate(APIView): method post (line 42) | def post(self, request: Request): FILE: apps/manage.py function main (line 7) | def main(): FILE: apps/maxkb/conf.py class Config (line 20) | class Config(dict): method get_debug (line 48) | def get_debug(self) -> bool: method get_time_zone (line 51) | def get_time_zone(self) -> str: method get_db_setting (line 54) | def get_db_setting(self) -> dict: method get_cache_setting (line 72) | def get_cache_setting(self): method get_language_code (line 102) | def get_language_code(self): method get_log_level (line 105) | def get_log_level(self): method get_sandbox_python_package_paths (line 108) | def get_sandbox_python_package_paths(self): method get_admin_path (line 112) | def get_admin_path(self): method get_chat_path (line 115) | def get_chat_path(self): method get_session_timeout (line 118) | def get_session_timeout(self): method __init__ (line 121) | def __init__(self, *args): method __repr__ (line 124) | def __repr__(self): method __getitem__ (line 127) | def __getitem__(self, item): method __getattr__ (line 130) | def __getattr__(self, item): class ConfigManager (line 134) | class ConfigManager: method __init__ (line 137) | def __init__(self, root_path=None): method from_mapping (line 143) | def from_mapping(self, *mapping, **kwargs): method from_yaml (line 166) | def from_yaml(self, filename, silent=False): method load_from_yml (line 181) | def load_from_yml(self): method load_from_env (line 197) | def load_from_env(self): method load_user_config (line 224) | def load_user_config(cls, root_path=None, config_class=None): FILE: apps/maxkb/settings/mem.py function enable_force_gc (line 14) | def enable_force_gc(): FILE: apps/maxkb/urls/web.py function pro (line 54) | def pro(): function get_index_html (line 82) | def get_index_html(index_path): function get_all_files (line 89) | def get_all_files(directory): function page_not_found (line 105) | def page_not_found(request, exception): FILE: apps/maxkb/wsgi/web.py class TorchBlocker (line 16) | class TorchBlocker: method __init__ (line 17) | def __init__(self): method __call__ (line 20) | def __call__(self, name, *args, **kwargs): function post_handler (line 39) | def post_handler(): FILE: apps/models_provider/api/model.py class ModelCreateResponse (line 12) | class ModelCreateResponse(ResultSerializer): method get_data (line 13) | def get_data(self): class ModelListResponse (line 17) | class ModelListResponse(APIMixin): method get_response (line 19) | def get_response(): method get_parameters (line 27) | def get_parameters(): class ModelCreateAPI (line 73) | class ModelCreateAPI(APIMixin): method get_request (line 75) | def get_request(): method get_response (line 79) | def get_response(): method get_parameters (line 83) | def get_parameters(cls): class GetModelApi (line 93) | class GetModelApi(APIMixin): method get_query_params_api (line 96) | def get_query_params_api(): method get_request (line 112) | def get_request(): method get_response (line 116) | def get_response(): class ModelEditApi (line 120) | class ModelEditApi(APIMixin): method get_request (line 122) | def get_request(): method get_response (line 126) | def get_response(): class DefaultModelResponse (line 130) | class DefaultModelResponse(APIMixin): method get_response (line 132) | def get_response(): FILE: apps/models_provider/api/provide.py class ProvideResponse (line 11) | class ProvideResponse(ResultSerializer): method get_data (line 12) | def get_data(self): class ProvideSerializer (line 16) | class ProvideSerializer(serializers.Serializer): class ProvideListSerializer (line 22) | class ProvideListSerializer(serializers.Serializer): class ModelListSerializer (line 27) | class ModelListSerializer(serializers.Serializer): class ModelParamsFormSerializer (line 33) | class ModelParamsFormSerializer(serializers.Serializer): class ModelParamsFormResponse (line 49) | class ModelParamsFormResponse(ResultSerializer): method get_data (line 50) | def get_data(self): class ModelListResponse (line 54) | class ModelListResponse(ResultSerializer): method get_data (line 55) | def get_data(self): class ProvideListResponse (line 59) | class ProvideListResponse(ResultSerializer): method get_data (line 60) | def get_data(self): class ProvideApi (line 64) | class ProvideApi(APIMixin): class ModelParamsForm (line 65) | class ModelParamsForm(APIMixin): method get_query_params_api (line 67) | def get_query_params_api(): method get_response (line 90) | def get_response(): class ModelList (line 93) | class ModelList(APIMixin): method get_query_params_api (line 95) | def get_query_params_api(): method get_response (line 112) | def get_response(): method get_response (line 116) | def get_response(): class ModelTypeList (line 119) | class ModelTypeList(APIMixin): method get_query_params_api (line 121) | def get_query_params_api(): method get_response (line 135) | def get_response(): FILE: apps/models_provider/apps.py class ModelsProviderConfig (line 4) | class ModelsProviderConfig(AppConfig): FILE: apps/models_provider/base_model_provider.py class DownModelChunkStatus (line 16) | class DownModelChunkStatus(Enum): class ValidCode (line 23) | class ValidCode(Enum): class DownModelChunk (line 28) | class DownModelChunk: method __init__ (line 29) | def __init__(self, status: DownModelChunkStatus, digest: str, progress... method to_dict (line 36) | def to_dict(self): class IModelProvider (line 46) | class IModelProvider(ABC): method get_model_info_manage (line 48) | def get_model_info_manage(self): method get_model_provide_info (line 52) | def get_model_provide_info(self): method get_model_type_list (line 55) | def get_model_type_list(self): method get_model_list (line 58) | def get_model_list(self, model_type): method get_model_credential (line 63) | def get_model_credential(self, model_type, model_name): method get_model_params (line 74) | def get_model_params(self, model_type, model_name): method is_valid_credential (line 78) | def is_valid_credential(self, model_type, model_name, model_credential... method get_model (line 84) | def get_model(self, model_type, model_name, model_credential: Dict[str... method get_dialogue_number (line 88) | def get_dialogue_number(self): method down_model (line 91) | def down_model(self, model_type: str, model_name, model_credential: Di... class MaxKBBaseModel (line 95) | class MaxKBBaseModel(ABC): method new_instance (line 98) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method is_cache_model (line 102) | def is_cache_model(): method filter_optional_params (line 106) | def filter_optional_params(model_kwargs): class BaseModelCredential (line 117) | class BaseModelCredential(ABC): method is_valid (line 120) | def is_valid(self, model_type: str, model_name, model: Dict[str, objec... method encryption_dict (line 125) | def encryption_dict(self, model_info: Dict[str, object]): method get_model_params_setting_form (line 132) | def get_model_params_setting_form(self, model_name): method encryption (line 140) | def encryption(message: str): class ModelTypeConst (line 149) | class ModelTypeConst(Enum): class ModelInfo (line 162) | class ModelInfo: method __init__ (line 163) | def __init__(self, name: str, desc: str, model_type: ModelTypeConst, m... method get_name (line 175) | def get_name(self): method get_desc (line 182) | def get_desc(self): method get_model_type (line 189) | def get_model_type(self): method get_model_class (line 192) | def get_model_class(self): method to_dict (line 195) | def to_dict(self): class ModelInfoManage (line 201) | class ModelInfoManage: method __init__ (line 202) | def __init__(self): method append_model_info (line 208) | def append_model_info(self, model_info: ModelInfo): method append_default_model_info (line 216) | def append_default_model_info(self, model_info: ModelInfo): method get_model_list (line 220) | def get_model_list(self): method get_model_list_by_model_type (line 223) | def get_model_list_by_model_type(self, model_type): method get_model_type_list (line 226) | def get_model_type_list(self): method get_model_info (line 230) | def get_model_info(self, model_type, model_name) -> ModelInfo: class builder (line 236) | class builder: method __init__ (line 237) | def __init__(self): method append_model_info (line 240) | def append_model_info(self, model_info: ModelInfo): method append_model_info_list (line 244) | def append_model_info_list(self, model_info_list: List[ModelInfo]): method append_default_model_info (line 249) | def append_default_model_info(self, model_info: ModelInfo): method build (line 253) | def build(self): class ModelProvideInfo (line 257) | class ModelProvideInfo: method __init__ (line 258) | def __init__(self, provider: str, name: str, icon: str): method to_dict (line 265) | def to_dict(self): FILE: apps/models_provider/base_ttv.py class BaseGenerationVideo (line 7) | class BaseGenerationVideo(BaseModel): method check_auth (line 9) | def check_auth(self): method generate_video (line 13) | def generate_video(self, prompt: str, negative_prompt: str = None, fir... FILE: apps/models_provider/constants/model_provider_constants.py class ModelProvideConstants (line 29) | class ModelProvideConstants(Enum): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/aliyun_bai_lian_model_provider.py class AliyunBaiLianModelProvider (line 159) | class AliyunBaiLianModelProvider(IModelProvider): method get_model_info_manage (line 161) | def get_model_info_manage(self): method get_model_provide_info (line 164) | def get_model_provide_info(self): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/embedding.py class BaiLianEmbeddingModelParams (line 21) | class BaiLianEmbeddingModelParams(BaseForm): class AliyunBaiLianEmbeddingCredential (line 39) | class AliyunBaiLianEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 41) | def is_valid( method encryption_dict (line 85) | def encryption_dict(self, model: Dict[str, Any]) -> Dict[str, Any]: method get_model_params_setting_form (line 92) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/image.py class QwenModelParams (line 20) | class QwenModelParams(BaseForm): class QwenVLModelCredential (line 39) | class QwenVLModelCredential(BaseForm, BaseModelCredential): method is_valid (line 41) | def is_valid( method encryption_dict (line 84) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: method get_model_params_setting_form (line 90) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/itv.py class QwenModelParams (line 13) | class QwenModelParams(BaseForm): class ImageToVideoModelCredential (line 38) | class ImageToVideoModelCredential(BaseForm, BaseModelCredential): method is_valid (line 46) | def is_valid( method encryption_dict (line 101) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: method get_model_params_setting_form (line 113) | def get_model_params_setting_form(self, model_name: str): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/llm.py class BaiLianLLMModelParams (line 13) | class BaiLianLLMModelParams(BaseForm): class BaiLianLLMModelCredential (line 41) | class BaiLianLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 45) | def is_valid( method encryption_dict (line 92) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: method get_model_params_setting_form (line 95) | def get_model_params_setting_form(self, model_name: str) -> BaiLianLLM... FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/reranker.py class AliyunBaiLianRerankerCredential (line 14) | class AliyunBaiLianRerankerCredential(BaseForm, BaseModelCredential): method is_valid (line 22) | def is_valid( method encryption_dict (line 74) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/stt/asr_stt.py class AliyunBaiLianAsrSTTModelCredential (line 12) | class AliyunBaiLianAsrSTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 16) | def is_valid(self, method encryption_dict (line 57) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: method get_model_params_setting_form (line 64) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/stt/default_stt.py class AliyunBaiLianDefaultSTTModelCredential (line 20) | class AliyunBaiLianDefaultSTTModelCredential(BaseForm, BaseModelCredenti... method is_valid (line 33) | def is_valid(self, method encryption_dict (line 74) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: method get_model_params_setting_form (line 81) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/stt/omni_stt.py class AliyunBaiLianOmiSTTModelParams (line 11) | class AliyunBaiLianOmiSTTModelParams(BaseForm): class AliyunBaiLianOmiSTTModelCredential (line 19) | class AliyunBaiLianOmiSTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 23) | def is_valid(self, method encryption_dict (line 64) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: method get_model_params_setting_form (line 72) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/stt/stt.py class AliyunBaiLianSTTModelParams (line 13) | class AliyunBaiLianSTTModelParams(BaseForm): class AliyunBaiLianSTTModelCredential (line 21) | class AliyunBaiLianSTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 29) | def is_valid( method encryption_dict (line 82) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: method get_model_params_setting_form (line 94) | def get_model_params_setting_form(self, model_name: str): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/tti.py class QwenModelParams (line 13) | class QwenModelParams(BaseForm): class QwenTextToImageModelCredential (line 65) | class QwenTextToImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 74) | def is_valid( method encryption_dict (line 129) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: method get_model_params_setting_form (line 141) | def get_model_params_setting_form(self, model_name: str): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/tts.py class AliyunBaiLianTTSModelGeneralParams (line 12) | class AliyunBaiLianTTSModelGeneralParams(BaseForm): class AliyunBaiLianTTSModelCredential (line 58) | class AliyunBaiLianTTSModelCredential(BaseForm, BaseModelCredential): method is_valid (line 66) | def is_valid( method encryption_dict (line 121) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: method get_model_params_setting_form (line 133) | def get_model_params_setting_form(self, model_name: str): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/ttv.py class QwenModelParams (line 13) | class QwenModelParams(BaseForm): class TextToVideoModelCredential (line 40) | class TextToVideoModelCredential(BaseForm, BaseModelCredential): method is_valid (line 48) | def is_valid( method encryption_dict (line 103) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: method get_model_params_setting_form (line 115) | def get_model_params_setting_form(self, model_name: str): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/embedding.py class AliyunBaiLianEmbedding (line 16) | class AliyunBaiLianEmbedding(MaxKBBaseModel): method __init__ (line 20) | def __init__(self, api_key, model_name: str, api_base: str, optional_p... method is_cache_model (line 25) | def is_cache_model(self): method new_instance (line 29) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method embed_query (line 38) | def embed_query(self, text: str): method embed_documents (line 42) | def embed_documents( FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/image.py class QwenVLChatModel (line 15) | class QwenVLChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 18) | def is_cache_model(): method new_instance (line 22) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 35) | def check_auth(self, api_key): method get_upload_policy (line 38) | def get_upload_policy(self, api_key, model_name): method upload_file_to_oss (line 60) | def upload_file_to_oss(self, policy_data, file_stream, file_name): method upload_file_and_get_url (line 84) | def upload_file_and_get_url(self, file_stream, file_name): method stream (line 104) | def stream( FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/llm.py class BaiLianChatModel (line 9) | class BaiLianChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 11) | def is_cache_model(): method new_instance (line 15) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/reranker.py class AliyunBaiLianReranker (line 20) | class AliyunBaiLianReranker(MaxKBBaseModel, BaseDocumentCompressor): method is_cache_model (line 27) | def is_cache_model(): method new_instance (line 31) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method compress_documents (line 36) | def compress_documents(self, documents: Sequence[Document], query: str... FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/stt/asr_stt.py class AliyunBaiLianAsrSpeechToText (line 13) | class AliyunBaiLianAsrSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 19) | def __init__(self, **kwargs): method is_cache_model (line 27) | def is_cache_model(): method new_instance (line 31) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 40) | def check_auth(self): method speech_to_text (line 45) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/stt/default_stt.py class AliyunBaiLianDefaultSpeechToText (line 17) | class AliyunBaiLianDefaultSpeechToText(MaxKBBaseModel, BaseSpeechToText): method check_auth (line 18) | def check_auth(self): method speech_to_text (line 21) | def speech_to_text(self, audio_file): method is_cache_model (line 25) | def is_cache_model(): method new_instance (line 29) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/stt/omni_stt.py class AliyunBaiLianOmiSpeechToText (line 13) | class AliyunBaiLianOmiSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 19) | def __init__(self, **kwargs): method is_cache_model (line 27) | def is_cache_model(): method new_instance (line 31) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 41) | def check_auth(self): method speech_to_text (line 48) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/stt/stt.py class AliyunBaiLianSpeechToText (line 13) | class AliyunBaiLianSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 18) | def __init__(self, **kwargs): method is_cache_model (line 26) | def is_cache_model(): method new_instance (line 30) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 43) | def check_auth(self): method speech_to_text (line 48) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/tti.py class QwenTextToImageModel (line 13) | class QwenTextToImageModel(MaxKBBaseModel, BaseTextToImage): method __init__ (line 19) | def __init__(self, **kwargs): method is_cache_model (line 27) | def is_cache_model(): method new_instance (line 31) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 48) | def check_auth(self): method generate_image (line 67) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/tts.py class AliyunBaiLianTextToSpeech (line 12) | class AliyunBaiLianTextToSpeech(MaxKBBaseModel, BaseTextToSpeech): method __init__ (line 17) | def __init__(self, **kwargs): method is_cache_model (line 24) | def is_cache_model(): method new_instance (line 28) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 40) | def check_auth(self): method text_to_speech (line 43) | def text_to_speech(self, text): FILE: apps/models_provider/impl/aliyun_bai_lian_model_provider/model/ttv.py class GenerationVideoModel (line 13) | class GenerationVideoModel(MaxKBBaseModel, BaseGenerationVideo): method __init__ (line 20) | def __init__(self, **kwargs): method is_cache_model (line 29) | def is_cache_model(): method new_instance (line 33) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 44) | def check_auth(self): method _safe_call (line 47) | def _safe_call(self, func, **kwargs): method generate_video (line 61) | def generate_video(self, prompt, negative_prompt=None, first_frame_url... FILE: apps/models_provider/impl/anthropic_model_provider/anthropic_model_provider.py class AnthropicModelProvider (line 54) | class AnthropicModelProvider(IModelProvider): method get_model_info_manage (line 56) | def get_model_info_manage(self): method get_model_provide_info (line 59) | def get_model_provide_info(self): FILE: apps/models_provider/impl/anthropic_model_provider/credential/image.py class AnthropicImageModelParams (line 14) | class AnthropicImageModelParams(BaseForm): class AnthropicImageModelCredential (line 33) | class AnthropicImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 37) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 68) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 71) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/anthropic_model_provider/credential/llm.py class AnthropicLLMModelParams (line 20) | class AnthropicLLMModelParams(BaseForm): class AnthropicLLMModelCredential (line 39) | class AnthropicLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 41) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 70) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 76) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/anthropic_model_provider/model/image.py function custom_get_token_ids (line 9) | def custom_get_token_ids(text: str): class AnthropicImage (line 14) | class AnthropicImage(MaxKBBaseModel, ChatAnthropic): method is_cache_model (line 17) | def is_cache_model(): method new_instance (line 21) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/anthropic_model_provider/model/llm.py function custom_get_token_ids (line 18) | def custom_get_token_ids(text: str): class AnthropicChatModel (line 23) | class AnthropicChatModel(MaxKBBaseModel, ChatAnthropic): method is_cache_model (line 26) | def is_cache_model(): method new_instance (line 30) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_num_tokens_from_messages (line 41) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 48) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/aws_bedrock_model_provider/aws_bedrock_model_provider.py function _create_model_info (line 22) | def _create_model_info(model_name, description, model_type, credential_c... function _get_aws_bedrock_icon_path (line 32) | def _get_aws_bedrock_icon_path(): function _initialize_model_info (line 37) | def _initialize_model_info(): class BedrockModelProvider (line 190) | class BedrockModelProvider(IModelProvider): method __init__ (line 191) | def __init__(self): method get_model_info_manage (line 194) | def get_model_info_manage(self): method get_model_provide_info (line 197) | def get_model_provide_info(self): FILE: apps/models_provider/impl/aws_bedrock_model_provider/credential/embedding.py class BedrockEmbeddingCredential (line 12) | class BedrockEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 14) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 46) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/aws_bedrock_model_provider/credential/image.py class BedrockImageModelParams (line 13) | class BedrockImageModelParams(BaseForm): class BedrockVLModelCredential (line 32) | class BedrockVLModelCredential(BaseForm, BaseModelCredential): method is_valid (line 34) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 67) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 75) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/aws_bedrock_model_provider/credential/llm.py class BedrockLLMModelParams (line 12) | class BedrockLLMModelParams(BaseForm): class BedrockLLMModelCredential (line 31) | class BedrockLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 33) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 66) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 74) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/aws_bedrock_model_provider/credential/reranker.py class BedrockRerankerModelParams (line 13) | class BedrockRerankerModelParams(BaseForm): class BedrockRerankerCredential (line 23) | class BedrockRerankerCredential(BaseForm, BaseModelCredential): method is_valid (line 29) | def is_valid(self, model_type: str, model_name: str, model_credential:... method encryption_dict (line 62) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 66) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/aws_bedrock_model_provider/model/embedding.py class BedrockEmbeddingModel (line 9) | class BedrockEmbeddingModel(MaxKBBaseModel, BedrockEmbeddings): method __init__ (line 10) | def __init__(self, model_id: str, region_name: str, credentials_profil... method new_instance (line 16) | def new_instance(cls, model_type: str, model_name: str, model_credenti... method embed_documents (line 26) | def embed_documents(self, texts: List[str]) -> List[List[float]]: method embed_query (line 46) | def embed_query(self, text: str) -> List[float]: FILE: apps/models_provider/impl/aws_bedrock_model_provider/model/image.py class BedrockVLModel (line 18) | class BedrockVLModel(MaxKBBaseModel, ChatBedrock): method is_cache_model (line 25) | def is_cache_model(): method __init__ (line 28) | def __init__(self, model_id: str, region_name: str, credentials_profil... method new_instance (line 40) | def new_instance(cls, model_type: str, model_name: str, model_credenti... method get_num_tokens_from_messages (line 71) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 82) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/aws_bedrock_model_provider/model/llm.py function get_max_tokens_keyword (line 13) | def get_max_tokens_keyword(model_name): class BedrockModel (line 36) | class BedrockModel(MaxKBBaseModel, ChatBedrock): method is_cache_model (line 39) | def is_cache_model(): method __init__ (line 42) | def __init__(self, model_id: str, region_name: str, credentials_profil... method new_instance (line 49) | def new_instance(cls, model_type: str, model_name: str, model_credenti... method get_num_tokens_from_messages (line 77) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 84) | def get_num_tokens(self, text: str) -> int: function _update_aws_credentials (line 91) | def _update_aws_credentials(profile_name, access_key_id, secret_access_k... FILE: apps/models_provider/impl/aws_bedrock_model_provider/model/reranker.py class BedrockRerankerModel (line 15) | class BedrockRerankerModel(MaxKBBaseModel, BaseDocumentCompressor): method is_cache_model (line 28) | def is_cache_model(): method new_instance (line 32) | def new_instance(model_type: str, model_name: str, model_credential: D... method compress_documents (line 64) | def compress_documents(self, documents: Sequence[Document], query: str, FILE: apps/models_provider/impl/azure_model_provider/azure_model_provider.py class AzureModelProvider (line 108) | class AzureModelProvider(IModelProvider): method get_model_info_manage (line 110) | def get_model_info_manage(self): method get_model_provide_info (line 113) | def get_model_provide_info(self): FILE: apps/models_provider/impl/azure_model_provider/credential/embedding.py class AzureOpenAIEmbeddingCredential (line 19) | class AzureOpenAIEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 21) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 49) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/azure_model_provider/credential/image.py class AzureOpenAIImageModelParams (line 16) | class AzureOpenAIImageModelParams(BaseForm): class AzureOpenAIImageModelCredential (line 35) | class AzureOpenAIImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 40) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 71) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 74) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/azure_model_provider/credential/llm.py class AzureLLMModelParams (line 21) | class AzureLLMModelParams(BaseForm): class o3MiniLLMModelParams (line 40) | class o3MiniLLMModelParams(BaseForm): class AzureLLMModelCredential (line 51) | class AzureLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 53) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 81) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 92) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/azure_model_provider/credential/stt.py class AzureOpenAISTTModelCredential (line 12) | class AzureOpenAISTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 17) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 45) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 48) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/azure_model_provider/credential/tti.py class AzureOpenAITTIModelParams (line 12) | class AzureOpenAITTIModelParams(BaseForm): class AzureOpenAITextToImageModelCredential (line 47) | class AzureOpenAITextToImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 52) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 81) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 84) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/azure_model_provider/credential/tts.py class AzureOpenAITTSModelGeneralParams (line 12) | class AzureOpenAITTSModelGeneralParams(BaseForm): class AzureOpenAITTSModelCredential (line 30) | class AzureOpenAITTSModelCredential(BaseForm, BaseModelCredential): method is_valid (line 35) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 63) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 66) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/azure_model_provider/model/azure_chat_model.py class AzureChatModel (line 21) | class AzureChatModel(MaxKBBaseModel, AzureChatOpenAI): method is_cache_model (line 23) | def is_cache_model(): method new_instance (line 27) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_last_generation_info (line 41) | def get_last_generation_info(self) -> Optional[Dict[str, Any]]: method get_num_tokens_from_messages (line 44) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 51) | def get_num_tokens(self, text: str) -> int: method invoke (line 58) | def invoke( FILE: apps/models_provider/impl/azure_model_provider/model/embedding.py class AzureOpenAIEmbeddingModel (line 16) | class AzureOpenAIEmbeddingModel(MaxKBBaseModel, AzureOpenAIEmbeddings): method new_instance (line 18) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/azure_model_provider/model/image.py function custom_get_token_ids (line 10) | def custom_get_token_ids(text: str): class AzureOpenAIImage (line 15) | class AzureOpenAIImage(MaxKBBaseModel, AzureChatOpenAI): method is_cache_model (line 18) | def is_cache_model(): method new_instance (line 22) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_num_tokens_from_messages (line 34) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 41) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/azure_model_provider/model/stt.py function custom_get_token_ids (line 11) | def custom_get_token_ids(text: str): class AzureOpenAISpeechToText (line 16) | class AzureOpenAISpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 23) | def __init__(self, **kwargs): method is_cache_model (line 31) | def is_cache_model(): method new_instance (line 35) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 50) | def check_auth(self): method speech_to_text (line 59) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/azure_model_provider/model/tti.py function custom_get_token_ids (line 10) | def custom_get_token_ids(text: str): class AzureOpenAITextToImage (line 15) | class AzureOpenAITextToImage(MaxKBBaseModel, BaseTextToImage): method __init__ (line 22) | def __init__(self, **kwargs): method is_cache_model (line 31) | def is_cache_model(): method new_instance (line 35) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 48) | def check_auth(self): method generate_image (line 54) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/azure_model_provider/model/tts.py function custom_get_token_ids (line 11) | def custom_get_token_ids(text: str): class AzureOpenAITextToSpeech (line 16) | class AzureOpenAITextToSpeech(MaxKBBaseModel, BaseTextToSpeech): method __init__ (line 23) | def __init__(self, **kwargs): method is_cache_model (line 32) | def is_cache_model(): method new_instance (line 36) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 49) | def check_auth(self): method text_to_speech (line 58) | def text_to_speech(self, text): FILE: apps/models_provider/impl/base_chat_open_ai.py function custom_get_token_ids (line 22) | def custom_get_token_ids(text: str): function _convert_delta_to_message_chunk (line 27) | def _convert_delta_to_message_chunk( class BaseChatOpenAI (line 85) | class BaseChatOpenAI(ChatOpenAI): method get_last_generation_info (line 89) | def get_last_generation_info(self) -> Optional[Dict[str, Any]]: method get_num_tokens_from_messages (line 92) | def get_num_tokens_from_messages( method get_num_tokens (line 117) | def get_num_tokens(self, text: str) -> int: method _stream (line 127) | def _stream(self, *args: Any, **kwargs: Any) -> Iterator[ChatGeneratio... method _convert_chunk_to_generation_chunk (line 134) | def _convert_chunk_to_generation_chunk( method invoke (line 196) | def invoke( method upload_file_and_get_url (line 224) | def upload_file_and_get_url(self, file_stream, file_name): function get_video_format (line 231) | def get_video_format(file_name): FILE: apps/models_provider/impl/base_stt.py class BaseSpeechToText (line 7) | class BaseSpeechToText(BaseModel): method check_auth (line 9) | def check_auth(self): method speech_to_text (line 13) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/base_tti.py class BaseTextToImage (line 7) | class BaseTextToImage(BaseModel): method check_auth (line 9) | def check_auth(self): method generate_image (line 13) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/base_tts.py class BaseTextToSpeech (line 7) | class BaseTextToSpeech(BaseModel): method check_auth (line 9) | def check_auth(self): method text_to_speech (line 13) | def text_to_speech(self, text): FILE: apps/models_provider/impl/deepseek_model_provider/credential/llm.py class DeepSeekLLMModelParams (line 21) | class DeepSeekLLMModelParams(BaseForm): class DeepSeekLLMModelCredential (line 40) | class DeepSeekLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 42) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 71) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 78) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/deepseek_model_provider/deepseek_model_provider.py class DeepSeekModelProvider (line 39) | class DeepSeekModelProvider(IModelProvider): method get_model_info_manage (line 41) | def get_model_info_manage(self): method get_model_provide_info (line 44) | def get_model_provide_info(self): FILE: apps/models_provider/impl/deepseek_model_provider/model/llm.py class DeepSeekChatModel (line 19) | class DeepSeekChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 22) | def is_cache_model(): method new_instance (line 26) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method _get_request_payload (line 37) | def _get_request_payload( FILE: apps/models_provider/impl/docker_ai_model_provider/credential/embedding.py class DockerAIEmbeddingModelParams (line 19) | class DockerAIEmbeddingModelParams(BaseForm): class DockerAIEmbeddingCredential (line 38) | class DockerAIEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 39) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 67) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 70) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/docker_ai_model_provider/credential/image.py class DockerAIImageModelParams (line 16) | class DockerAIImageModelParams(BaseForm): class DockerAIImageModelCredential (line 35) | class DockerAIImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 39) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 70) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 73) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/docker_ai_model_provider/credential/llm.py class DockerAILLMModelParams (line 21) | class DockerAILLMModelParams(BaseForm): class DockerAILLMModelCredential (line 40) | class DockerAILLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 42) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 72) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 78) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/docker_ai_model_provider/credential/reranker.py class DockerAIRerankerCredential (line 21) | class DockerAIRerankerCredential(BaseForm, BaseModelCredential): method is_valid (line 23) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 49) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/docker_ai_model_provider/credential/stt.py class DockerAISTTModelParams (line 12) | class DockerAISTTModelParams(BaseForm): class DockerAISTTModelCredential (line 19) | class DockerAISTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 23) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 51) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 54) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/docker_ai_model_provider/credential/tti.py class DockerAITTIModelParams (line 12) | class DockerAITTIModelParams(BaseForm): class DockerAITextToImageModelCredential (line 51) | class DockerAITextToImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 55) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 84) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 87) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/docker_ai_model_provider/credential/tts.py class DockerAITTSModelGeneralParams (line 12) | class DockerAITTSModelGeneralParams(BaseForm): class DockerAITTSModelCredential (line 30) | class DockerAITTSModelCredential(BaseForm, BaseModelCredential): method is_valid (line 34) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 63) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 66) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/docker_ai_model_provider/docker_ai_model_provider.py class DockerModelProvider (line 95) | class DockerModelProvider(IModelProvider): method get_model_info_manage (line 97) | def get_model_info_manage(self): method get_model_provide_info (line 100) | def get_model_provide_info(self): FILE: apps/models_provider/impl/docker_ai_model_provider/model/embedding.py class DockerAIEmbeddingModel (line 16) | class DockerAIEmbeddingModel(MaxKBBaseModel): method __init__ (line 20) | def __init__(self, api_key, base_url, model_name: str, optional_params... method is_cache_model (line 25) | def is_cache_model(self): method new_instance (line 29) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method embed_query (line 38) | def embed_query(self, text: str): method embed_documents (line 42) | def embed_documents( FILE: apps/models_provider/impl/docker_ai_model_provider/model/image.py class DockerAIImage (line 7) | class DockerAIImage(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 10) | def is_cache_model(): method new_instance (line 14) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/docker_ai_model_provider/model/llm.py function custom_get_token_ids (line 18) | def custom_get_token_ids(text: str): class DockerAIChatModel (line 23) | class DockerAIChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 26) | def is_cache_model(): method new_instance (line 30) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_num_tokens_from_messages (line 45) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 52) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/docker_ai_model_provider/model/reranker.py class DockerAIReranker (line 19) | class DockerAIReranker(MaxKBBaseModel, BaseDocumentCompressor): method new_instance (line 26) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method compress_documents (line 33) | def compress_documents(self, documents: Sequence[Document], query: str... FILE: apps/models_provider/impl/docker_ai_model_provider/model/stt.py function custom_get_token_ids (line 12) | def custom_get_token_ids(text: str): class DockerAISpeechToText (line 17) | class DockerAISpeechToText(MaxKBBaseModel, BaseSpeechToText): method is_cache_model (line 24) | def is_cache_model(): method __init__ (line 27) | def __init__(self, **kwargs): method new_instance (line 35) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 49) | def check_auth(self): method speech_to_text (line 57) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/docker_ai_model_provider/model/tti.py function custom_get_token_ids (line 10) | def custom_get_token_ids(text: str): class DockerAITextToImage (line 15) | class DockerAITextToImage(MaxKBBaseModel, BaseTextToImage): method __init__ (line 21) | def __init__(self, **kwargs): method is_cache_model (line 29) | def is_cache_model(): method new_instance (line 33) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 45) | def check_auth(self): method generate_image (line 51) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/docker_ai_model_provider/model/tts.py function custom_get_token_ids (line 11) | def custom_get_token_ids(text: str): class DockerAITextToSpeech (line 16) | class DockerAITextToSpeech(MaxKBBaseModel, BaseTextToSpeech): method __init__ (line 22) | def __init__(self, **kwargs): method is_cache_model (line 30) | def is_cache_model(): method new_instance (line 34) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 46) | def check_auth(self): method text_to_speech (line 54) | def text_to_speech(self, text): FILE: apps/models_provider/impl/gemini_model_provider/credential/embedding.py class GeminiEmbeddingCredential (line 19) | class GeminiEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 20) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 48) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/gemini_model_provider/credential/image.py class GeminiImageModelParams (line 14) | class GeminiImageModelParams(BaseForm): class GeminiImageModelCredential (line 33) | class GeminiImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 37) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 68) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 71) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/gemini_model_provider/credential/llm.py class GeminiLLMModelParams (line 20) | class GeminiLLMModelParams(BaseForm): class GeminiLLMModelCredential (line 39) | class GeminiLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 41) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 70) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 76) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/gemini_model_provider/credential/stt.py class GeminiSTTModelCredential (line 12) | class GeminiSTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 15) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 43) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 46) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/gemini_model_provider/credential/tti.py class GeminiTTIModelParams (line 13) | class GeminiTTIModelParams(BaseForm): class GeminiTextToImageModelCredential (line 17) | class GeminiTextToImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 22) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 51) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 54) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/gemini_model_provider/gemini_model_provider.py class GeminiModelProvider (line 101) | class GeminiModelProvider(IModelProvider): method get_model_info_manage (line 103) | def get_model_info_manage(self): method get_model_provide_info (line 106) | def get_model_provide_info(self): FILE: apps/models_provider/impl/gemini_model_provider/model/embedding.py class GeminiEmbeddingModel (line 16) | class GeminiEmbeddingModel(MaxKBBaseModel, GoogleGenerativeAIEmbeddings): method new_instance (line 18) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/gemini_model_provider/model/image.py function custom_get_token_ids (line 9) | def custom_get_token_ids(text: str): class GeminiImage (line 14) | class GeminiImage(MaxKBBaseModel, ChatGoogleGenerativeAI): method is_cache_model (line 17) | def is_cache_model(): method new_instance (line 21) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/gemini_model_provider/model/llm.py class GeminiChatModel (line 18) | class GeminiChatModel(MaxKBBaseModel, ChatGoogleGenerativeAI): method is_cache_model (line 21) | def is_cache_model(): method new_instance (line 25) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_last_generation_info (line 38) | def get_last_generation_info(self) -> Optional[Dict[str, Any]]: method get_num_tokens_from_messages (line 41) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 48) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/gemini_model_provider/model/stt.py function custom_get_token_ids (line 12) | def custom_get_token_ids(text: str): class GeminiSpeechToText (line 17) | class GeminiSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 21) | def __init__(self, **kwargs): method is_cache_model (line 26) | def is_cache_model(): method new_instance (line 30) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 42) | def check_auth(self): method speech_to_text (line 50) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/gemini_model_provider/model/tti.py function custom_get_token_ids (line 11) | def custom_get_token_ids(text: str): class GeminiTextToImage (line 16) | class GeminiTextToImage(MaxKBBaseModel, BaseTextToImage): method __init__ (line 22) | def __init__(self, **kwargs): method is_cache_model (line 30) | def is_cache_model(): method new_instance (line 34) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 46) | def check_auth(self): method generate_image (line 49) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/kimi_model_provider/credential/llm.py class KimiLLMModelParams (line 20) | class KimiLLMModelParams(BaseForm): class KimiLLMModelCredential (line 39) | class KimiLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 41) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 69) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 75) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/kimi_model_provider/kimi_model_provider.py class KimiModelProvider (line 31) | class KimiModelProvider(IModelProvider): method get_model_info_manage (line 33) | def get_model_info_manage(self): method get_dialogue_number (line 36) | def get_dialogue_number(self): method get_model_provide_info (line 39) | def get_model_provide_info(self): FILE: apps/models_provider/impl/kimi_model_provider/model/llm.py class KimiChatModel (line 15) | class KimiChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 18) | def is_cache_model(): method new_instance (line 22) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/local_model_provider/credential/embedding/model.py class LocalEmbeddingCredential (line 20) | class LocalEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 22) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 49) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/local_model_provider/credential/embedding/web.py class LocalEmbeddingCredential (line 20) | class LocalEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 22) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 34) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/local_model_provider/credential/reranker/model.py class LocalRerankerCredential (line 21) | class LocalRerankerCredential(BaseForm, BaseModelCredential): method is_valid (line 23) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 50) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/local_model_provider/credential/reranker/web.py class LocalRerankerCredential (line 20) | class LocalRerankerCredential(BaseForm, BaseModelCredential): method is_valid (line 22) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 34) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/local_model_provider/local_model_provider.py class LocalModelProvider (line 34) | class LocalModelProvider(IModelProvider): method get_model_info_manage (line 36) | def get_model_info_manage(self): method get_model_provide_info (line 39) | def get_model_provide_info(self): FILE: apps/models_provider/impl/local_model_provider/model/embedding/model.py class LocalEmbedding (line 19) | class LocalEmbedding(MaxKBBaseModel, HuggingFaceEmbeddings): method is_cache_model (line 21) | def is_cache_model(): method new_instance (line 25) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/local_model_provider/model/embedding/web.py class LocalEmbedding (line 20) | class LocalEmbedding(MaxKBBaseModel, BaseModel, Embeddings): method __init__ (line 21) | def __init__(self, **kwargs): method new_instance (line 26) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method embed_query (line 34) | def embed_query(self, text: str) -> List[float]: method embed_documents (line 45) | def embed_documents(self, texts: List[str]) -> List[List[float]]: FILE: apps/models_provider/impl/local_model_provider/model/reranker/model.py class LocalReranker (line 18) | class LocalReranker(MaxKBBaseModel, BaseDocumentCompressor): method __init__ (line 25) | def __init__(self, model_name, cache_dir=None, **model_kwargs): method is_cache_model (line 37) | def is_cache_model(): method new_instance (line 41) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method compress_documents (line 44) | def compress_documents(self, documents: Sequence[Document], query: str... FILE: apps/models_provider/impl/local_model_provider/model/reranker/web.py class LocalReranker (line 20) | class LocalReranker(MaxKBBaseModel, BaseModel, BaseDocumentCompressor): method is_cache_model (line 23) | def is_cache_model(): method new_instance (line 27) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method __init__ (line 33) | def __init__(self, **kwargs): method compress_documents (line 37) | def compress_documents(self, documents: Sequence[Document], query: str... FILE: apps/models_provider/impl/ollama_model_provider/credential/embedding.py class OllamaEmbeddingModelCredential (line 20) | class OllamaEmbeddingModelCredential(BaseForm, BaseModelCredential): method is_valid (line 21) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 40) | def encryption_dict(self, model_info: Dict[str, object]): method build_model (line 43) | def build_model(self, model_info: Dict[str, object]): FILE: apps/models_provider/impl/ollama_model_provider/credential/image.py class OllamaImageModelParams (line 11) | class OllamaImageModelParams(BaseForm): class OllamaImageModelCredential (line 30) | class OllamaImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 34) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 52) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 55) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/ollama_model_provider/credential/llm.py class OllamaLLMModelParams (line 19) | class OllamaLLMModelParams(BaseForm): class OllamaLLMModelCredential (line 38) | class OllamaLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 39) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 56) | def encryption_dict(self, model_info: Dict[str, object]): method build_model (line 59) | def build_model(self, model_info: Dict[str, object]): method get_model_params_setting_form (line 69) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/ollama_model_provider/credential/reranker.py class OllamaReRankModelCredential (line 22) | class OllamaReRankModelCredential(BaseForm, BaseModelCredential): method is_valid (line 23) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 57) | def encryption_dict(self, model_info: Dict[str, object]): method build_model (line 60) | def build_model(self, model_info: Dict[str, object]): FILE: apps/models_provider/impl/ollama_model_provider/model/embedding.py class OllamaEmbedding (line 17) | class OllamaEmbedding(MaxKBBaseModel, OllamaEmbeddings): method new_instance (line 19) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method embed_documents (line 25) | def embed_documents(self, texts: List[str]) -> List[List[float]]: method embed_query (line 38) | def embed_query(self, text: str) -> List[float]: FILE: apps/models_provider/impl/ollama_model_provider/model/image.py function get_base_url (line 8) | def get_base_url(url: str): class OllamaImage (line 16) | class OllamaImage(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 19) | def is_cache_model(): method new_instance (line 23) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/ollama_model_provider/model/llm.py function get_base_url (line 20) | def get_base_url(url: str): class OllamaChatModel (line 28) | class OllamaChatModel(MaxKBBaseModel, ChatOllama): method is_cache_model (line 30) | def is_cache_model(): method new_instance (line 34) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_num_tokens_from_messages (line 42) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 46) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/ollama_model_provider/model/reranker.py class OllamaReranker (line 11) | class OllamaReranker(MaxKBBaseModel, OllamaEmbeddings, BaseModel): method new_instance (line 15) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method compress_documents (line 23) | def compress_documents(self, documents: Sequence[Document], query: str... FILE: apps/models_provider/impl/ollama_model_provider/ollama_model_provider.py function get_base_url (line 207) | def get_base_url(url: str): function convert_to_down_model_chunk (line 215) | def convert_to_down_model_chunk(row_str: str, chunk_index: int): function convert (line 235) | def convert(response_stream) -> Iterator[DownModelChunk]: class OllamaModelProvider (line 254) | class OllamaModelProvider(IModelProvider): method get_model_info_manage (line 255) | def get_model_info_manage(self): method get_model_provide_info (line 258) | def get_model_provide_info(self): method get_base_model_list (line 264) | def get_base_model_list(api_base): method down_model (line 270) | def down_model(self, model_type: str, model_name, model_credential: Di... FILE: apps/models_provider/impl/openai_model_provider/credential/embedding.py class OpenAIEmbeddingModelParams (line 19) | class OpenAIEmbeddingModelParams(BaseForm): class OpenAIEmbeddingCredential (line 38) | class OpenAIEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 39) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 67) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 70) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/openai_model_provider/credential/image.py class OpenAIImageModelParams (line 16) | class OpenAIImageModelParams(BaseForm): class OpenAIImageModelCredential (line 35) | class OpenAIImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 39) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 70) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 73) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/openai_model_provider/credential/llm.py class OpenAILLMModelParams (line 21) | class OpenAILLMModelParams(BaseForm): class OpenAILLMModelCredential (line 40) | class OpenAILLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 42) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 72) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 78) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/openai_model_provider/credential/stt.py class OpenAISTTModelParams (line 12) | class OpenAISTTModelParams(BaseForm): class OpenAISTTModelCredential (line 19) | class OpenAISTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 23) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 51) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 54) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/openai_model_provider/credential/tti.py class OpenAITTIModelParams (line 12) | class OpenAITTIModelParams(BaseForm): class OpenAITextToImageModelCredential (line 51) | class OpenAITextToImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 55) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 84) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 87) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/openai_model_provider/credential/tts.py class OpenAITTSModelGeneralParams (line 12) | class OpenAITTSModelGeneralParams(BaseForm): class OpenAITTSModelCredential (line 30) | class OpenAITTSModelCredential(BaseForm, BaseModelCredential): method is_valid (line 34) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 63) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 66) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/openai_model_provider/model/embedding.py class OpenAIEmbeddingModel (line 16) | class OpenAIEmbeddingModel(MaxKBBaseModel): method __init__ (line 20) | def __init__(self, api_key, base_url, model_name: str, optional_params... method is_cache_model (line 25) | def is_cache_model(self): method new_instance (line 29) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method embed_query (line 38) | def embed_query(self, text: str): method embed_documents (line 42) | def embed_documents( FILE: apps/models_provider/impl/openai_model_provider/model/image.py class OpenAIImage (line 7) | class OpenAIImage(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 10) | def is_cache_model(): method new_instance (line 14) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/openai_model_provider/model/llm.py function custom_get_token_ids (line 18) | def custom_get_token_ids(text: str): class OpenAIChatModel (line 23) | class OpenAIChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 26) | def is_cache_model(): method new_instance (line 30) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_num_tokens_from_messages (line 45) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 52) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/openai_model_provider/model/stt.py function custom_get_token_ids (line 12) | def custom_get_token_ids(text: str): class OpenAISpeechToText (line 17) | class OpenAISpeechToText(MaxKBBaseModel, BaseSpeechToText): method is_cache_model (line 24) | def is_cache_model(): method __init__ (line 27) | def __init__(self, **kwargs): method new_instance (line 35) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 49) | def check_auth(self): method speech_to_text (line 57) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/openai_model_provider/model/tti.py function custom_get_token_ids (line 10) | def custom_get_token_ids(text: str): class OpenAITextToImage (line 15) | class OpenAITextToImage(MaxKBBaseModel, BaseTextToImage): method __init__ (line 21) | def __init__(self, **kwargs): method is_cache_model (line 29) | def is_cache_model(): method new_instance (line 33) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 45) | def check_auth(self): method generate_image (line 51) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/openai_model_provider/model/tts.py function custom_get_token_ids (line 11) | def custom_get_token_ids(text: str): class OpenAITextToSpeech (line 16) | class OpenAITextToSpeech(MaxKBBaseModel, BaseTextToSpeech): method __init__ (line 22) | def __init__(self, **kwargs): method is_cache_model (line 30) | def is_cache_model(): method new_instance (line 34) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 46) | def check_auth(self): method text_to_speech (line 54) | def text_to_speech(self, text): FILE: apps/models_provider/impl/openai_model_provider/openai_model_provider.py class OpenAIModelProvider (line 136) | class OpenAIModelProvider(IModelProvider): method get_model_info_manage (line 138) | def get_model_info_manage(self): method get_model_provide_info (line 141) | def get_model_provide_info(self): FILE: apps/models_provider/impl/regolo_model_provider/credential/embedding.py class RegoloEmbeddingCredential (line 20) | class RegoloEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 21) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 49) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/regolo_model_provider/credential/image.py class RegoloImageModelParams (line 17) | class RegoloImageModelParams(BaseForm): class RegoloImageModelCredential (line 36) | class RegoloImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 40) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 69) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 72) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/regolo_model_provider/credential/llm.py class RegoloLLMModelParams (line 21) | class RegoloLLMModelParams(BaseForm): class RegoloLLMModelCredential (line 40) | class RegoloLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 42) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 72) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 78) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/regolo_model_provider/credential/tti.py class RegoloTTIModelParams (line 12) | class RegoloTTIModelParams(BaseForm): class RegoloTextToImageModelCredential (line 51) | class RegoloTextToImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 55) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 84) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 87) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/regolo_model_provider/model/embedding.py class RegoloEmbeddingModel (line 16) | class RegoloEmbeddingModel(MaxKBBaseModel, OpenAIEmbeddings): method new_instance (line 18) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/regolo_model_provider/model/image.py class RegoloImage (line 7) | class RegoloImage(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 10) | def is_cache_model(): method new_instance (line 14) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/regolo_model_provider/model/llm.py function custom_get_token_ids (line 19) | def custom_get_token_ids(text: str): class RegoloChatModel (line 24) | class RegoloChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 27) | def is_cache_model(): method new_instance (line 31) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/regolo_model_provider/model/tti.py function custom_get_token_ids (line 10) | def custom_get_token_ids(text: str): class RegoloTextToImage (line 15) | class RegoloTextToImage(MaxKBBaseModel, BaseTextToImage): method __init__ (line 21) | def __init__(self, **kwargs): method is_cache_model (line 29) | def is_cache_model(): method new_instance (line 33) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 45) | def check_auth(self): method generate_image (line 51) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/regolo_model_provider/regolo_model_provider.py class RegoloModelProvider (line 79) | class RegoloModelProvider(IModelProvider): method get_model_info_manage (line 81) | def get_model_info_manage(self): method get_model_provide_info (line 84) | def get_model_provide_info(self): FILE: apps/models_provider/impl/siliconCloud_model_provider/credential/embedding.py class SiliconCloudEmbeddingCredential (line 19) | class SiliconCloudEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 20) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 48) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/siliconCloud_model_provider/credential/image.py class SiliconCloudImageModelParams (line 16) | class SiliconCloudImageModelParams(BaseForm): class SiliconCloudImageModelCredential (line 35) | class SiliconCloudImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 39) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 70) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 73) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/siliconCloud_model_provider/credential/llm.py class SiliconCloudLLMModelParams (line 20) | class SiliconCloudLLMModelParams(BaseForm): class SiliconCloudLLMModelCredential (line 39) | class SiliconCloudLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 41) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 71) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 77) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/siliconCloud_model_provider/credential/reranker.py class SiliconCloudRerankerCredential (line 21) | class SiliconCloudRerankerCredential(BaseForm, BaseModelCredential): method is_valid (line 23) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 49) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/siliconCloud_model_provider/credential/stt.py class SiliconCloudSTTModelCredential (line 12) | class SiliconCloudSTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 16) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 44) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 47) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/siliconCloud_model_provider/credential/tti.py class SiliconCloudTTIModelParams (line 12) | class SiliconCloudTTIModelParams(BaseForm): class SiliconCloudTextToImageModelCredential (line 51) | class SiliconCloudTextToImageModelCredential(BaseForm, BaseModelCredenti... method is_valid (line 55) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 84) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 87) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/siliconCloud_model_provider/credential/tts.py class SiliconCloudTTSModelGeneralParams (line 12) | class SiliconCloudTTSModelGeneralParams(BaseForm): class SiliconCloudTTSModelCredential (line 32) | class SiliconCloudTTSModelCredential(BaseForm, BaseModelCredential): method is_valid (line 36) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 65) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 69) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/siliconCloud_model_provider/model/embedding.py class SiliconCloudEmbeddingModel (line 16) | class SiliconCloudEmbeddingModel(MaxKBBaseModel): method __init__ (line 22) | def __init__(self, api_key, model_name: str, base_url, optional_params... method is_cache_model (line 28) | def is_cache_model(self): method new_instance (line 32) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method embed_query (line 41) | def embed_query(self, text: str) -> list: method embed_documents (line 62) | def embed_documents(self, texts: list) -> list: FILE: apps/models_provider/impl/siliconCloud_model_provider/model/image.py class SiliconCloudImage (line 7) | class SiliconCloudImage(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 10) | def is_cache_model(): method new_instance (line 14) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/siliconCloud_model_provider/model/llm.py function custom_get_token_ids (line 19) | def custom_get_token_ids(text: str): class SiliconCloudChatModel (line 24) | class SiliconCloudChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 27) | def is_cache_model(): method new_instance (line 31) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/siliconCloud_model_provider/model/reranker.py class SiliconCloudReranker (line 20) | class SiliconCloudReranker(MaxKBBaseModel, BaseDocumentCompressor): method new_instance (line 31) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method compress_documents (line 39) | def compress_documents(self, documents: Sequence[Document], query: str... FILE: apps/models_provider/impl/siliconCloud_model_provider/model/stt.py function custom_get_token_ids (line 12) | def custom_get_token_ids(text: str): class SiliconCloudSpeechToText (line 17) | class SiliconCloudSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 23) | def __init__(self, **kwargs): method new_instance (line 30) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method is_cache_model (line 45) | def is_cache_model(): method check_auth (line 48) | def check_auth(self): method speech_to_text (line 56) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/siliconCloud_model_provider/model/tti.py function custom_get_token_ids (line 10) | def custom_get_token_ids(text: str): class SiliconCloudTextToImage (line 15) | class SiliconCloudTextToImage(MaxKBBaseModel, BaseTextToImage): method __init__ (line 21) | def __init__(self, **kwargs): method is_cache_model (line 29) | def is_cache_model(): method new_instance (line 33) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 45) | def check_auth(self): method generate_image (line 51) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/siliconCloud_model_provider/model/tts.py function custom_get_token_ids (line 11) | def custom_get_token_ids(text: str): class SiliconCloudTextToSpeech (line 16) | class SiliconCloudTextToSpeech(MaxKBBaseModel, BaseTextToSpeech): method __init__ (line 22) | def __init__(self, **kwargs): method new_instance (line 30) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 42) | def check_auth(self): method text_to_speech (line 50) | def text_to_speech(self, text): method is_cache_model (line 63) | def is_cache_model(self): FILE: apps/models_provider/impl/siliconCloud_model_provider/siliconCloud_model_provider.py class SiliconCloudModelProvider (line 148) | class SiliconCloudModelProvider(IModelProvider): method get_model_info_manage (line 150) | def get_model_info_manage(self): method get_model_provide_info (line 153) | def get_model_provide_info(self): FILE: apps/models_provider/impl/tencent_cloud_model_provider/credential/llm.py class TencentCloudLLMModelParams (line 20) | class TencentCloudLLMModelParams(BaseForm): class TencentCloudLLMModelCredential (line 39) | class TencentCloudLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 41) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 71) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 77) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/tencent_cloud_model_provider/model/llm.py function custom_get_token_ids (line 16) | def custom_get_token_ids(text: str): class TencentCloudChatModel (line 21) | class TencentCloudChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 24) | def is_cache_model(): method new_instance (line 28) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/tencent_cloud_model_provider/tencent_cloud_model_provider.py class TencentCloudModelProvider (line 52) | class TencentCloudModelProvider(IModelProvider): method get_model_info_manage (line 54) | def get_model_info_manage(self): method get_model_provide_info (line 57) | def get_model_provide_info(self): FILE: apps/models_provider/impl/tencent_model_provider/credential/embedding.py class TencentEmbeddingCredential (line 11) | class TencentEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 13) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 35) | def encryption_dict(self, model: Dict[str, object]) -> Dict[str, object]: FILE: apps/models_provider/impl/tencent_model_provider/credential/image.py class TencentModelParams (line 21) | class TencentModelParams(BaseForm): class TencentVisionModelCredential (line 40) | class TencentVisionModelCredential(BaseForm, BaseModelCredential): method is_valid (line 42) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 72) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 78) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/tencent_model_provider/credential/llm.py class TencentLLMModelParams (line 12) | class TencentLLMModelParams(BaseForm): class TencentLLMModelCredential (line 22) | class TencentLLMModelCredential(BaseForm, BaseModelCredential): method _validate_model_type (line 26) | def _validate_model_type(cls, model_type, provider, raise_exception=Fa... method _validate_credential_fields (line 35) | def _validate_credential_fields(cls, model_credential, raise_exception... method is_valid (line 44) | def is_valid(self, model_type, model_name, model_credential, model_par... method encryption_dict (line 61) | def encryption_dict(self, model): method get_model_params_setting_form (line 68) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/tencent_model_provider/credential/tti.py class TencentTTIModelParams (line 11) | class TencentTTIModelParams(BaseForm): class TencentTTIModelCredential (line 69) | class TencentTTIModelCredential(BaseForm, BaseModelCredential): method _validate_model_type (line 73) | def _validate_model_type(cls, model_type, provider, raise_exception=Fa... method _validate_credential_fields (line 82) | def _validate_credential_fields(cls, model_credential, raise_exception... method is_valid (line 91) | def is_valid(self, model_type, model_name, model_credential, model_par... method encryption_dict (line 108) | def encryption_dict(self, model): method get_model_params_setting_form (line 114) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/tencent_model_provider/model/embedding.py class TencentEmbeddingModel (line 12) | class TencentEmbeddingModel(MaxKBBaseModel, Embeddings): method embed_documents (line 13) | def embed_documents(self, texts: List[str]) -> List[List[float]]: method embed_query (line 16) | def embed_query(self, text: str) -> List[float]: method __init__ (line 22) | def __init__(self, secret_id: str, secret_key: str, model_name: str): method new_instance (line 32) | def new_instance(model_type: str, model_name: str, model_credential: D... method _generate_auth_token (line 39) | def _generate_auth_token(self): FILE: apps/models_provider/impl/tencent_model_provider/model/hunyuan.py function _convert_message_to_dict (line 32) | def _convert_message_to_dict(message: BaseMessage) -> dict: function _convert_dict_to_message (line 48) | def _convert_dict_to_message(_dict: Mapping[str, Any]) -> BaseMessage: function _convert_delta_to_message_chunk (line 58) | def _convert_delta_to_message_chunk( function _create_chat_result (line 74) | def _create_chat_result(response: Mapping[str, Any]) -> ChatResult: class ChatHunyuan (line 85) | class ChatHunyuan(BaseChatModel): method lc_secrets (line 92) | def lc_secrets(self) -> Dict[str, str]: method lc_serializable (line 100) | def lc_serializable(self) -> bool: class Config (line 137) | class Config: method build_extra (line 143) | def build_extra(cls, values: Dict[str, Any]) -> Dict[str, Any]: method validate_environment (line 169) | def validate_environment(cls, values: Dict) -> Dict: method _default_params (line 190) | def _default_params(self) -> Dict[str, Any]: method _generate (line 202) | def _generate( method _stream (line 220) | def _stream( method _chat (line 251) | def _chat(self, messages: List[BaseMessage], **kwargs: Any) -> Any: method _llm_type (line 279) | def _llm_type(self) -> str: FILE: apps/models_provider/impl/tencent_model_provider/model/image.py class TencentVision (line 7) | class TencentVision(MaxKBBaseModel, BaseChatOpenAI): method new_instance (line 10) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method is_cache_model (line 23) | def is_cache_model(): FILE: apps/models_provider/impl/tencent_model_provider/model/llm.py class TencentModel (line 11) | class TencentModel(MaxKBBaseModel, ChatHunyuan): method is_cache_model (line 13) | def is_cache_model(): method __init__ (line 16) | def __init__(self, model_name: str, credentials: Dict[str, str], strea... method new_instance (line 33) | def new_instance(model_type: str, model_name: str, model_credential: D... method get_last_generation_info (line 38) | def get_last_generation_info(self) -> Optional[Dict[str, Any]]: method get_num_tokens_from_messages (line 41) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 44) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/tencent_model_provider/model/tti.py class TencentTextToImageModel (line 20) | class TencentTextToImageModel(MaxKBBaseModel, BaseTextToImage): method is_cache_model (line 27) | def is_cache_model(): method __init__ (line 30) | def __init__(self, **kwargs): method new_instance (line 38) | def new_instance(model_type: str, model_name: str, model_credential: D... method check_auth (line 51) | def check_auth(self): method generate_image (line 59) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/tencent_model_provider/tencent_model_provider.py function _create_model_info (line 22) | def _create_model_info(model_name, description, model_type, credential_c... function _get_tencent_icon_path (line 32) | def _get_tencent_icon_path(): function _initialize_model_info (line 37) | def _initialize_model_info(): class TencentModelProvider (line 121) | class TencentModelProvider(IModelProvider): method __init__ (line 122) | def __init__(self): method get_model_info_manage (line 125) | def get_model_info_manage(self): method get_model_provide_info (line 128) | def get_model_provide_info(self): FILE: apps/models_provider/impl/vllm_model_provider/credential/embedding.py class VllmEmbeddingCredential (line 19) | class VllmEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 20) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 48) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/vllm_model_provider/credential/image.py class VllmImageModelParams (line 14) | class VllmImageModelParams(BaseForm): class VllmImageModelCredential (line 33) | class VllmImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 37) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 68) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 71) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/vllm_model_provider/credential/llm.py class VLLMModelParams (line 13) | class VLLMModelParams(BaseForm): class VLLMModelCredential (line 32) | class VLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 33) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 58) | def encryption_dict(self, model_info: Dict[str, object]): method build_model (line 61) | def build_model(self, model_info: Dict[str, object]): method get_model_params_setting_form (line 71) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/vllm_model_provider/credential/reranker.py class VllmRerankerCredential (line 14) | class VllmRerankerCredential(BaseForm, BaseModelCredential): method is_valid (line 18) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 49) | def encryption_dict(self, model_info: Dict[str, object]): FILE: apps/models_provider/impl/vllm_model_provider/credential/whisper_stt.py class VLLMWhisperModelParams (line 14) | class VLLMWhisperModelParams(BaseForm): class VLLMWhisperModelCredential (line 23) | class VLLMWhisperModelCredential(BaseForm, BaseModelCredential): method is_valid (line 27) | def is_valid(self, method encryption_dict (line 51) | def encryption_dict(self, model_info: Dict[str, object]): method build_model (line 54) | def build_model(self, model_info: Dict[str, object]): method get_model_params_setting_form (line 61) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/vllm_model_provider/model/embedding.py class VllmEmbeddingModel (line 16) | class VllmEmbeddingModel(MaxKBBaseModel, OpenAIEmbeddings): method new_instance (line 18) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/vllm_model_provider/model/image.py class VllmImage (line 10) | class VllmImage(MaxKBBaseModel, BaseChatOpenAI): method new_instance (line 13) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method is_cache_model (line 25) | def is_cache_model(self): method get_num_tokens_from_messages (line 28) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 34) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/vllm_model_provider/model/llm.py function get_base_url (line 13) | def get_base_url(url: str): class VllmChatModel (line 21) | class VllmChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 24) | def is_cache_model(): method new_instance (line 28) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_num_tokens_from_messages (line 40) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 46) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/vllm_model_provider/model/reranker.py class VllmBgeReranker (line 10) | class VllmBgeReranker(MaxKBBaseModel, BaseDocumentCompressor): method __init__ (line 17) | def __init__(self, **kwargs): method is_cache_model (line 26) | def is_cache_model(): method new_instance (line 30) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method compress_documents (line 40) | def compress_documents(self, documents: Sequence[Document], query: str... FILE: apps/models_provider/impl/vllm_model_provider/model/whisper_sst.py class VllmWhisperSpeechToText (line 14) | class VllmWhisperSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 20) | def __init__(self, **kwargs): method is_cache_model (line 28) | def is_cache_model(): method new_instance (line 32) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 41) | def check_auth(self): method speech_to_text (line 46) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/vllm_model_provider/vllm_model_provider.py function get_base_url (line 78) | def get_base_url(url: str): class VllmModelProvider (line 86) | class VllmModelProvider(IModelProvider): method get_model_info_manage (line 87) | def get_model_info_manage(self): method get_model_provide_info (line 90) | def get_model_provide_info(self): method get_base_model_list (line 96) | def get_base_model_list(api_base, api_key): method get_model_info_by_name (line 107) | def get_model_info_by_name(model_list, model_name): FILE: apps/models_provider/impl/volcanic_engine_model_provider/credential/bigModel_stt.py class VolcanicEngineBigModelSTTModelParams (line 13) | class VolcanicEngineBigModelSTTModelParams(BaseForm): class VolcanicEngineBigModelSTTModelCredential (line 21) | class VolcanicEngineBigModelSTTModelCredential(BaseForm, BaseModelCreden... method is_valid (line 27) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 55) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 58) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/volcanic_engine_model_provider/credential/embedding.py class VolcanicEmbeddingCredential (line 19) | class VolcanicEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 20) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 48) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/volcanic_engine_model_provider/credential/image.py class VolcanicEngineImageModelParams (line 14) | class VolcanicEngineImageModelParams(BaseForm): class VolcanicEngineImageModelCredential (line 33) | class VolcanicEngineImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 37) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 68) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 71) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/volcanic_engine_model_provider/credential/llm.py class VolcanicEngineLLMModelParams (line 20) | class VolcanicEngineLLMModelParams(BaseForm): class VolcanicEngineLLMModelCredential (line 39) | class VolcanicEngineLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 41) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 70) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 76) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/volcanic_engine_model_provider/credential/stt.py class VolcanicEngineSTTModelParams (line 12) | class VolcanicEngineSTTModelParams(BaseForm): class VolcanicEngineSTTModelCredential (line 21) | class VolcanicEngineSTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 28) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 56) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 59) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/volcanic_engine_model_provider/credential/tti.py class VolcanicEngineTTIModelGeneralParams (line 13) | class VolcanicEngineTTIModelGeneralParams(BaseForm): class VolcanicEngineTTIModelCredential (line 35) | class VolcanicEngineTTIModelCredential(BaseForm, BaseModelCredential): method is_valid (line 40) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 68) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 71) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/volcanic_engine_model_provider/credential/tts.py class VolcanicEngineTTSModelGeneralParams (line 12) | class VolcanicEngineTTSModelGeneralParams(BaseForm): class VolcanicEngineTTSModelCredential (line 38) | class VolcanicEngineTTSModelCredential(BaseForm, BaseModelCredential): method is_valid (line 45) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 73) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 76) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/volcanic_engine_model_provider/credential/ttv.py class VolcanicEngineTTVModelGeneralParams (line 13) | class VolcanicEngineTTVModelGeneralParams(BaseForm): class VolcanicEngineTTVModelCredential (line 54) | class VolcanicEngineTTVModelCredential(BaseForm, BaseModelCredential): method is_valid (line 57) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 85) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 88) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/volcanic_engine_model_provider/model/bigModel_stt.py function determine_api_mode (line 27) | def determine_api_mode(url): class VolcanicASRClient (line 41) | class VolcanicASRClient: method __init__ (line 42) | def __init__(self, appid, token): method _build_headers (line 46) | def _build_headers(self, url, task_id=None, x_tt_logid=None): method _create_request_body (line 76) | def _create_request_body(self, audio_data, mode='sync'): method process_audio (line 106) | def process_audio(self, audio_file=None, submit_url=None): method _get_audio_data (line 124) | def _get_audio_data(self, audio_file): method _sync_recognize (line 129) | def _sync_recognize(self, audio_data, submit_url): method _async_process (line 137) | def _async_process(self, audio_data, submit_url): method _poll_for_result (line 154) | def _poll_for_result(self, task_id, x_tt_logid): method _query_task (line 169) | def _query_task(self, task_id, x_tt_logid, query_url): method _handle_response (line 175) | def _handle_response(self, response, operation, silent=False): class VolcanicEngineBigModelSpeechToText (line 192) | class VolcanicEngineBigModelSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 198) | def __init__(self, **kwargs): method is_cache_model (line 206) | def is_cache_model(): method new_instance (line 210) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 223) | def check_auth(self): method speech_to_text (line 228) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/volcanic_engine_model_provider/model/embedding.py class VolcanicEngineEmbeddingModel (line 7) | class VolcanicEngineEmbeddingModel(MaxKBBaseModel): method __init__ (line 13) | def __init__(self, api_key: str, model: str, api_base: str, params: Di... method is_cache_model (line 22) | def is_cache_model(): method new_instance (line 26) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method embed_query (line 35) | def embed_query(self, text: str): method embed_documents (line 39) | def embed_documents( FILE: apps/models_provider/impl/volcanic_engine_model_provider/model/image.py class VolcanicEngineImage (line 9) | class VolcanicEngineImage(MaxKBBaseModel, BaseChatOpenAI): method new_instance (line 12) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method is_cache_model (line 25) | def is_cache_model(): FILE: apps/models_provider/impl/volcanic_engine_model_provider/model/llm.py class VolcanicEngineChatModel (line 8) | class VolcanicEngineChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 10) | def is_cache_model(): method new_instance (line 14) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/volcanic_engine_model_provider/model/stt.py function generate_header (line 72) | def generate_header( function generate_full_default_header (line 98) | def generate_full_default_header(): function generate_audio_default_header (line 102) | def generate_audio_default_header(): function generate_last_audio_default_header (line 108) | def generate_last_audio_default_header(): function parse_response (line 115) | def parse_response(res): function read_wav_info (line 164) | def read_wav_info(data: bytes = None) -> (int, int, int, int, int): class VolcanicEngineSpeechToText (line 172) | class VolcanicEngineSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 197) | def __init__(self, **kwargs): method is_cache_model (line 206) | def is_cache_model(): method new_instance (line 210) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method construct_request (line 226) | def construct_request(self, reqid): method slice_data (line 259) | def slice_data(data: bytes, chunk_size: int) -> (list, bool): method _real_processor (line 274) | def _real_processor(self, request_params: dict) -> dict: method token_auth (line 277) | def token_auth(self): method signature_auth (line 280) | def signature_auth(self, data): method segment_data_processor (line 299) | async def segment_data_processor(self, wav_data: bytes, segment_size: ... method check_auth (line 338) | def check_auth(self): method speech_to_text (line 343) | def speech_to_text(self, file): FILE: apps/models_provider/impl/volcanic_engine_model_provider/model/tti.py class VolcanicEngineTextToImage (line 17) | class VolcanicEngineTextToImage(MaxKBBaseModel, BaseTextToImage): method __init__ (line 23) | def __init__(self, **kwargs): method is_cache_model (line 31) | def is_cache_model(): method new_instance (line 35) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 47) | def check_auth(self): method generate_image (line 50) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/volcanic_engine_model_provider/model/tts.py class VolcanicEngineTextToSpeech (line 49) | class VolcanicEngineTextToSpeech(MaxKBBaseModel, BaseTextToSpeech): method __init__ (line 56) | def __init__(self, **kwargs): method new_instance (line 65) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 78) | def check_auth(self): method text_to_speech (line 81) | def text_to_speech(self, text): method is_cache_model (line 107) | def is_cache_model(self): method token_auth (line 110) | def token_auth(self): method submit (line 113) | async def submit(self, request_json, text): method is_table_format_chars_only (line 136) | def is_table_format_chars_only(s): method parse_response (line 141) | async def parse_response(ws): FILE: apps/models_provider/impl/volcanic_engine_model_provider/model/ttv.py class GenerationVideoModel (line 10) | class GenerationVideoModel(MaxKBBaseModel, BaseGenerationVideo): method __init__ (line 17) | def __init__(self, **kwargs): method is_cache_model (line 25) | def is_cache_model(): method new_instance (line 29) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 40) | def check_auth(self): method _build_prompt (line 43) | def _build_prompt(self, prompt: str) -> str: method _poll_task (line 58) | def _poll_task(self, client: Ark, task_id: str, max_wait: int = 60, in... method generate_video (line 75) | def generate_video(self, prompt, negative_prompt=None, first_frame_url... FILE: apps/models_provider/impl/volcanic_engine_model_provider/volcanic_engine_model_provider.py class VolcanicEngineModelProvider (line 143) | class VolcanicEngineModelProvider(IModelProvider): method get_model_info_manage (line 145) | def get_model_info_manage(self): method get_model_provide_info (line 148) | def get_model_provide_info(self): FILE: apps/models_provider/impl/wenxin_model_provider/credential/embedding.py class QianfanEmbeddingCredential (line 19) | class QianfanEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 21) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 59) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/wenxin_model_provider/credential/llm.py class WenxinLLMModelParams (line 20) | class WenxinLLMModelParams(BaseForm): class WenxinLLMModelCredential (line 39) | class WenxinLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 40) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 72) | def encryption_dict(self, model_info: Dict[str, object]): method build_model (line 80) | def build_model(self, model_info: Dict[str, object]): method get_model_params_setting_form (line 115) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/wenxin_model_provider/model/embedding.py class QianfanV1Embeddings (line 15) | class QianfanV1Embeddings(MaxKBBaseModel, QianfanEmbeddingsEndpoint): method new_instance (line 17) | def new_instance(model_type, model_name, model_credential: Dict[str, o... class QianfanV2EmbeddingModel (line 25) | class QianfanV2EmbeddingModel(MaxKBBaseModel): method is_cache_model (line 29) | def is_cache_model(): method __init__ (line 32) | def __init__(self, api_key, base_url, model_name: str): method new_instance (line 37) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method embed_query (line 44) | def embed_query(self, text: str): method embed_documents (line 48) | def embed_documents( class QianfanEmbeddings (line 55) | class QianfanEmbeddings(MaxKBBaseModel): method new_instance (line 59) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/wenxin_model_provider/model/llm.py class QianfanChatModelQianfan (line 23) | class QianfanChatModelQianfan(MaxKBBaseModel, QianfanChatEndpoint): method is_cache_model (line 25) | def is_cache_model(): method new_instance (line 29) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_last_generation_info (line 39) | def get_last_generation_info(self) -> Optional[Dict[str, Any]]: method get_num_tokens_from_messages (line 42) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 45) | def get_num_tokens(self, text: str) -> int: method _stream (line 48) | def _stream( class QianfanChatModelOpenai (line 80) | class QianfanChatModelOpenai(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 82) | def is_cache_model(): method new_instance (line 86) | def new_instance(model_type, model_name, model_credential: Dict[str, o... class QianfanChatModel (line 96) | class QianfanChatModel(MaxKBBaseModel): method new_instance (line 98) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/wenxin_model_provider/wenxin_model_provider.py class WenxinModelProvider (line 58) | class WenxinModelProvider(IModelProvider): method get_model_info_manage (line 60) | def get_model_info_manage(self): method get_model_provide_info (line 63) | def get_model_provide_info(self): FILE: apps/models_provider/impl/xf_model_provider/credential/embedding.py class XFEmbeddingCredential (line 19) | class XFEmbeddingCredential(BaseForm, BaseModelCredential): method is_valid (line 21) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 43) | def encryption_dict(self, model: Dict[str, object]): FILE: apps/models_provider/impl/xf_model_provider/credential/image.py class XunFeiImageModelCredential (line 16) | class XunFeiImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 23) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 55) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 58) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xf_model_provider/credential/llm.py class XunFeiLLMModelGeneralParams (line 20) | class XunFeiLLMModelGeneralParams(BaseForm): class XunFeiLLMModelProParams (line 39) | class XunFeiLLMModelProParams(BaseForm): class XunFeiLLMModelCredential (line 58) | class XunFeiLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 60) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 89) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 97) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xf_model_provider/credential/stt.py class XunFeiSTTModelParams (line 12) | class XunFeiSTTModelParams(BaseForm): class XunFeiSTTModelCredential (line 30) | class XunFeiSTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 36) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 64) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 67) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xf_model_provider/credential/tts/default_tts.py class XunFeiDefaultTTSModelCredential (line 16) | class XunFeiDefaultTTSModelCredential(BaseForm, BaseModelCredential): method is_valid (line 34) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 65) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 68) | def get_model_params_setting_form(self, model_name): class XunFeiDefaultTTSModelParams (line 73) | class XunFeiDefaultTTSModelParams(BaseForm): FILE: apps/models_provider/impl/xf_model_provider/credential/tts/super_humanoid_tts.py class XunFeiSuperHumanoidTTSModelParams (line 15) | class XunFeiSuperHumanoidTTSModelParams(BaseForm): class XunFeiSuperHumanoidTTSModelCredential (line 51) | class XunFeiSuperHumanoidTTSModelCredential(BaseForm, BaseModelCredential): method is_valid (line 59) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 89) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 92) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xf_model_provider/credential/tts/tts.py class XunFeiTTSModelGeneralParams (line 12) | class XunFeiTTSModelGeneralParams(BaseForm): class XunFeiTTSModelCredential (line 35) | class XunFeiTTSModelCredential(BaseForm, BaseModelCredential): method is_valid (line 41) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 70) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 73) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xf_model_provider/credential/zh_en_stt.py class ZhEnXunFeiSTTModelCredential (line 13) | class ZhEnXunFeiSTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 19) | def is_valid(self, method encryption_dict (line 51) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 54) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xf_model_provider/model/embedding.py function _worker (line 27) | def _worker(): class XFEmbedding (line 70) | class XFEmbedding(MaxKBBaseModel, SparkLLMTextEmbeddings): method new_instance (line 72) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method _parser_message (line 81) | def _parser_message( FILE: apps/models_provider/impl/xf_model_provider/model/image.py class ImageMessage (line 15) | class ImageMessage(HumanMessage): function convert_message_to_dict (line 19) | def convert_message_to_dict(message: BaseMessage) -> dict: class XFSparkImage (line 47) | class XFSparkImage(MaxKBBaseModel, ChatSparkLLM): method new_instance (line 54) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method generate_message (line 65) | def generate_message(prompt: str, image) -> list[BaseMessage]: method _stream (line 73) | def _stream( method is_cache_model (line 99) | def is_cache_model(): FILE: apps/models_provider/impl/xf_model_provider/model/llm.py class XFChatSparkLLM (line 20) | class XFChatSparkLLM(MaxKBBaseModel, ChatSparkLLM): method is_cache_model (line 22) | def is_cache_model(): method new_instance (line 26) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_last_generation_info (line 40) | def get_last_generation_info(self) -> Optional[Dict[str, Any]]: method get_num_tokens_from_messages (line 43) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 46) | def get_num_tokens(self, text: str) -> int: method _stream (line 49) | def _stream( FILE: apps/models_provider/impl/xf_model_provider/model/stt.py class XFSparkSpeechToText (line 32) | class XFSparkSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 40) | def __init__(self, **kwargs): method is_cache_model (line 50) | def is_cache_model(): method new_instance (line 54) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method create_url (line 71) | def create_url(self): method check_auth (line 104) | def check_auth(self): method speech_to_text (line 109) | def speech_to_text(self, file): method handle_message (line 119) | async def handle_message(ws): method send (line 137) | async def send(self, ws, file): FILE: apps/models_provider/impl/xf_model_provider/model/tts/default_tts.py class XFSparkDefaultTextToSpeech (line 15) | class XFSparkDefaultTextToSpeech(MaxKBBaseModel, BaseTextToSpeech): method check_auth (line 18) | def check_auth(self): method text_to_speech (line 21) | def text_to_speech(self, text): method is_cache_model (line 25) | def is_cache_model(): method new_instance (line 29) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/xf_model_provider/model/tts/super_humanoid_tts.py class XFSparkSuperHumanoidTextToSpeech (line 29) | class XFSparkSuperHumanoidTextToSpeech(MaxKBBaseModel, BaseTextToSpeech): method __init__ (line 37) | def __init__(self, **kwargs): method is_cache_model (line 46) | def is_cache_model(): method new_instance (line 50) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method create_url (line 67) | def create_url(self): method check_auth (line 100) | def check_auth(self): method text_to_speech (line 103) | def text_to_speech(self, text): method handle_message (line 129) | async def handle_message(ws): method send (line 156) | async def send(self, ws, text): FILE: apps/models_provider/impl/xf_model_provider/model/tts/tts.py class XFSparkTextToSpeech (line 35) | class XFSparkTextToSpeech(MaxKBBaseModel, BaseTextToSpeech): method __init__ (line 42) | def __init__(self, **kwargs): method is_cache_model (line 51) | def is_cache_model(): method new_instance (line 55) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method create_url (line 69) | def create_url(self): method check_auth (line 102) | def check_auth(self): method text_to_speech (line 105) | def text_to_speech(self, text): method is_cache_model (line 119) | def is_cache_model(self): method handle_message (line 123) | async def handle_message(ws): method send (line 144) | async def send(self, ws, text): FILE: apps/models_provider/impl/xf_model_provider/model/zh_en_stt.py function deep_merge_dict (line 25) | def deep_merge_dict(target_dict, source_dict): class XFZhEnSparkSpeechToText (line 38) | class XFZhEnSparkSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 45) | def __init__(self, **kwargs): method is_cache_model (line 54) | def is_cache_model(): method new_instance (line 58) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method create_url (line 70) | def create_url(self): method check_auth (line 102) | def check_auth(self): method speech_to_text (line 107) | def speech_to_text(self, audio_file_path): method merge_params_to_frame (line 121) | def merge_params_to_frame(self, frame,params): method send_audio (line 125) | async def send_audio(self, ws, audio_file): method handle_message (line 195) | async def handle_message(self, ws): FILE: apps/models_provider/impl/xf_model_provider/xf_model_provider.py class XunFeiModelProvider (line 79) | class XunFeiModelProvider(IModelProvider): method get_model_info_manage (line 81) | def get_model_info_manage(self): method get_model_provide_info (line 84) | def get_model_provide_info(self): FILE: apps/models_provider/impl/xinference_model_provider/credential/embedding.py class XinferenceEmbeddingModelCredential (line 13) | class XinferenceEmbeddingModelCredential(BaseForm, BaseModelCredential): method is_valid (line 14) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 34) | def encryption_dict(self, model_info: Dict[str, object]): method build_model (line 37) | def build_model(self, model_info: Dict[str, object]): FILE: apps/models_provider/impl/xinference_model_provider/credential/image.py class XinferenceImageModelParams (line 14) | class XinferenceImageModelParams(BaseForm): class XinferenceImageModelCredential (line 33) | class XinferenceImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 37) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 67) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 70) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xinference_model_provider/credential/llm.py class XinferenceLLMModelParams (line 14) | class XinferenceLLMModelParams(BaseForm): class XinferenceLLMModelCredential (line 33) | class XinferenceLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 34) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 53) | def encryption_dict(self, model_info: Dict[str, object]): method build_model (line 56) | def build_model(self, model_info: Dict[str, object]): method get_model_params_setting_form (line 66) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xinference_model_provider/credential/reranker.py class XInferenceRerankerModelCredential (line 20) | class XInferenceRerankerModelCredential(BaseForm, BaseModelCredential): method is_valid (line 21) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 46) | def encryption_dict(self, model_info: Dict[str, object]): FILE: apps/models_provider/impl/xinference_model_provider/credential/stt.py class XInferenceSTTModelCredential (line 12) | class XInferenceSTTModelCredential(BaseForm, BaseModelCredential): method is_valid (line 16) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 43) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 46) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xinference_model_provider/credential/tti.py class XinferenceTTIModelParams (line 12) | class XinferenceTTIModelParams(BaseForm): class XinferenceTextToImageModelCredential (line 50) | class XinferenceTextToImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 54) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 82) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 85) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xinference_model_provider/credential/tts.py class XInferenceTTSModelGeneralParams (line 12) | class XInferenceTTSModelGeneralParams(BaseForm): class XInferenceTTSModelCredential (line 30) | class XInferenceTTSModelCredential(BaseForm, BaseModelCredential): method is_valid (line 34) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 62) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 65) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/xinference_model_provider/model/embedding.py class XinferenceEmbedding (line 10) | class XinferenceEmbedding(MaxKBBaseModel, Embeddings): method new_instance (line 18) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method down_model (line 25) | def down_model(self): method start_down_model_thread (line 28) | def start_down_model_thread(self): method __init__ (line 33) | def __init__( method embed_documents (line 62) | def embed_documents(self, texts: List[str]) -> List[List[float]]: method embed_query (line 77) | def embed_query(self, text: str) -> List[float]: FILE: apps/models_provider/impl/xinference_model_provider/model/image.py class XinferenceImage (line 10) | class XinferenceImage(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 13) | def is_cache_model(): method new_instance (line 17) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_num_tokens_from_messages (line 29) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 35) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/xinference_model_provider/model/llm.py function get_base_url (line 13) | def get_base_url(url: str): class XinferenceChatModel (line 21) | class XinferenceChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 24) | def is_cache_model(): method new_instance (line 28) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_num_tokens_from_messages (line 40) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 46) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/xinference_model_provider/model/reranker.py class XInferenceReranker (line 18) | class XInferenceReranker(MaxKBBaseModel, BaseDocumentCompressor): method new_instance (line 26) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method compress_documents (line 32) | def compress_documents(self, documents: Sequence[Document], query: str... FILE: apps/models_provider/impl/xinference_model_provider/model/stt.py function custom_get_token_ids (line 11) | def custom_get_token_ids(text: str): class XInferenceSpeechToText (line 16) | class XInferenceSpeechToText(MaxKBBaseModel, BaseSpeechToText): method __init__ (line 22) | def __init__(self, **kwargs): method is_cache_model (line 30) | def is_cache_model(): method new_instance (line 34) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 48) | def check_auth(self): method speech_to_text (line 56) | def speech_to_text(self, audio_file): FILE: apps/models_provider/impl/xinference_model_provider/model/tti.py function custom_get_token_ids (line 15) | def custom_get_token_ids(text: str): class XinferenceTextToImage (line 20) | class XinferenceTextToImage(MaxKBBaseModel, BaseTextToImage): method __init__ (line 26) | def __init__(self, **kwargs): method is_cache_model (line 34) | def is_cache_model(): method new_instance (line 38) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 50) | def check_auth(self): method generate_image (line 53) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/xinference_model_provider/model/tts.py function custom_get_token_ids (line 12) | def custom_get_token_ids(text: str): class XInferenceTextToSpeech (line 17) | class XInferenceTextToSpeech(MaxKBBaseModel, BaseTextToSpeech): method __init__ (line 23) | def __init__(self, **kwargs): method is_cache_model (line 31) | def is_cache_model(): method new_instance (line 35) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method check_auth (line 47) | def check_auth(self): method text_to_speech (line 50) | def text_to_speech(self, text): FILE: apps/models_provider/impl/xinference_model_provider/xinference_model_provider.py function get_base_url (line 552) | def get_base_url(url: str): class XinferenceModelProvider (line 560) | class XinferenceModelProvider(IModelProvider): method get_model_info_manage (line 561) | def get_model_info_manage(self): method get_model_provide_info (line 564) | def get_model_provide_info(self): method get_base_model_list (line 570) | def get_base_model_list(api_base, api_key, model_type): method get_model_info_by_name (line 582) | def get_model_info_by_name(model_list, model_name): FILE: apps/models_provider/impl/zhipu_model_provider/credential/image.py class ZhiPuImageModelParams (line 14) | class ZhiPuImageModelParams(BaseForm): class ZhiPuImageModelCredential (line 33) | class ZhiPuImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 37) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 68) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 71) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/zhipu_model_provider/credential/llm.py class ZhiPuLLMModelParams (line 20) | class ZhiPuLLMModelParams(BaseForm): class ZhiPuLLMModelCredential (line 39) | class ZhiPuLLMModelCredential(BaseForm, BaseModelCredential): method is_valid (line 41) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 69) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 75) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/zhipu_model_provider/credential/tti.py class ZhiPuTTIModelParams (line 12) | class ZhiPuTTIModelParams(BaseForm): class ZhiPuTextToImageModelCredential (line 31) | class ZhiPuTextToImageModelCredential(BaseForm, BaseModelCredential): method is_valid (line 34) | def is_valid(self, model_type: str, model_name, model_credential: Dict... method encryption_dict (line 63) | def encryption_dict(self, model: Dict[str, object]): method get_model_params_setting_form (line 66) | def get_model_params_setting_form(self, model_name): FILE: apps/models_provider/impl/zhipu_model_provider/model/image.py class ZhiPuImage (line 6) | class ZhiPuImage(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 9) | def is_cache_model(): method new_instance (line 13) | def new_instance(model_type, model_name, model_credential: Dict[str, o... FILE: apps/models_provider/impl/zhipu_model_provider/model/llm.py function custom_get_token_ids (line 19) | def custom_get_token_ids(text: str): class ZhipuChatModel (line 24) | class ZhipuChatModel(MaxKBBaseModel, BaseChatOpenAI): method is_cache_model (line 27) | def is_cache_model(): method new_instance (line 31) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method get_num_tokens_from_messages (line 43) | def get_num_tokens_from_messages(self, messages: List[BaseMessage]) ->... method get_num_tokens (line 50) | def get_num_tokens(self, text: str) -> int: FILE: apps/models_provider/impl/zhipu_model_provider/model/tti.py function custom_get_token_ids (line 13) | def custom_get_token_ids(text: str): class ZhiPuTextToImage (line 18) | class ZhiPuTextToImage(MaxKBBaseModel, BaseTextToImage): method __init__ (line 23) | def __init__(self, **kwargs): method is_cache_model (line 30) | def is_cache_model(): method new_instance (line 34) | def new_instance(model_type, model_name, model_credential: Dict[str, o... method is_cache_model (line 45) | def is_cache_model(self): method check_auth (line 48) | def check_auth(self): method generate_image (line 58) | def generate_image(self, prompt: str, negative_prompt: str = None): FILE: apps/models_provider/impl/zhipu_model_provider/zhipu_model_provider.py class ZhiPuModelProvider (line 69) | class ZhiPuModelProvider(IModelProvider): method get_model_info_manage (line 71) | def get_model_info_manage(self): method get_model_provide_info (line 74) | def get_model_provide_info(self): FILE: apps/models_provider/migrations/0001_initial.py function save_default_embedding_model (line 15) | def save_default_embedding_model(apps, schema_editor): class Migration (line 29) | class Migration(migrations.Migration): FILE: apps/models_provider/models/model_management.py class Status (line 10) | class Status(models.TextChoices): class Model (line 21) | class Model(AppModelMixin): class Meta (line 47) | class Meta: FILE: apps/models_provider/serializers/model_apply_serializers.py function get_embedding_model (line 21) | def get_embedding_model(model_id): class EmbedDocuments (line 30) | class EmbedDocuments(serializers.Serializer): class EmbedQuery (line 36) | class EmbedQuery(serializers.Serializer): class CompressDocument (line 40) | class CompressDocument(serializers.Serializer): class CompressDocuments (line 45) | class CompressDocuments(serializers.Serializer): class ModelApplySerializers (line 50) | class ModelApplySerializers(serializers.Serializer): method embed_documents (line 53) | def embed_documents(self, instance, with_valid=True): method embed_query (line 61) | def embed_query(self, instance, with_valid=True): method compress_documents (line 69) | def compress_documents(self, instance, with_valid=True): FILE: apps/models_provider/serializers/model_serializer.py function get_default_model_params_setting (line 35) | def get_default_model_params_setting(provider, model_type, model_name): class ModelModelSerializer (line 43) | class ModelModelSerializer(serializers.ModelSerializer): class Meta (line 44) | class Meta: class ModelCreateRequest (line 53) | class ModelCreateRequest(serializers.Serializer): class ModelPullManage (line 62) | class ModelPullManage: method pull (line 64) | def pull(model: Model, credential: Dict): class ModelSerializer (line 102) | class ModelSerializer(serializers.Serializer): method model_to_dict (line 104) | def model_to_dict(model: Model): class Operate (line 122) | class Operate(serializers.Serializer): method is_valid (line 127) | def is_valid(self, *, raise_exception=False): method one (line 139) | def one(self, with_valid=False): method one_meta (line 147) | def one_meta(self, with_valid=False): method pause_download (line 162) | def pause_download(self, with_valid=True): method delete (line 169) | def delete(self, with_valid=True): method edit (line 198) | def edit(self, instance: Dict, user_id: str, with_valid=True): class Edit (line 237) | class Edit(serializers.Serializer): method is_valid (line 251) | def is_valid(self, model=None, raise_exception=False): class Create (line 278) | class Create(serializers.Serializer): method is_valid (line 288) | def is_valid(self, *, raise_exception=False): method insert (line 307) | def insert(self, workspace_id, with_valid=True): class Query (line 350) | class Query(serializers.Serializer): method is_x_pack_ee (line 360) | def is_x_pack_ee(): method list (line 365) | def list(self, workspace_id, with_valid): method share_list (line 380) | def share_list(self, workspace_id, with_valid=True): method model_list (line 392) | def model_list(self, workspace_id, with_valid=True): method _build_query_params (line 424) | def _build_query_params(self, workspace_id, workspace_manage: bool, ... method _build_model_data (line 448) | def _build_model_data(self, model): method page (line 462) | def page(self, current_page, page_size): class ModelParams (line 465) | class ModelParams(serializers.Serializer): method is_valid (line 468) | def is_valid(self, *, raise_exception=False): method get_model_params (line 474) | def get_model_params(self, with_valid=True): method save_model_params_form (line 481) | def save_model_params_form(self, model_params_form, with_valid=True): class WorkspaceSharedModelSerializer (line 493) | class WorkspaceSharedModelSerializer(serializers.Serializer): method get_share_model_list (line 501) | def get_share_model_list(self): method _build_queryset (line 523) | def _build_queryset(self, workspace_id): FILE: apps/models_provider/tools.py function get_model_ (line 24) | def get_model_(provider, model_type, model_name, credential, model_id, u... function get_model (line 44) | def get_model(model, **kwargs): function get_provider (line 53) | def get_provider(provider): function get_model_list (line 62) | def get_model_list(provider, model_type): function get_model_credential (line 72) | def get_model_credential(provider, model_type, model_name): function get_model_type_list (line 83) | def get_model_type_list(provider): function is_valid_credential (line 92) | def is_valid_credential(provider, model_type, model_name, model_credenti... function get_model_by_id (line 107) | def get_model_by_id(_id, workspace_id): function get_model_default_params (line 118) | def get_model_default_params(model): function get_model_instance_by_model_workspace_id (line 134) | def get_model_instance_by_model_workspace_id(model_id, workspace_id, **k... FILE: apps/models_provider/views/model.py function encryption_credential (line 29) | def encryption_credential(credential): function get_edit_model_details (line 35) | def get_edit_model_details(request): function get_model_operation_object (line 48) | def get_model_operation_object(model_id): class ModelSetting (line 57) | class ModelSetting(APIView): method post (line 75) | def post(self, request: Request, workspace_id: str): method get (line 103) | def get(self, request: Request, workspace_id: str): class Operate (line 110) | class Operate(APIView): method put (line 131) | def put(self, request: Request, workspace_id, model_id: str): method delete (line 153) | def delete(self, request: Request, workspace_id: str, model_id: str): method get (line 171) | def get(self, request: Request, workspace_id: str, model_id: str): class ModelParamsForm (line 177) | class ModelParamsForm(APIView): method get (line 196) | def get(self, request: Request, workspace_id: str, model_id: str): method put (line 218) | def put(self, request: Request, workspace_id: str, model_id: str): class ModelMeta (line 222) | class ModelMeta(APIView): method get (line 242) | def get(self, request: Request, workspace_id: str, model_id: str): class PauseDownload (line 246) | class PauseDownload(APIView): method put (line 263) | def put(self, request: Request, workspace_id: str, model_id: str): class WorkspaceSharedModelSetting (line 268) | class WorkspaceSharedModelSetting(APIView): method get (line 286) | def get(self, request: Request, workspace_id: str): class ModelList (line 292) | class ModelList(APIView): method get (line 309) | def get(self, request: Request, workspace_id: str): FILE: apps/models_provider/views/model_apply.py class ModelApply (line 22) | class ModelApply(APIView): class EmbedDocuments (line 23) | class EmbedDocuments(APIView): method post (line 31) | def post(self, request: Request, model_id): class EmbedQuery (line 35) | class EmbedQuery(APIView): method post (line 43) | def post(self, request: Request, model_id): class CompressDocuments (line 47) | class CompressDocuments(APIView): method post (line 55) | def post(self, request: Request, model_id): FILE: apps/models_provider/views/provide.py class Provide (line 17) | class Provide(APIView): method get (line 26) | def get(self, request: Request): class ModelTypeList (line 39) | class ModelTypeList(APIView): method get (line 49) | def get(self, request: Request): class ModelList (line 53) | class ModelList(APIView): method get (line 63) | def get(self, request: Request): class ModelParamsForm (line 71) | class ModelParamsForm(APIView): method get (line 81) | def get(self, request: Request): class ModelForm (line 88) | class ModelForm(APIView): method get (line 98) | def get(self, request: Request): FILE: apps/ops/celery/decorator.py function add_register_period_task (line 10) | def add_register_period_task(task): function get_register_period_tasks (line 14) | def get_register_period_tasks(): function add_after_app_shutdown_clean_task (line 18) | def add_after_app_shutdown_clean_task(name): function get_after_app_shutdown_clean_tasks (line 22) | def get_after_app_shutdown_clean_tasks(): function add_after_app_ready_task (line 26) | def add_after_app_ready_task(name): function get_after_app_ready_tasks (line 30) | def get_after_app_ready_tasks(): function register_as_period_task (line 34) | def register_as_period_task( function after_app_ready_start (line 79) | def after_app_ready_start(func): function after_app_shutdown_clean_periodic (line 93) | def after_app_shutdown_clean_periodic(func): FILE: apps/ops/celery/heartbeat.py function heartbeat (line 7) | def heartbeat(sender, **kwargs): function worker_ready (line 14) | def worker_ready(sender, **kwargs): function worker_shutdown (line 21) | def worker_shutdown(sender, **kwargs): FILE: apps/ops/celery/hmac_signed_serializer.py function secure_dumps (line 15) | def secure_dumps(obj): function secure_loads (line 20) | def secure_loads(signed_data): function register_hmac_signed_serializer (line 31) | def register_hmac_signed_serializer(): FILE: apps/ops/celery/logger.py class CeleryLoggerConsumer (line 20) | class CeleryLoggerConsumer(ConsumerMixin): method __init__ (line 21) | def __init__(self): method get_consumers (line 24) | def get_consumers(self, Consumer, channel): method handle_task_start (line 30) | def handle_task_start(self, task_id, message): method handle_task_end (line 33) | def handle_task_end(self, task_id, message): method handle_task_log (line 36) | def handle_task_log(self, task_id, msg, message): method process_task (line 39) | def process_task(self, body, message): class CeleryLoggerProducer (line 51) | class CeleryLoggerProducer: method __init__ (line 54) | def __init__(self): method producer (line 58) | def producer(self): method publish (line 61) | def publish(self, payload): method log (line 67) | def log(self, task_id, msg): method read (line 71) | def read(self): method flush (line 74) | def flush(self): method task_end (line 77) | def task_end(self, task_id): method task_start (line 81) | def task_start(self, task_id): class CeleryTaskLoggerHandler (line 86) | class CeleryTaskLoggerHandler(StreamHandler): method __init__ (line 89) | def __init__(self, *args, **kwargs): method get_current_task_id (line 95) | def get_current_task_id(): method on_task_start (line 101) | def on_task_start(self, sender, task_id, **kwargs): method on_start_end (line 104) | def on_start_end(self, sender, task_id, **kwargs): method after_task_publish (line 107) | def after_task_publish(self, sender, body, **kwargs): method emit (line 110) | def emit(self, record): method write_task_log (line 120) | def write_task_log(self, task_id, msg): method handle_task_start (line 123) | def handle_task_start(self, task_id): method handle_task_end (line 126) | def handle_task_end(self, task_id): class CeleryThreadingLoggerHandler (line 130) | class CeleryThreadingLoggerHandler(CeleryTaskLoggerHandler): method get_current_thread_id (line 132) | def get_current_thread_id(): method emit (line 135) | def emit(self, record): method write_thread_task_log (line 143) | def write_thread_task_log(self, thread_id, msg): method handle_task_start (line 146) | def handle_task_start(self, task_id): method handle_task_end (line 149) | def handle_task_end(self, task_id): method handleError (line 152) | def handleError(self, record) -> None: class CeleryTaskMQLoggerHandler (line 156) | class CeleryTaskMQLoggerHandler(CeleryTaskLoggerHandler): method __init__ (line 157) | def __init__(self): method write_task_log (line 161) | def write_task_log(self, task_id, record): method flush (line 165) | def flush(self): class CeleryTaskFileHandler (line 169) | class CeleryTaskFileHandler(CeleryTaskLoggerHandler): method __init__ (line 170) | def __init__(self, *args, **kwargs): method emit (line 174) | def emit(self, record): method flush (line 182) | def flush(self): method handle_task_start (line 185) | def handle_task_start(self, task_id): method handle_task_end (line 189) | def handle_task_end(self, task_id): class CeleryThreadTaskFileHandler (line 193) | class CeleryThreadTaskFileHandler(CeleryThreadingLoggerHandler): method __init__ (line 194) | def __init__(self, *args, **kwargs): method write_thread_task_log (line 199) | def write_thread_task_log(self, thread_id, record): method flush (line 208) | def flush(self): method handle_task_start (line 212) | def handle_task_start(self, task_id): method handle_task_end (line 220) | def handle_task_end(self, task_id): FILE: apps/ops/celery/signal_handler.py function init_scheduler (line 23) | def init_scheduler(): function on_app_ready (line 68) | def on_app_ready(sender=None, headers=None, **kwargs): function delete_files (line 86) | def delete_files(directory): function after_app_shutdown_periodic_tasks (line 95) | def after_app_shutdown_periodic_tasks(sender=None, **kwargs): function add_celery_logger_handler (line 106) | def add_celery_logger_handler(sender=None, logger=None, loglevel=None, f... function on_task_revoked (line 117) | def on_task_revoked(request, terminated, signum, expired, **kwargs): function on_taskaa_start (line 122) | def on_taskaa_start(sender, task_id, **kwargs): FILE: apps/ops/celery/utils.py function disable_celery_periodic_task (line 18) | def disable_celery_periodic_task(task_name): function delete_celery_periodic_task (line 24) | def delete_celery_periodic_task(task_name): function get_celery_periodic_task (line 30) | def get_celery_periodic_task(task_name): function make_dirs (line 36) | def make_dirs(name, mode=0o700, exist_ok=False): function get_task_log_path (line 41) | def get_task_log_path(base_path, task_id, level=2): function get_celery_task_log_path (line 54) | def get_celery_task_log_path(task_id): function get_celery_status (line 58) | def get_celery_status(): FILE: apps/oss/apps.py class OssConfig (line 4) | class OssConfig(AppConfig): FILE: apps/oss/serializers/file.py class FileSerializer (line 68) | class FileSerializer(serializers.Serializer): method upload (line 79) | def upload(self, with_valid=True): class Operate (line 96) | class Operate(serializers.Serializer): method get (line 103) | def get(self, with_valid=True): method handle_audio (line 134) | def handle_audio(self, file_size, file_bytes, content_type, encoded_... method delete (line 160) | def delete(self): function get_url_content (line 169) | def get_url_content(url, application_id: str): function is_private_ip (line 208) | def is_private_ip(host: str) -> bool: function validate_url (line 223) | def validate_url(url: str): FILE: apps/oss/views/file.py class FileRetrievalView (line 14) | class FileRetrievalView(APIView): method get (line 24) | def get(self, request: Request, file_id: str): class FileView (line 31) | class FileView(APIView): method post (line 46) | def post(self, request: Request): class Operate (line 53) | class Operate(APIView): method delete (line 66) | def delete(self, request: Request, file_id: str): class GetUrlView (line 70) | class GetUrlView(APIView): method get (line 80) | def get(self, request: Request, application_id: str): FILE: apps/system_manage/api/email_setting.py class EmailResponse (line 19) | class EmailResponse(ResultSerializer): method get_data (line 20) | def get_data(self): class EmailSettingAPI (line 24) | class EmailSettingAPI(APIMixin): method get_request (line 26) | def get_request(): method get_response (line 30) | def get_response(): FILE: apps/system_manage/api/resource_mapping.py class ResourceMappingResponse (line 17) | class ResourceMappingResponse(serializers.Serializer): class ResourceMappingAPI (line 28) | class ResourceMappingAPI(APIMixin): method get_parameters (line 31) | def get_parameters(): method get_response (line 79) | def get_response(): FILE: apps/system_manage/api/system.py class SystemProfileResult (line 14) | class SystemProfileResult(ResultSerializer): method get_data (line 15) | def get_data(self): class SystemProfileAPI (line 19) | class SystemProfileAPI(APIMixin): method get_response (line 21) | def get_response(): FILE: apps/system_manage/api/user_resource_permission.py class UserResourcePermissionResponse0 (line 19) | class UserResourcePermissionResponse0(serializers.Serializer): class NewAPIUserResourcePermissionResponse (line 30) | class NewAPIUserResourcePermissionResponse(ResultSerializer): method get_data (line 31) | def get_data(self): class NewAPIUserResourcePermissionPageResponse (line 34) | class NewAPIUserResourcePermissionPageResponse(ResultPageSerializer): method get_data (line 36) | def get_data(self): class UserResourcePermissionAPI (line 39) | class UserResourcePermissionAPI(APIMixin): method get_parameters (line 41) | def get_parameters(): method get_response (line 75) | def get_response(): class EditUserResourcePermissionAPI (line 79) | class EditUserResourcePermissionAPI(APIMixin): method get_parameters (line 81) | def get_parameters(): method get_request (line 107) | def get_request(): method get_response (line 111) | def get_response(): class ResourceUserPermissionResponse (line 115) | class ResourceUserPermissionResponse(serializers.Serializer): class APIResourceUserPermissionResponse (line 122) | class APIResourceUserPermissionResponse(ResultSerializer): method get_data (line 123) | def get_data(self): class ResourceUserPermissionAPI (line 127) | class ResourceUserPermissionAPI(APIMixin): method get_parameters (line 129) | def get_parameters(): method get_response (line 177) | def get_response(): class UserResourcePermissionPageAPI (line 180) | class UserResourcePermissionPageAPI(APIMixin): method get_parameters (line 182) | def get_parameters(): method get_response (line 237) | def get_response(): class APIResourceUserPermissionPageResponse (line 241) | class APIResourceUserPermissionPageResponse(ResultPageSerializer): method get_data (line 242) | def get_data(self): class ResourceUserPermissionPageAPI (line 246) | class ResourceUserPermissionPageAPI(APIMixin): method get_parameters (line 248) | def get_parameters(): method get_response (line 310) | def get_response(): class ResourceUserPermissionEditAPI (line 315) | class ResourceUserPermissionEditAPI(APIMixin): method get_parameters (line 317) | def get_parameters(): method get_request (line 342) | def get_request(): method get_response (line 346) | def get_response(): FILE: apps/system_manage/apps.py class SystemManageConfig (line 4) | class SystemManageConfig(AppConfig): FILE: apps/system_manage/migrations/0001_initial.py class Migration (line 10) | class Migration(migrations.Migration): FILE: apps/system_manage/migrations/0002_refresh_collation_reindex.py function get_connect (line 9) | def get_connect(db_name): function sql_execute (line 22) | def sql_execute(conn, reindex_sql: str, alter_database_sql: str): function re_index (line 35) | def re_index(apps, schema_editor): function re_index_database (line 47) | def re_index_database(db_name): class Migration (line 53) | class Migration(migrations.Migration): FILE: apps/system_manage/migrations/0003_alter_workspaceuserresourcepermission_target.py function workspace_user_role_mapping_model_exists (line 12) | def workspace_user_role_mapping_model_exists(workspace_user_role_mapping... function delete_auth (line 19) | def delete_auth(apps,folder_model): function get_workspace_user_resource_permission_list (line 24) | def get_workspace_user_resource_permission_list(apps, auth_target_type, ... function auth_folder (line 35) | def auth_folder(apps, schema_editor): class Migration (line 79) | class Migration(migrations.Migration): FILE: apps/system_manage/migrations/0004_alter_systemsetting_type_and_more.py function remove_duplicates (line 7) | def remove_duplicates(apps, schema_editor): class Migration (line 24) | class Migration(migrations.Migration): FILE: apps/system_manage/migrations/0005_resourcemapping.py function get_initialization_resource_mapping (line 11) | def get_initialization_resource_mapping(): function resource_mapping (line 61) | def resource_mapping(apps, schema_editor): class Migration (line 69) | class Migration(migrations.Migration): FILE: apps/system_manage/models/chat_user.py class ChatUser (line 15) | class ChatUser(models.Model): class Meta (line 30) | class Meta: class UserGroup (line 34) | class UserGroup(models.Model): class Meta (line 38) | class Meta: class UserGroupRelation (line 42) | class UserGroupRelation(models.Model): class Meta (line 47) | class Meta: class ResourceType (line 51) | class ResourceType(models.TextChoices): class ResourceChatUserAuthorize (line 57) | class ResourceChatUserAuthorize(models.Model): class Meta (line 70) | class Meta: class ResourceChatUserGroupAuthorize (line 75) | class ResourceChatUserGroupAuthorize(models.Model): class Meta (line 87) | class Meta: FILE: apps/system_manage/models/log_management.py class Log (line 17) | class Log(AppModelMixin): class Meta (line 38) | class Meta: FILE: apps/system_manage/models/resource_mapping.py class ResourceType (line 16) | class ResourceType(models.TextChoices): class ResourceMapping (line 23) | class ResourceMapping(AppModelMixin): class Meta (line 30) | class Meta: FILE: apps/system_manage/models/system_setting.py class SettingType (line 15) | class SettingType(models.IntegerChoices): class SystemSetting (line 24) | class SystemSetting(AppModelMixin): class Meta (line 33) | class Meta: FILE: apps/system_manage/models/workspace_user_permission.py class AuthTargetType (line 19) | class AuthTargetType(models.TextChoices): class WorkspaceUserResourcePermission (line 27) | class WorkspaceUserResourcePermission(models.Model): class Meta (line 58) | class Meta: FILE: apps/system_manage/serializers/email_setting.py class EmailSettingSerializer (line 22) | class EmailSettingSerializer(serializers.Serializer): method one (line 24) | def one(): class Create (line 30) | class Create(serializers.Serializer): method is_valid (line 39) | def is_valid(self, *, raise_exception=False): method update_or_save (line 54) | def update_or_save(self): method to_email_meta (line 63) | def to_email_meta(self): FILE: apps/system_manage/serializers/resource_mapping_serializers.py class ResourceMappingSerializer (line 25) | class ResourceMappingSerializer(serializers.Serializer): method get_query_set (line 35) | def get_query_set(self): method is_x_pack_ee (line 61) | def is_x_pack_ee(): method page (line 65) | def page(self, current_page, page_size): method get_resource_count (line 72) | def get_resource_count(self, result_list): FILE: apps/system_manage/serializers/system.py class SettingType (line 22) | class SettingType(models.CharField): class SystemProfileResponseSerializer (line 31) | class SystemProfileResponseSerializer(serializers.Serializer): class SystemProfileSerializer (line 37) | class SystemProfileSerializer(serializers.Serializer): method profile (line 39) | def profile(): FILE: apps/system_manage/serializers/user_resource_permission.py class PermissionSerializer (line 38) | class PermissionSerializer(serializers.Serializer): class UserResourcePermissionItemResponse (line 44) | class UserResourcePermissionItemResponse(serializers.Serializer): class UserResourcePermissionResponse (line 56) | class UserResourcePermissionResponse(serializers.Serializer): class UpdateTeamMemberItemPermissionSerializer (line 60) | class UpdateTeamMemberItemPermissionSerializer(serializers.Serializer): class UpdateUserResourcePermissionRequest (line 67) | class UpdateUserResourcePermissionRequest(serializers.Serializer): method is_valid (line 70) | def is_valid(self, *, auth_target_type=None, workspace_id=None, raise_... class UserResourcePermissionUserListRequest (line 100) | class UserResourcePermissionUserListRequest(serializers.Serializer): class UserResourcePermissionSerializer (line 107) | class UserResourcePermissionSerializer(serializers.Serializer): method get_queryset (line 112) | def get_queryset(self, instance): method is_auth (line 145) | def is_auth(self, resource_id: str): method auth_resource_batch (line 172) | def auth_resource_batch(self, resource_id_list: list): method auth_resource (line 198) | def auth_resource(self, resource_id: str, is_folder=False): method list (line 219) | def list(self, instance, user, with_valid=True): method page (line 232) | def page(self, instance, current_page: int, page_size: int, user, with... method edit (line 248) | def edit(self, instance, user, with_valid=True): class ResourceUserPermissionUserListRequest (line 297) | class ResourceUserPermissionUserListRequest(serializers.Serializer): class ResourceUserPermissionEditRequest (line 305) | class ResourceUserPermissionEditRequest(serializers.Serializer): class ResourceUserPermissionSerializer (line 319) | class ResourceUserPermissionSerializer(serializers.Serializer): method get_queryset (line 331) | def get_queryset(self, instance, is_x_pack_ee: bool): method list (line 404) | def list(self, instance, with_valid=True): method is_x_pack_ee (line 420) | def is_x_pack_ee(): method page (line 425) | def page(self, instance, current_page: int, page_size: int, with_valid... method get_has_manage_permission_resource_under_folders (line 443) | def get_has_manage_permission_resource_under_folders(self, current_use... method edit (line 480) | def edit(self, instance, with_valid=True, current_user_id=None): FILE: apps/system_manage/serializers/valid_serializers.py class ValidSerializer (line 36) | class ValidSerializer(serializers.Serializer): method valid (line 43) | def valid(self, is_valid=True): FILE: apps/system_manage/views/email_setting.py function encryption_str (line 27) | def encryption_str(_value): function get_email_details (line 33) | def get_email_details(request): class SystemSetting (line 45) | class SystemSetting(APIView): class Email (line 46) | class Email(APIView): method put (line 59) | def put(self, request: Request): method post (line 76) | def post(self, request: Request): method get (line 88) | def get(self, request: Request): FILE: apps/system_manage/views/resource_mapping.py class ResourceMappingView (line 24) | class ResourceMappingView(APIView): method get (line 48) | def get(self, request: Request, workspace_id: str, resource: str, reso... FILE: apps/system_manage/views/system_profile.py class SystemProfile (line 19) | class SystemProfile(APIView): method get (line 27) | def get(self, request: Request): FILE: apps/system_manage/views/user_resource_permission.py function get_user_operation_object (line 29) | def get_user_operation_object(user_id): class WorkSpaceUserResourcePermissionView (line 38) | class WorkSpaceUserResourcePermissionView(APIView): method get (line 53) | def get(self, request: Request, workspace_id: str, user_id: str, resou... method put (line 75) | def put(self, request: Request, workspace_id: str, user_id: str, resou... class Page (line 80) | class Page(APIView): method get (line 97) | def get(self, request: Request, workspace_id: str, user_id: str, res... class WorkspaceResourceUserPermissionView (line 105) | class WorkspaceResourceUserPermissionView(APIView): method get (line 130) | def get(self, request: Request, workspace_id: str, target: str, resour... method put (line 164) | def put(self, request: Request, workspace_id: str, target: str, resour... class Page (line 169) | class Page(APIView): method get (line 194) | def get(self, request: Request, workspace_id: str, target: str, reso... FILE: apps/system_manage/views/valid.py class Valid (line 20) | class Valid(APIView): method get (line 30) | def get(self, request: Request, valid_type: str, valid_count: int): FILE: apps/tools/api/tool.py class ToolCreateResponse (line 11) | class ToolCreateResponse(ResultSerializer): method get_data (line 12) | def get_data(self): class ToolCreateAPI (line 16) | class ToolCreateAPI(APIMixin): method get_parameters (line 18) | def get_parameters(): method get_request (line 30) | def get_request(): method get_response (line 34) | def get_response(): class ToolReadAPI (line 38) | class ToolReadAPI(APIMixin): method get_parameters (line 40) | def get_parameters(): method get_response (line 59) | def get_response(): class ToolEditAPI (line 63) | class ToolEditAPI(ToolReadAPI): method get_request (line 66) | def get_request(): class ToolDeleteAPI (line 70) | class ToolDeleteAPI(ToolReadAPI): method get_response (line 72) | def get_response(): class ToolTreeReadAPI (line 76) | class ToolTreeReadAPI(APIMixin): method get_parameters (line 78) | def get_parameters(): class ToolDebugApi (line 97) | class ToolDebugApi(APIMixin): method get_request (line 99) | def get_request(): method get_response (line 103) | def get_response(): class ToolExportAPI (line 107) | class ToolExportAPI(APIMixin): method get_parameters (line 109) | def get_parameters(): method get_response (line 128) | def get_response(): class ToolImportAPI (line 132) | class ToolImportAPI(APIMixin): method get_parameters (line 134) | def get_parameters(): method get_request (line 147) | def get_request(): method get_response (line 161) | def get_response(): class ToolPageAPI (line 165) | class ToolPageAPI(ToolReadAPI): method get_parameters (line 167) | def get_parameters(): class PylintAPI (line 222) | class PylintAPI(APIMixin): method get_parameters (line 224) | def get_parameters(): method get_request (line 237) | def get_request(): class EditIconAPI (line 241) | class EditIconAPI(APIMixin): method get_parameters (line 243) | def get_parameters(): method get_request (line 262) | def get_request(): method get_response (line 276) | def get_response(): class GetInternalToolAPI (line 280) | class GetInternalToolAPI(APIMixin): method get_parameters (line 282) | def get_parameters(): method get_response (line 294) | def get_response(): class AddInternalToolAPI (line 298) | class AddInternalToolAPI(APIMixin): method get_request (line 300) | def get_request(): method get_response (line 304) | def get_response(): method get_parameters (line 308) | def get_parameters(): FILE: apps/tools/api/tool_workflow.py class ToolWorkflowApi (line 10) | class ToolWorkflowApi(APIMixin): class ToolWorkflowVersionApi (line 14) | class ToolWorkflowVersionApi(APIMixin): class ToolWorkflowExportApi (line 18) | class ToolWorkflowExportApi(APIMixin): method get_parameters (line 20) | def get_parameters(): method get_response (line 39) | def get_response(): class ToolWorkflowImportApi (line 43) | class ToolWorkflowImportApi(APIMixin): method get_parameters (line 45) | def get_parameters(): method get_request (line 49) | def get_request(): method get_response (line 53) | def get_response(): FILE: apps/tools/apps.py class ToolConfig (line 4) | class ToolConfig(AppConfig): FILE: apps/tools/migrations/0001_initial.py function insert_default_data (line 14) | def insert_default_data(apps, schema_editor): class Migration (line 19) | class Migration(migrations.Migration): FILE: apps/tools/migrations/0002_alter_tool_tool_type.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/tools/migrations/0003_alter_tool_template_id.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/tools/migrations/0004_alter_tool_tool_type.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/tools/migrations/0005_taskrecord.py function _replace_tool_icons (line 91) | def _replace_tool_icons(apps, schema_editor): class Migration (line 102) | class Migration(migrations.Migration): FILE: apps/tools/migrations/0006_alter_tool_tool_type.py class Migration (line 6) | class Migration(migrations.Migration): FILE: apps/tools/migrations/0007_alter_tool_tool_type_toolworkflow_and_more.py class Migration (line 8) | class Migration(migrations.Migration): FILE: apps/tools/models/tool.py class ToolFolder (line 12) | class ToolFolder(MPTTModel, AppModelMixin): class Meta (line 20) | class Meta: class MPTTMeta (line 23) | class MPTTMeta: class ToolScope (line 27) | class ToolScope(models.TextChoices): class ToolType (line 33) | class ToolType(models.TextChoices): class ToolTaskTypeChoices (line 42) | class ToolTaskTypeChoices(models.TextChoices): class Tool (line 49) | class Tool(AppModelMixin): class Meta (line 70) | class Meta: class ToolRecord (line 74) | class ToolRecord(AppModelMixin): class Meta (line 85) | class Meta: FILE: apps/tools/models/tool_workflow.py class ToolWorkflow (line 17) | class ToolWorkflow(AppModelMixin): class Meta (line 29) | class Meta: class ToolWorkflowVersion (line 33) | class ToolWorkflowVersion(AppModelMixin): class Meta (line 45) | class Meta: FILE: apps/tools/serializers/tool.py class ToolInstance (line 51) | class ToolInstance: method __init__ (line 52) | def __init__(self, tool: dict, version: str): function to_dict (line 64) | def to_dict(message, file_name): function get_file_name (line 75) | def get_file_name(): class RestrictedUnpickler (line 84) | class RestrictedUnpickler(pickle.Unpickler): method find_class (line 86) | def find_class(self, folder, name): function encryption (line 93) | def encryption(message: str): function validate_mcp_config (line 120) | def validate_mcp_config(servers: Dict): class ToolModelSerializer (line 132) | class ToolModelSerializer(serializers.ModelSerializer): class Meta (line 133) | class Meta: class ToolRecordModelSerializer (line 140) | class ToolRecordModelSerializer(serializers.ModelSerializer): class Meta (line 141) | class Meta: class ToolExportModelSerializer (line 147) | class ToolExportModelSerializer(serializers.ModelSerializer): class Meta (line 148) | class Meta: class UploadedFileField (line 155) | class UploadedFileField(serializers.FileField): method __init__ (line 156) | def __init__(self, **kwargs): method to_representation (line 159) | def to_representation(self, value): class ToolInputField (line 163) | class ToolInputField(serializers.Serializer): class InitField (line 176) | class InitField(serializers.Serializer): class ToolCreateRequest (line 187) | class ToolCreateRequest(serializers.Serializer): class ToolEditRequest (line 203) | class ToolEditRequest(serializers.Serializer): class AddInternalToolRequest (line 214) | class AddInternalToolRequest(serializers.Serializer): class DebugField (line 219) | class DebugField(serializers.Serializer): class ToolDebugRequest (line 224) | class ToolDebugRequest(serializers.Serializer): class PylintInstance (line 232) | class PylintInstance(serializers.Serializer): class ToolSerializer (line 236) | class ToolSerializer(serializers.Serializer): class Query (line 237) | class Query(serializers.Serializer): method get_query_set (line 246) | def get_query_set(self, workspace_manage, is_x_pack_ee): method get_authorized_query_set (line 296) | def get_authorized_query_set(self): method is_x_pack_ee (line 319) | def is_x_pack_ee(): method get_tools (line 324) | def get_tools(self): class Create (line 361) | class Create(serializers.Serializer): method insert (line 366) | def insert(self, instance, with_valid=True): class TestConnection (line 421) | class TestConnection(serializers.Serializer): method test_connection (line 425) | def test_connection(self): class Debug (line 434) | class Debug(serializers.Serializer): method debug (line 438) | def debug(self, debug_instance): method get_field_value (line 459) | def get_field_value(debug_field_list, name, is_required): method convert_value (line 468) | def convert_value(name: str, value: str, _type: str, is_required: bo... class Operate (line 495) | class Operate(serializers.Serializer): method is_one_valid (line 499) | def is_one_valid(self, *, raise_exception=False): method is_valid (line 511) | def is_valid(self, *, raise_exception=False): method edit (line 521) | def edit(self, instance, with_valid=True): method delete (line 570) | def delete(self): method one (line 595) | def one(self): method export (line 629) | def export(self): class Pylint (line 648) | class Pylint(serializers.Serializer): method run (line 650) | def run(self, instance, is_valid=True): class Import (line 666) | class Import(serializers.Serializer): method import_ (line 674) | def import_(self, scope=ToolScope.WORKSPACE): class IconOperate (line 726) | class IconOperate(serializers.Serializer): method is_valid (line 732) | def is_valid(self, *, raise_exception=False): method edit (line 741) | def edit(self, with_valid=True): class InternalTool (line 771) | class InternalTool(serializers.Serializer): method get_internal_tools (line 775) | def get_internal_tools(self): class AddInternalTool (line 791) | class AddInternalTool(serializers.Serializer): method add (line 796) | def add(self, instance, with_valid=True): class StoreTool (line 834) | class StoreTool(serializers.Serializer): method get_appstore_tools (line 838) | def get_appstore_tools(self): class AddStoreTool (line 883) | class AddStoreTool(serializers.Serializer): method add (line 888) | def add(self, instance: Dict, with_valid=True): class UpdateStoreTool (line 946) | class UpdateStoreTool(serializers.Serializer): method update_tool (line 955) | def update_tool(self, with_valid=True): class ToolRecord (line 994) | class ToolRecord(serializers.Serializer): class Operate (line 1002) | class Operate(serializers.Serializer): method one (line 1007) | def one(self): method one (line 1026) | def one(self): method get_tool_records (line 1034) | def get_tool_records(self, current_page: int, page_size: int): class UploadSkillFile (line 1090) | class UploadSkillFile(serializers.Serializer): method upload (line 1095) | def upload(self): class ToolTreeSerializer (line 1110) | class ToolTreeSerializer(serializers.Serializer): class Query (line 1111) | class Query(serializers.Serializer): method page_tool (line 1122) | def page_tool(self, current_page: int, page_size: int): method get_query_set (line 1147) | def get_query_set(self, workspace_manage, is_x_pack_ee): method is_x_pack_ee (line 1202) | def is_x_pack_ee(): method page_tool_with_folders (line 1207) | def page_tool_with_folders(self, current_page: int, page_size: int): method get_tools (line 1231) | def get_tools(self): FILE: apps/tools/serializers/tool_folder.py class ToolFolderTreeSerializer (line 8) | class ToolFolderTreeSerializer(serializers.ModelSerializer): class Meta (line 11) | class Meta: method get_children (line 15) | def get_children(self, obj): class ToolFolderFlatSerializer (line 19) | class ToolFolderFlatSerializer(serializers.ModelSerializer): class Meta (line 22) | class Meta: FILE: apps/tools/serializers/tool_version.py class ToolWorkflowVersionEditSerializer (line 20) | class ToolWorkflowVersionEditSerializer(serializers.Serializer): class ToolVersionModelSerializer (line 25) | class ToolVersionModelSerializer(serializers.ModelSerializer): class Meta (line 26) | class Meta: class ToolWorkflowVersionQuerySerializer (line 33) | class ToolWorkflowVersionQuerySerializer(serializers.Serializer): class ToolWorkflowVersionSerializer (line 39) | class ToolWorkflowVersionSerializer(serializers.Serializer): class Query (line 42) | class Query(serializers.Serializer): method get_query_set (line 45) | def get_query_set(self, query): method list (line 53) | def list(self, query, with_valid=True): method page (line 60) | def page(self, query, current_page, page_size, with_valid=True): class Operate (line 67) | class Operate(serializers.Serializer): method is_valid (line 73) | def is_valid(self, *, raise_exception=False): method one (line 82) | def one(self, with_valid=True): method edit (line 93) | def edit(self, instance: Dict, with_valid=True): FILE: apps/tools/serializers/tool_workflow.py function hand_node (line 45) | def hand_node(node, update_tool_map): class ToolWorkflowModelSerializer (line 66) | class ToolWorkflowModelSerializer(serializers.ModelSerializer): class Meta (line 67) | class Meta: class ToolWorkflowImportRequest (line 72) | class ToolWorkflowImportRequest(serializers.Serializer): class ToolWorkflowActionListQuerySerializer (line 76) | class ToolWorkflowActionListQuerySerializer(serializers.Serializer): class ToolWorkflowInstance (line 81) | class ToolWorkflowInstance: method __init__ (line 83) | def __init__(self, knowledge_workflow: dict, version: str, tool_list: ... method get_tool_list (line 88) | def get_tool_list(self): class ToolWorkflowSerializer (line 92) | class ToolWorkflowSerializer(serializers.Serializer): class Import (line 93) | class Import(serializers.Serializer): method import_ (line 99) | def import_(self, instance: dict, is_import_tool, with_valid=True): method to_tool_workflow (line 156) | def to_tool_workflow(knowledge_workflow, update_tool_map): method to_tool (line 166) | def to_tool(tool, workspace_id, user_id): class Export (line 180) | class Export(serializers.Serializer): method export (line 185) | def export(self, with_valid=True): class Operate (line 216) | class Operate(serializers.Serializer): method debug (line 221) | def debug(self, instance: Dict, user, with_valid=True): method to_chat_record (line 253) | def to_chat_record(record): method publish (line 262) | def publish(self, with_valid=True): method edit (line 283) | def edit(self, instance: Dict): method one (line 316) | def one(self): FILE: apps/tools/views/tool.py function get_tool_operation_object (line 19) | def get_tool_operation_object(tool_id): class ToolView (line 28) | class ToolView(APIView): method post (line 50) | def post(self, request: Request, workspace_id: str): method get (line 69) | def get(self, request: Request, workspace_id: str): class Debug (line 83) | class Debug(APIView): method post (line 100) | def post(self, request: Request, workspace_id: str): class Operate (line 105) | class Operate(APIView): method put (line 131) | def put(self, request: Request, workspace_id: str, tool_id: str): method get (line 157) | def get(self, request: Request, workspace_id: str, tool_id: str): method delete (line 184) | def delete(self, request: Request, workspace_id: str, tool_id: str): class Page (line 189) | class Page(APIView): method get (line 207) | def get(self, request: Request, workspace_id: str, current_page: int... class Query (line 220) | class Query(APIView): method get (line 238) | def get(self, request: Request, workspace_id: str): class Import (line 251) | class Import(APIView): method post (line 271) | def post(self, request: Request, workspace_id: str): class Export (line 281) | class Export(APIView): method get (line 305) | def get(self, request: Request, tool_id: str, workspace_id: str): class Pylint (line 310) | class Pylint(APIView): method post (line 329) | def post(self, request: Request, workspace_id: str): class EditIcon (line 334) | class EditIcon(APIView): method put (line 356) | def put(self, request: Request, tool_id: str, workspace_id: str): class TestConnection (line 364) | class TestConnection(APIView): method post (line 383) | def post(self, request: Request, workspace_id: str): class InternalTool (line 389) | class InternalTool(APIView): method get (line 401) | def get(self, request: Request): class AddInternalTool (line 407) | class AddInternalTool(APIView): method post (line 430) | def post(self, request: Request, tool_id: str, workspace_id: str): class StoreTool (line 437) | class StoreTool(APIView): method get (line 448) | def get(self, request: Request): class AddStoreTool (line 454) | class AddStoreTool(APIView): method post (line 477) | def post(self, request: Request, tool_id: str, workspace_id: str): class UpdateStoreTool (line 484) | class UpdateStoreTool(APIView): method post (line 507) | def post(self, request: Request, tool_id: str, workspace_id: str): class PageToolRecord (line 518) | class PageToolRecord(APIView): method get (line 538) | def get(self, request: Request, tool_id: str, workspace_id: str, cur... class ToolRecord (line 547) | class ToolRecord(APIView): method get (line 567) | def get(self, request: Request, tool_id: str, workspace_id: str, rec... class UploadSkillFile (line 574) | class UploadSkillFile(APIView): method put (line 593) | def put(self, request: Request, workspace_id: str): FILE: apps/tools/views/tool_workflow.py class ToolWorkflowView (line 20) | class ToolWorkflowView(APIView): class Publish (line 23) | class Publish(APIView): method put (line 44) | def put(self, request: Request, workspace_id: str, tool_id: str): class Export (line 50) | class Export(APIView): method get (line 76) | def get(self, request: Request, workspace_id: str, tool_id: str): class Import (line 81) | class Import(APIView): method post (line 107) | def post(self, request: Request, workspace_id: str, tool_id: str): class Operate (line 117) | class Operate(APIView): method put (line 144) | def put(self, request: Request, workspace_id: str, tool_id: str): method get (line 168) | def get(self, request: Request, workspace_id: str, tool_id: str): class KnowledgeWorkflowVersionView (line 174) | class KnowledgeWorkflowVersionView(APIView): method get (line 196) | def get(self, request: Request, workspace_id: str, tool_id: str): class ToolWorkflowDebugView (line 202) | class ToolWorkflowDebugView(APIView): method post (line 224) | def post(self, request: Request, workspace_id: str, tool_id: str): FILE: apps/tools/views/tool_workflow_version.py function get_knowledge_operation_object (line 27) | def get_knowledge_operation_object(knowledge_id): class ToolWorkflowVersionView (line 36) | class ToolWorkflowVersionView(APIView): method get (line 54) | def get(self, request: Request, workspace_id, tool_id: str): class Page (line 60) | class Page(APIView): method get (line 78) | def get(self, request: Request, workspace_id: str, tool_id: str, cur... class Operate (line 85) | class Operate(APIView): method get (line 103) | def get(self, request: Request, workspace_id: str, tool_id: str, too... method put (line 128) | def put(self, request: Request, workspace_id: str, tool_id: str, too... FILE: apps/trigger/api/trigger.py class TriggerQueryResponseSerializer (line 20) | class TriggerQueryResponseSerializer(serializers.Serializer): class TriggerTaskRecordResponse (line 34) | class TriggerTaskRecordResponse(ResultSerializer): method get_data (line 35) | def get_data(self): class TriggerQueryAPI (line 39) | class TriggerQueryAPI(APIMixin): method get_parameters (line 41) | def get_parameters(): method get_response (line 83) | def get_response(): class TriggerQueryPageAPI (line 87) | class TriggerQueryPageAPI(APIMixin): method get_parameters (line 89) | def get_parameters(): method get_response (line 107) | def get_response(): class TriggerCreateAPI (line 111) | class TriggerCreateAPI(APIMixin): method get_parameters (line 113) | def get_parameters(): method get_request (line 125) | def get_request(): method get_response (line 129) | def get_response(): class TaskSourceTriggerCreateAPI (line 133) | class TaskSourceTriggerCreateAPI(APIMixin): method get_parameters (line 135) | def get_parameters(): method get_request (line 161) | def get_request(): method get_response (line 165) | def get_response(): class TriggerBatchDeleteAPI (line 169) | class TriggerBatchDeleteAPI(APIMixin): method get_parameters (line 171) | def get_parameters(): method get_request (line 183) | def get_request(): class TriggerBatchActiveAPI (line 187) | class TriggerBatchActiveAPI(APIMixin): method get_request (line 189) | def get_request(): class TriggerOperateAPI (line 193) | class TriggerOperateAPI(APIMixin): method get_parameters (line 195) | def get_parameters(): method get_request (line 214) | def get_request(): method get_response (line 218) | def get_response(): class RequestSE (line 222) | class RequestSE(serializers.Serializer): class TriggerEditAPI (line 226) | class TriggerEditAPI(APIMixin): method get_request (line 228) | def get_request(): class TaskSourceTriggerAPI (line 232) | class TaskSourceTriggerAPI(APIMixin): method get_parameters (line 234) | def get_parameters(): method get_response (line 260) | def get_response(): class TaskSourceTriggerOperateAPI (line 264) | class TaskSourceTriggerOperateAPI(APIMixin): method get_parameters (line 266) | def get_parameters(): method get_request (line 299) | def get_request(): FILE: apps/trigger/api/trigger_task.py class TriggerTaskRecordResultSerializer (line 19) | class TriggerTaskRecordResultSerializer(serializers.Serializer): class TriggerTaskRecordResponse (line 32) | class TriggerTaskRecordResponse(ResultSerializer): method get_data (line 33) | def get_data(self): class TriggerTaskRecordExecutionDetailsResponse (line 37) | class TriggerTaskRecordExecutionDetailsResponse(ResultSerializer): method get_data (line 38) | def get_data(self): class TriggerTaskResultSerializer (line 42) | class TriggerTaskResultSerializer(ResultSerializer): method get_data (line 43) | def get_data(self): class TriggerTaskAPI (line 47) | class TriggerTaskAPI(APIMixin): method get_system_parameters (line 49) | def get_system_parameters(): method get_parameters (line 54) | def get_parameters(): method get_response (line 73) | def get_response(): class TriggerTaskRecordPageAPI (line 77) | class TriggerTaskRecordPageAPI(APIMixin): method get_system_parameters (line 79) | def get_system_parameters(): method get_parameters (line 84) | def get_parameters(): method get_response (line 138) | def get_response(): class TriggerTaskRecordExecutionDetailsAPI (line 142) | class TriggerTaskRecordExecutionDetailsAPI(APIMixin): method get_system_parameters (line 144) | def get_system_parameters(): method get_parameters (line 149) | def get_parameters(): method get_response (line 175) | def get_response(): FILE: apps/trigger/apps.py class TriggerConfig (line 4) | class TriggerConfig(AppConfig): FILE: apps/trigger/handler/base_task.py class BaseTriggerTask (line 12) | class BaseTriggerTask(ABC): method support (line 18) | def support(self, trigger_task, **kwargs): method execute (line 22) | def execute(self, trigger_task, **kwargs): FILE: apps/trigger/handler/base_trigger.py class BaseTrigger (line 13) | class BaseTrigger(ABC): method support (line 19) | def support(self, trigger, **kwargs): method deploy (line 23) | def deploy(self, trigger, **kwargs): method undeploy (line 27) | def undeploy(self, trigger, **kwargs): method execute (line 32) | def execute(trigger, **kwargs): FILE: apps/trigger/handler/impl/task/application_task.py function get_reference (line 24) | def get_reference(fields, obj): function conversion_custom_value (line 34) | def conversion_custom_value(value, _type): function valid_value_type (line 43) | def valid_value_type(value, _type): function get_field_value (line 57) | def get_field_value(value, kwargs, _type, required, default_value, field): function get_application_execute_parameters (line 78) | def get_application_execute_parameters(parameter_setting, application_pa... function get_loop_workflow_node (line 111) | def get_loop_workflow_node(node_list): function get_workflow_state (line 121) | def get_workflow_state(details): function get_user_field_component_input_type (line 130) | def get_user_field_component_input_type(input_type): function get_application_parameters_setting (line 138) | def get_application_parameters_setting(application): class ApplicationTask (line 176) | class ApplicationTask(BaseTriggerTask): method support (line 177) | def support(self, trigger_task, **kwargs): method execute (line 180) | def execute(self, trigger_task, **kwargs): FILE: apps/trigger/handler/impl/task/tool_task.py function get_reference (line 28) | def get_reference(fields, obj): function get_field_value (line 38) | def get_field_value(value, kwargs): function _convert_value (line 46) | def _convert_value(_type, value): function get_tool_execute_parameters (line 70) | def get_tool_execute_parameters(input_field_list, parameter_setting, kwa... function get_loop_workflow_node (line 80) | def get_loop_workflow_node(node_list): function get_workflow_state (line 90) | def get_workflow_state(details): function _get_result_detail (line 99) | def _get_result_detail(result): class ToolTask (line 111) | class ToolTask(BaseTriggerTask): method support (line 112) | def support(self, trigger_task, **kwargs): method execute (line 115) | def execute(self, trigger_task, **kwargs): FILE: apps/trigger/handler/impl/trigger/event_trigger.py function valid_parameter_type (line 28) | def valid_parameter_type(value, _type, desc): function get_parameters (line 55) | def get_parameters(body_setting, request: Request): class EventTriggerRequest (line 73) | class EventTriggerRequest(serializers.Serializer): class EventTriggerView (line 77) | class EventTriggerView(APIView): method post (line 105) | def post(self, request: Request, trigger_id: str): class EventTrigger (line 112) | class EventTrigger(BaseTrigger): method execute (line 118) | def execute(trigger, request=None, **kwargs): method support (line 136) | def support(self, trigger, **kwargs): method deploy (line 139) | def deploy(self, trigger, **kwargs): method undeploy (line 142) | def undeploy(self, trigger, **kwargs): FILE: apps/trigger/handler/impl/trigger/scheduled_trigger.py function _parse_hhmm (line 10) | def _parse_hhmm(value: str) -> tuple[int, int]: function _weekday_to_cron (line 19) | def _weekday_to_cron(d: int | str) -> str: function _get_active_trigger_tasks (line 27) | def _get_active_trigger_tasks(trigger_id: str) -> list[dict]: function _deploy_daily (line 35) | def _deploy_daily(trigger: dict, trigger_tasks: list[dict], setting: dic... function _deploy_weekly (line 59) | def _deploy_weekly(trigger: dict, trigger_tasks: list[dict], setting: di... function _deploy_monthly (line 96) | def _deploy_monthly(trigger: dict, trigger_tasks: list[dict], setting: d... function _deploy_cron (line 134) | def _deploy_cron(trigger: dict, trigger_tasks: list[dict], setting: dict... function _deploy_interval (line 159) | def _deploy_interval(trigger: dict, trigger_tasks: list[dict], setting: ... function _remove_trigger_jobs (line 189) | def _remove_trigger_jobs(trigger_id: str) -> None: function deploy_scheduled_trigger (line 202) | def deploy_scheduled_trigger(trigger: dict, trigger_tasks: list[dict], s... class ScheduledTrigger (line 220) | class ScheduledTrigger(BaseTrigger): method execute (line 226) | def execute(trigger, **kwargs): method support (line 244) | def support(self, trigger, **kwargs): method deploy (line 247) | def deploy(self, trigger, **kwargs): method undeploy (line 268) | def undeploy(self, trigger, **kwargs): FILE: apps/trigger/handler/simple_tools.py function execute (line 21) | def execute(trigger_task, **kwargs): function deploy (line 35) | def deploy(trigger, **kwargs): function undeploy (line 48) | def undeploy(trigger, **kwargs): FILE: apps/trigger/migrations/0001_initial.py class Migration (line 9) | class Migration(migrations.Migration): FILE: apps/trigger/migrations/0002_remove_taskrecord_trigger_task_and_more.py class Migration (line 7) | class Migration(migrations.Migration): FILE: apps/trigger/models/trigger.py class TriggerTypeChoices (line 19) | class TriggerTypeChoices(models.TextChoices): class TriggerTaskTypeChoices (line 24) | class TriggerTaskTypeChoices(models.TextChoices): class Trigger (line 29) | class Trigger(AppModelMixin): class Meta (line 41) | class Meta: class TriggerTask (line 45) | class TriggerTask(AppModelMixin): class Meta (line 56) | class Meta: class TaskRecord (line 61) | class TaskRecord(AppModelMixin): class Meta (line 78) | class Meta: FILE: apps/trigger/serializers/task_source_trigger.py class TaskSourceTriggerTaskEditRequest (line 24) | class TaskSourceTriggerTaskEditRequest(serializers.Serializer): class TaskSourceTriggerEditRequest (line 29) | class TaskSourceTriggerEditRequest(serializers.Serializer): class TaskSourceTriggerSerializer (line 38) | class TaskSourceTriggerSerializer(serializers.Serializer): method insert (line 42) | def insert(self, instance, with_valid=True): class TaskSourceTriggerOperateSerializer (line 59) | class TaskSourceTriggerOperateSerializer(serializers.Serializer): method is_valid (line 65) | def is_valid(self, *, raise_exception=False): method one (line 74) | def one(self, with_valid=True): method edit (line 104) | def edit(self, instance: Dict, with_valid=True): method delete (line 156) | def delete(self): class TaskSourceTriggerListSerializer (line 181) | class TaskSourceTriggerListSerializer(serializers.Serializer): method list (line 186) | def list(self, with_valid=True): FILE: apps/trigger/serializers/trigger.py class BatchActiveSerializer (line 31) | class BatchActiveSerializer(serializers.Serializer): method is_valid (line 35) | def is_valid(self, *, model=None, raise_exception=False): class InputField (line 46) | class InputField(serializers.Serializer): class ApplicationTaskParameterSerializer (line 54) | class ApplicationTaskParameterSerializer(serializers.Serializer): method _validate_input_dict (line 65) | def _validate_input_dict(value, field_name): method validate_api_input_field_list (line 77) | def validate_api_input_field_list(self, value): method validate_user_input_field_list (line 80) | def validate_user_input_field_list(self, value): class ToolTaskParameterSerializer (line 84) | class ToolTaskParameterSerializer(serializers.Serializer): method to_internal_value (line 86) | def to_internal_value(self, data): class TriggerValidationMixin (line 99) | class TriggerValidationMixin: method validate (line 101) | def validate(self, attrs): method _validate_required_field (line 117) | def _validate_required_field(setting, field_name, trigger_type): method _validate_non_empty_array (line 124) | def _validate_non_empty_array(value, field_name): method _validate_number_range (line 133) | def _validate_number_range(values, field_name, min_val, max_val): method _validate_time_array (line 144) | def _validate_time_array(self, time_list): method _validate_time_format (line 151) | def _validate_time_format(time_str): method _validate_scheduled_setting (line 160) | def _validate_scheduled_setting(self, setting): method _validate_daily (line 178) | def _validate_daily(self, setting): method _validate_weekly (line 182) | def _validate_weekly(self, setting): method _validate_monthly (line 190) | def _validate_monthly(self, setting): method _validate_interval (line 198) | def _validate_interval(self, setting): method _validate_cron (line 217) | def _validate_cron(setting): method _validate_event_setting (line 233) | def _validate_event_setting(setting): class TriggerTaskCreateRequest (line 241) | class TriggerTaskCreateRequest(serializers.Serializer): method validate (line 248) | def validate(self, attrs): class TriggerTaskEditRequest (line 263) | class TriggerTaskEditRequest(serializers.Serializer): method validate (line 270) | def validate(self, attrs): class TriggerEditRequest (line 285) | class TriggerEditRequest(TriggerValidationMixin, serializers.Serializer): class TriggerCreateRequest (line 294) | class TriggerCreateRequest(TriggerValidationMixin, serializers.Serializer): class TriggerModelSerializer (line 305) | class TriggerModelSerializer(serializers.ModelSerializer): class Meta (line 306) | class Meta: class TriggerTaskModelSerializer (line 311) | class TriggerTaskModelSerializer(serializers.ModelSerializer): class Meta (line 312) | class Meta: class ApplicationTriggerTaskSerializer (line 317) | class ApplicationTriggerTaskSerializer(serializers.ModelSerializer): class Meta (line 318) | class Meta: class ToolTriggerTaskSerializer (line 323) | class ToolTriggerTaskSerializer(serializers.ModelSerializer): class Meta (line 324) | class Meta: class TriggerResponse (line 329) | class TriggerResponse(serializers.ModelSerializer): class Meta (line 330) | class Meta: class TriggerSerializer (line 335) | class TriggerSerializer(serializers.Serializer): method insert (line 340) | def insert(self, instance, with_valid=True): method batch_get_source_active_status (line 391) | def batch_get_source_active_status(trigger_tasks: list) -> Dict[tuple,... method is_active_source (line 424) | def is_active_source(source_type: str, source_id: str): class Batch (line 439) | class Batch(serializers.Serializer): method is_valid (line 443) | def is_valid(self, *, raise_exception=False): method batch_delete (line 447) | def batch_delete(self, instance: Dict, with_valid=True): method batch_switch (line 466) | def batch_switch(self, instance: Dict, with_valid=True): class TriggerOperateSerializer (line 489) | class TriggerOperateSerializer(serializers.Serializer): method is_valid (line 494) | def is_valid(self, *, raise_exception=False): method edit (line 504) | def edit(self, instance: Dict, with_valid=True): method delete (line 562) | def delete(self): method one (line 575) | def one(self, with_valid=True): class TriggerQuerySerializer (line 611) | class TriggerQuerySerializer(serializers.Serializer): method get_query_set (line 619) | def get_query_set(self): method page (line 645) | def page(self, current_page: int, page_size: int, with_valid=True): method list (line 652) | def list(self, with_valid=True): FILE: apps/trigger/serializers/trigger_task.py class ChatRecordSerializerModel (line 26) | class ChatRecordSerializerModel(serializers.ModelSerializer): class Meta (line 27) | class Meta: class TriggerTaskResponse (line 35) | class TriggerTaskResponse(serializers.ModelSerializer): class Meta (line 36) | class Meta: class TriggerTaskQuerySerializer (line 41) | class TriggerTaskQuerySerializer(serializers.Serializer): method is_valid (line 45) | def is_valid(self, *, raise_exception=False): method get_query_set (line 54) | def get_query_set(self): method list (line 59) | def list(self, with_valid=True): class TriggerTaskRecordOperateSerializer (line 65) | class TriggerTaskRecordOperateSerializer(serializers.Serializer): method is_valid (line 71) | def is_valid(self, *, raise_exception=False): method get_execution_details (line 80) | def get_execution_details(self, is_valid=True): class TriggerTaskRecordQuerySerializer (line 125) | class TriggerTaskRecordQuerySerializer(serializers.Serializer): method is_valid (line 133) | def is_valid(self, *, raise_exception=False): method get_query_set (line 142) | def get_query_set(self): method list (line 166) | def list(self, with_valid=True): method page (line 171) | def page(self, current_page, page_size, with_valid=True): FILE: apps/trigger/views/trigger.py function get_trigger_operation_object (line 34) | def get_trigger_operation_object(trigger_id): function get_trigger_operation_object_batch (line 42) | def get_trigger_operation_object_batch(trigger_id_list): class TriggerView (line 52) | class TriggerView(APIView): method post (line 73) | def post(self, request: Request, workspace_id: str): method get (line 90) | def get(self, request: Request, workspace_id: str): class Operate (line 100) | class Operate(APIView): method get (line 120) | def get(self, request: Request, workspace_id: str, trigger_id: str): method put (line 143) | def put(self, request: Request, workspace_id: str, trigger_id: str): method delete (line 165) | def delete(self, request: Request, workspace_id: str, trigger_id: str): class BatchDelete (line 170) | class BatchDelete(APIView): method put (line 191) | def put(self, request: Request, workspace_id: str): class BatchActivate (line 196) | class BatchActivate(APIView): method put (line 217) | def put(self, request: Request, workspace_id: str): class Page (line 222) | class Page(APIView): method get (line 238) | def get(self, request: Request, workspace_id: str, current_page: int... class TaskSourceTriggerView (line 249) | class TaskSourceTriggerView(APIView): method post (line 279) | def post(self, request: Request, workspace_id: str, source_type: str, ... method get (line 306) | def get(self, request: Request, workspace_id: str, source_type: str, s... class Operate (line 313) | class Operate(APIView): method get (line 334) | def get(self, request: Request, workspace_id: str, source_type: str,... method put (line 367) | def put(self, request: Request, workspace_id: str, source_type: str,... method delete (line 399) | def delete(self, request: Request, workspace_id: str, source_type: s... FILE: apps/trigger/views/trigger_task.py class TriggerTaskView (line 23) | class TriggerTaskView(APIView): method get (line 39) | def get(self, request: Request, workspace_id: str, trigger_id: str): class TriggerTaskRecordView (line 44) | class TriggerTaskRecordView(APIView): class TriggerTaskRecordExecutionDetailsView (line 48) | class TriggerTaskRecordExecutionDetailsView(APIView): method get (line 64) | def get(self, request: Request, workspace_id: str, trigger_id: str, tr... class TriggerTaskRecordPageView (line 73) | class TriggerTaskRecordPageView(APIView): method get (line 89) | def get(self, request: Request, workspace_id: str, trigger_id: str, cu... FILE: apps/users/api/login.py class ApiLoginResponse (line 17) | class ApiLoginResponse(ResultSerializer): method get_data (line 18) | def get_data(self): class LoginAPI (line 37) | class LoginAPI(APIMixin): method get_request (line 39) | def get_request(): method get_response (line 43) | def get_response(): method get_parameters (line 47) | def get_parameters(): class ApiCaptchaResponse (line 56) | class ApiCaptchaResponse(ResultSerializer): method get_data (line 57) | def get_data(self): class CaptchaAPI (line 61) | class CaptchaAPI(APIMixin): method get_response (line 63) | def get_response(): FILE: apps/users/api/user.py class ApiUserProfileResponse (line 20) | class ApiUserProfileResponse(ResultSerializer): method get_data (line 21) | def get_data(self): class RoleSettingRequestSerializer (line 25) | class RoleSettingRequestSerializer(serializers.Serializer): class CreateUserRequestSerializer (line 34) | class CreateUserRequestSerializer(CreateUserSerializer): class UserProfileAPI (line 38) | class UserProfileAPI(APIMixin): method get_response (line 41) | def get_response(): method get_request (line 45) | def get_request(): method get_parameters (line 49) | def get_parameters(): class WorkspaceUserAPI (line 59) | class WorkspaceUserAPI(APIMixin): method get_parameters (line 61) | def get_parameters(): method get_response (line 71) | def get_response(): class WorkspaceUser (line 75) | class WorkspaceUser(serializers.Serializer): class WorkspaceUserListResponse (line 80) | class WorkspaceUserListResponse(ResultSerializer): method get_data (line 81) | def get_data(self): class UserPasswordResponse (line 85) | class UserPasswordResponse(APIMixin): method get_response (line 88) | def get_response(): class Password (line 92) | class Password(serializers.Serializer): class PasswordResponse (line 96) | class PasswordResponse(ResultSerializer): method get_data (line 97) | def get_data(self): class EditUserRequestSerializer (line 101) | class EditUserRequestSerializer(UserManageSerializer.UserEditInstance): class EditUserApi (line 105) | class EditUserApi(APIMixin): method get_parameters (line 107) | def get_parameters(): method get_request (line 117) | def get_request(): class DeleteUserApi (line 121) | class DeleteUserApi(APIMixin): method get_parameters (line 123) | def get_parameters(): method get_request (line 133) | def get_request(): class ChangeUserPasswordApi (line 138) | class ChangeUserPasswordApi(APIMixin): method get_request (line 140) | def get_request(): class UserListResponse (line 144) | class UserListResponse(ResultSerializer): method get_data (line 145) | def get_data(self): class UserPageApi (line 149) | class UserPageApi(APIMixin): method get_parameters (line 151) | def get_parameters(): method get_response (line 161) | def get_response(): class UserListApi (line 165) | class UserListApi(APIMixin): method get_parameters (line 167) | def get_parameters(): method get_response (line 177) | def get_response(): class TestWorkspacePermissionUserApi (line 181) | class TestWorkspacePermissionUserApi(APIMixin): method get_parameters (line 183) | def get_parameters(): class ResetPasswordAPI (line 197) | class ResetPasswordAPI(APIMixin): method get_request (line 199) | def get_request(): class CheckCodeAPI (line 203) | class CheckCodeAPI(APIMixin): method get_request (line 205) | def get_request(): method get_response (line 209) | def get_response(): class SendEmailAPI (line 213) | class SendEmailAPI(APIMixin): method get_request (line 215) | def get_request(): method get_response (line 219) | def get_response(): class LanguageSerializer (line 223) | class LanguageSerializer(serializers.Serializer): class SwitchUserLanguageAPI (line 227) | class SwitchUserLanguageAPI(APIMixin): method get_request (line 229) | def get_request(): FILE: apps/users/apps.py class UsersConfig (line 4) | class UsersConfig(AppConfig): method ready (line 8) | def ready(self): FILE: apps/users/migrations/0001_initial.py function insert_default_data (line 13) | def insert_default_data(apps, schema_editor): class Migration (line 22) | class Migration(migrations.Migration): FILE: apps/users/models/user.py class User (line 16) | class User(models.Model): class Meta (line 33) | class Meta: method set_password (line 36) | def set_password(self, row_password): FILE: apps/users/serializers/login.py class LoginRequest (line 31) | class LoginRequest(serializers.Serializer): class LoginResponse (line 43) | class LoginResponse(serializers.Serializer): function record_login_fail (line 50) | def record_login_fail(username: str, expire: int = 600): function record_login_fail_lock (line 62) | def record_login_fail_lock(username: str, expire: int = 10): class LoginSerializer (line 73) | class LoginSerializer(serializers.Serializer): method get_auth_setting (line 76) | def get_auth_setting(): method login (line 90) | def login(instance): method _is_account_locked (line 160) | def _is_account_locked(username: str, failed_attempts: int) -> bool: method _need_captcha (line 168) | def _need_captcha(username: str, max_attempts: int) -> bool: method _validate_captcha (line 178) | def _validate_captcha(username: str, captcha: str) -> None: method _handle_failed_login (line 192) | def _handle_failed_login(username: str, is_license_valid: bool, failed... class CaptchaResponse (line 223) | class CaptchaResponse(serializers.Serializer): class CaptchaSerializer (line 230) | class CaptchaSerializer(serializers.Serializer): method generate (line 232) | def generate(username: str, type: str = 'system'): method chat_generate (line 246) | def chat_generate(username: str, type: str = 'chat', access_token: str... method _generate_captcha_if_needed (line 267) | def _generate_captcha_if_needed(username: str, type: str, need_captcha... FILE: apps/users/serializers/user.py class UserProfileResponse (line 52) | class UserProfileResponse(serializers.ModelSerializer): class Meta (line 56) | class Meta: class CreateUserSerializer (line 61) | class CreateUserSerializer(serializers.Serializer): function is_workspace_manage (line 71) | def is_workspace_manage(user_id: str, workspace_id: str): function get_workspace_list_by_user (line 82) | def get_workspace_list_by_user(user_id): class UserProfileSerializer (line 90) | class UserProfileSerializer(serializers.Serializer): method profile (line 92) | def profile(user: User, auth: Auth): class UserInstanceSerializer (line 126) | class UserInstanceSerializer(serializers.ModelSerializer): class Meta (line 127) | class Meta: class UserManageSerializer (line 133) | class UserManageSerializer(serializers.Serializer): class UserInstance (line 134) | class UserInstance(serializers.Serializer): method is_valid (line 188) | def is_valid(self, *, raise_exception=True): method _check_unique_username_and_email (line 192) | def _check_unique_username_and_email(self): class Query (line 205) | class Query(serializers.Serializer): method get_query_set (line 233) | def get_query_set(self): method list (line 253) | def list(self, with_valid=True): method page (line 259) | def page(self, current_page: int, page_size: int, user_id: str, with... method save (line 335) | def save(self, instance, user_id, with_valid=True): class UserEditInstance (line 357) | class UserEditInstance(serializers.Serializer): method is_valid (line 383) | def is_valid(self, *, user_id=None, raise_exception=False): method _check_unique_nick_name (line 388) | def _check_unique_nick_name(self, user_id): method _check_unique_email (line 393) | def _check_unique_email(self, user_id): class RePasswordInstance (line 398) | class RePasswordInstance(serializers.Serializer): method is_valid (line 426) | def is_valid(self, *, raise_exception=False): method _check_passwords_match (line 430) | def _check_passwords_match(self): class Operate (line 434) | class Operate(serializers.Serializer): method is_valid (line 437) | def is_valid(self, *, raise_exception=False): method _check_user_exists (line 441) | def _check_user_exists(self): method delete (line 446) | def delete(self, with_valid=True): method _check_not_admin (line 455) | def _check_not_admin(self): method edit (line 460) | def edit(self, instance, user_id, with_valid=True): method _check_admin_modification (line 473) | def _check_admin_modification(user, instance): method _update_user_fields (line 479) | def _update_user_fields(user, instance): method one (line 485) | def one(self, with_valid=True): method re_password (line 511) | def re_password(self, instance, with_valid=True): method get_user_list (line 520) | def get_user_list(self, workspace_id): method get_user_members (line 540) | def get_user_members(self, workspace_id): class BatchDelete (line 580) | class BatchDelete(serializers.Serializer): method batch_delete (line 583) | def batch_delete(self, with_valid=True): method get_all_user_list (line 590) | def get_all_user_list(self): function update_user_role (line 595) | def update_user_role(instance, user, user_id=None): function set_default_permission (line 664) | def set_default_permission(user_id, instance): function _get_workspace_ids (line 691) | def _get_workspace_ids(instance, default_permission): function _set_root_permissions (line 725) | def _set_root_permissions(user_id, workspace_ids): function _set_resource_permissions (line 750) | def _set_resource_permissions(user_id, workspace_ids, default_permission... function _get_resource_maps (line 767) | def _get_resource_maps(workspace_ids): function _create_resource_permission_instances (line 818) | def _create_resource_permission_instances(workspace_id, resource_maps, u... function _batch_create_permissions (line 908) | def _batch_create_permissions(instances, batch_size=500): class RePasswordSerializer (line 920) | class RePasswordSerializer(serializers.Serializer): class Meta (line 955) | class Meta: method is_valid (line 959) | def is_valid(self, *, raise_exception=False): method reset_password (line 971) | def reset_password(self): class ResetCurrentUserPassword (line 985) | class ResetCurrentUserPassword(serializers.Serializer): class Meta (line 1013) | class Meta: method is_valid (line 1017) | def is_valid(self, *, raise_exception=False): method reset_password (line 1024) | def reset_password(self, user_id: str): class SendEmailSerializer (line 1035) | class SendEmailSerializer(serializers.Serializer): class Meta (line 1047) | class Meta: method is_valid (line 1051) | def is_valid(self, *, raise_exception=False): method send (line 1061) | def send(self): class CheckCodeSerializer (line 1111) | class CheckCodeSerializer(serializers.Serializer): method is_valid (line 1131) | def is_valid(self, *, raise_exception=False): class SwitchLanguageSerializer (line 1139) | class SwitchLanguageSerializer(serializers.Serializer): method switch (line 1143) | def switch(self): FILE: apps/users/views/login.py function _get_details (line 25) | def _get_details(request): class LoginView (line 36) | class LoginView(APIView): method post (line 47) | def post(self, request: Request): class Logout (line 51) | class Logout(APIView): method post (line 62) | def post(self, request: Request): class CaptchaView (line 68) | class CaptchaView(APIView): method get (line 75) | def get(self, request: Request): FILE: apps/users/views/user.py function get_user_operation_object (line 36) | def get_user_operation_object(user_id): function get_re_password_details (line 46) | def get_re_password_details(request): class UserProfileView (line 58) | class UserProfileView(APIView): method get (line 68) | def get(self, request: Request): class TestPermissionsUserView (line 72) | class TestPermissionsUserView(APIView): method get (line 82) | def get(self, request: Request): class SwitchUserLanguageView (line 86) | class SwitchUserLanguageView(APIView): method post (line 100) | def post(self, request: Request): class TestWorkspacePermissionUserView (line 105) | class TestWorkspacePermissionUserView(APIView): method get (line 116) | def get(self, request: Request, workspace_id): class UserList (line 120) | class UserList(APIView): method get (line 131) | def get(self, request: Request): class WorkspaceUserListView (line 135) | class WorkspaceUserListView(APIView): method get (line 145) | def get(self, request: Request, workspace_id): class WorkspaceUserMemberView (line 149) | class WorkspaceUserMemberView(APIView): method get (line 159) | def get(self, request: Request, workspace_id): class UserManage (line 163) | class UserManage(APIView): method post (line 176) | def post(self, request: Request): class Password (line 179) | class Password(APIView): method get (line 191) | def get(self, request: Request): class Operate (line 194) | class Operate(APIView): method delete (line 207) | def delete(self, request: Request, user_id): method get (line 218) | def get(self, request: Request, user_id): method put (line 232) | def put(self, request: Request, user_id): class BatchDelete (line 237) | class BatchDelete(APIView): method post (line 250) | def post(self, request: Request): class RePassword (line 253) | class RePassword(APIView): method put (line 268) | def put(self, request: Request, user_id): class Page (line 272) | class Page(APIView): method get (line 283) | def get(self, request: Request, current_page, page_size): class RePasswordView (line 289) | class RePasswordView(APIView): method post (line 301) | def post(self, request: Request): class SendEmail (line 306) | class SendEmail(APIView): method post (line 318) | def post(self, request: Request): class CheckCode (line 324) | class CheckCode(APIView): method post (line 336) | def post(self, request: Request): class SendEmailToCurrentUserView (line 340) | class SendEmailToCurrentUserView(APIView): method post (line 352) | def post(self, request: Request): class ResetCurrentUserPasswordView (line 358) | class ResetCurrentUserPasswordView(APIView): method post (line 373) | def post(self, request: Request): FILE: installer/install_model.py function install (line 62) | def install(): FILE: installer/install_model_bert_base_cased.py function install (line 18) | def install(): FILE: installer/sandbox.c function load_sandbox_config (line 37) | static void load_sandbox_config() { function ensure_config_loaded (line 91) | static void ensure_config_loaded() { function is_sandbox_user (line 94) | static int is_sandbox_user() { function throw_permission_denied_err (line 105) | static int throw_permission_denied_err(bool whether_to_exit,const char *... function match_banned_domain (line 125) | static int match_banned_domain(const char *target, const char *rules) { function match_banned_ip (line 149) | static int match_banned_ip(const char *ip_str, const char *rules) { function connect (line 224) | int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen) { function getaddrinfo (line 253) | int getaddrinfo(const char *node, const char *service, function allow_create_subprocess (line 273) | static int allow_create_subprocess() { function not_supported (line 277) | static int not_supported(const char *function_name) { function execv (line 282) | int execv(const char *path, char *const argv[]) { function __execv (line 287) | int __execv(const char *path, char *const argv[]) { function execve (line 290) | int execve(const char *filename, char *const argv[], char *const envp[]) { function __execve (line 295) | int __execve(const char *filename, char *const argv[], char *const envp[... function execveat (line 298) | int execveat(int dirfd, const char *pathname, function execvpe (line 304) | int execvpe(const char *file, char *const argv[], char *const envp[]) { function __execvpe (line 309) | int __execvpe(const char *file, char *const argv[], char *const envp[]) { function execvp (line 312) | int execvp(const char *file, char *const argv[]) { function __execvp (line 317) | int __execvp(const char *file, char *const argv[]) { function execl (line 320) | int execl(const char *path, const char *arg, ...) { function __execl (line 323) | int __execl(const char *path, const char *arg, ...) { function execlp (line 326) | int execlp(const char *file, const char *arg, ...) { function __execlp (line 329) | int __execlp(const char *file, const char *arg, ...) { function execle (line 332) | int execle(const char *path, const char *arg, ...) { function pid_t (line 335) | pid_t fork(void) { function pid_t (line 340) | pid_t __fork(void) { function pid_t (line 343) | pid_t vfork(void) { function pid_t (line 348) | pid_t __vfork(void) { function clone (line 351) | int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ..... function clone3 (line 361) | int clone3(struct clone_args *cl_args, size_t size) { function posix_spawn (line 366) | int posix_spawn(pid_t *pid, const char *path, function __posix_spawn (line 374) | int __posix_spawn(pid_t *pid, const char *path, function posix_spawnp (line 380) | int posix_spawnp(pid_t *pid, const char *file, function __posix_spawnp (line 388) | int __posix_spawnp(pid_t *pid, const char *file, function FILE (line 394) | FILE *popen(const char *command, const char *type) { function FILE (line 403) | FILE *__popen(const char *command, const char *type) { function system (line 406) | int system(const char *command) { function __libc_system (line 411) | int __libc_system(const char *command) { function pid_t (line 416) | pid_t __libc_clone(int (*fn)(void *), void *child_stack, int flags, void... function pid_t (line 427) | pid_t forkpty(int *amaster, char *name, const struct termios *termp, con... function pid_t (line 432) | pid_t __forkpty(int *amaster, char *name, const struct termios *termp, c... function allow_access_syscall (line 438) | static int allow_access_syscall() { function syscall (line 443) | long syscall(long number, ...) { function is_in_allow_dl_paths (line 518) | static int is_in_allow_dl_paths(const char *filename) { function mprotect (line 586) | int mprotect(void *addr, size_t len, int prot) { FILE: main.py function collect_static (line 18) | def collect_static(): function perform_db_migrate (line 32) | def perform_db_migrate(): function start_services (line 45) | def start_services(): function dev (line 69) | def dev(): FILE: ui/env.d.ts type Window (line 3) | interface Window { FILE: ui/src/api/type/application.ts type ApplicationFormType (line 5) | interface ApplicationFormType { type Chunk (line 44) | interface Chunk { type chatType (line 60) | interface chatType { type Node (line 97) | interface Node { type WriteNodeInfo (line 107) | interface WriteNodeInfo { class ChatRecordManage (line 115) | class ChatRecordManage { method constructor (line 126) | constructor(chat: chatType, ms?: number, loading?: Ref) { method append_answer (line 136) | append_answer( method get_current_up_node (line 175) | get_current_up_node(run_node: any) { method get_run_node (line 184) | get_run_node() { method findIndex (line 243) | findIndex(array: Array, find: (item: T) => boolean, type: 'last'... method closeInterval (line 257) | closeInterval() { method write (line 277) | write() { method stop (line 375) | stop() { method close (line 384) | close() { method open (line 388) | open() { method appendChunk (line 393) | appendChunk(chunk: Chunk) { method append (line 432) | append(answer_text_block: string, reasoning_content?: string) { class ChatManagement (line 450) | class ChatManagement { method addChatRecord (line 453) | static addChatRecord(chat: chatType, ms: number, loading?: Ref { type Dict (line 5) | interface Dict { type pageRequest (line 9) | interface pageRequest { type PageList (line 14) | interface PageList { type ListItem (line 21) | interface ListItem { FILE: ui/src/api/type/knowledge.ts type knowledgeData (line 1) | interface knowledgeData { FILE: ui/src/api/type/login.ts type LoginRequest (line 1) | interface LoginRequest { FILE: ui/src/api/type/model.ts type modelRequest (line 2) | interface modelRequest { type Provider (line 8) | interface Provider { type ListModelRequest (line 23) | interface ListModelRequest { type Model (line 44) | interface Model { type CreateModelRequest (line 87) | interface CreateModelRequest { type EditModelRequest (line 110) | interface EditModelRequest { type BaseModel (line 129) | interface BaseModel { FILE: ui/src/api/type/role.ts type RoleItem (line 3) | interface RoleItem { type ChildrenPermissionItem (line 12) | interface ChildrenPermissionItem { type RolePermissionItem (line 18) | interface RolePermissionItem { type RoleTableDataItem (line 29) | interface RoleTableDataItem { type CreateOrUpdateParams (line 38) | interface CreateOrUpdateParams { type RoleMemberItem (line 44) | interface RoleMemberItem { type CreateMemberParamsItem (line 53) | interface CreateMemberParamsItem { type Arrayable (line 58) | type Arrayable = T | T[] type FormItemModel (line 59) | interface FormItemModel { FILE: ui/src/api/type/systemChatUser.ts type ChatUserItem (line 1) | interface ChatUserItem { type ChatUserGroupUserItem (line 15) | interface ChatUserGroupUserItem { FILE: ui/src/api/type/tool.ts type toolData (line 1) | interface toolData { type AddInternalToolParam (line 15) | interface AddInternalToolParam { FILE: ui/src/api/type/trigger.ts type TriggerData (line 1) | interface TriggerData { FILE: ui/src/api/type/user.ts type User (line 1) | interface User { type LoginRequest (line 35) | interface LoginRequest { type RegisterRequest (line 46) | interface RegisterRequest { type CheckCodeRequest (line 69) | interface CheckCodeRequest { type ResetCurrentUserPasswordRequest (line 84) | interface ResetCurrentUserPasswordRequest { type ResetPasswordRequest (line 99) | interface ResetPasswordRequest { FILE: ui/src/api/type/workspace.ts type WorkspaceItem (line 1) | interface WorkspaceItem { type CreateWorkspaceMemberParamsItem (line 7) | interface CreateWorkspaceMemberParamsItem { type WorkspaceMemberItem (line 12) | interface WorkspaceMemberItem { FILE: ui/src/api/type/workspaceChatUser.ts type ChatUserGroupItem (line 4) | interface ChatUserGroupItem { type ChatUserGroupUserItem (line 10) | interface ChatUserGroupUserItem { type putUserGroupUserParams (line 24) | interface putUserGroupUserParams { FILE: ui/src/chat.ts method markdownItPlugins (line 47) | markdownItPlugins(plugins) { FILE: ui/src/components/dynamics-form/type.ts type ViewCardItem (line 3) | interface ViewCardItem { type TableColumn (line 18) | interface TableColumn { type ColorItem (line 40) | interface ColorItem { type Attrs (line 50) | interface Attrs { type PropsInfo (line 72) | interface PropsInfo { type FormField (line 111) | interface FormField { FILE: ui/src/components/folder-tree/constant.ts constant SORT_TYPES (line 3) | const SORT_TYPES = { type SortType (line 11) | type SortType = (typeof SORT_TYPES)[keyof typeof SORT_TYPES] constant SORT_MENU_CONFIG (line 13) | const SORT_MENU_CONFIG = [ FILE: ui/src/components/index.ts method install (line 32) | install(app: App) { FILE: ui/src/components/markdown/assets/markdown-iconfont.js function m (line 1) | function m(){h||(h=!0,i())} function v (line 1) | function v(){try{e.documentElement.doScroll("left")}catch(a){return void... FILE: ui/src/components/markdown/tool-calls-render/index.ts type ToolCalls (line 1) | interface ToolCalls { FILE: ui/src/directives/hasPermission.ts method created (line 18) | async created(el: any, binding: any) { method beforeUpdate (line 21) | async beforeUpdate(el: any, binding: any) { FILE: ui/src/directives/infiniteScrollUp.ts constant SCOPE (line 6) | const SCOPE = 'InfiniteScrollUP' constant CHECK_INTERVAL (line 7) | const CHECK_INTERVAL = 50 constant DEFAULT_DELAY (line 8) | const DEFAULT_DELAY = 200 constant DEFAULT_DISTANCE (line 9) | const DEFAULT_DISTANCE = 0 type Attrs (line 30) | type Attrs = typeof attributes type ScrollOptions (line 31) | type ScrollOptions = { [K in keyof Attrs]: Attrs[K]['default'] } type InfiniteScrollCallback (line 32) | type InfiniteScrollCallback = () => void type InfiniteScrollEl (line 33) | type InfiniteScrollEl = HTMLElement & { function checkFull (line 83) | function checkFull(el: InfiniteScrollEl, cb: InfiniteScrollCallback) { method mounted (line 97) | async mounted(el: any, binding: any) { method unmounted (line 129) | unmounted(el: any) { method updated (line 136) | async updated(el: any) { FILE: ui/src/directives/resize.ts method created (line 5) | created(el: any, binding: any) { method unmounted (line 26) | unmounted(el: any, binding: any) { FILE: ui/src/enums/application.ts type SearchMode (line 1) | enum SearchMode { type WorkflowType (line 7) | enum WorkflowType { type WorkflowKind (line 49) | enum WorkflowKind { type WorkflowMode (line 52) | enum WorkflowMode { FILE: ui/src/enums/common.ts type DeviceType (line 1) | enum DeviceType { type ValidType (line 6) | enum ValidType { type ValidCount (line 12) | enum ValidCount { type SourceTypeEnum (line 18) | enum SourceTypeEnum { FILE: ui/src/enums/document.ts type hitHandlingMethod (line 1) | enum hitHandlingMethod { FILE: ui/src/enums/model.ts type PermissionType (line 1) | enum PermissionType { type PermissionDesc (line 5) | enum PermissionDesc { type modelType (line 10) | enum modelType { FILE: ui/src/enums/system.ts type AuthorizationEnum (line 1) | enum AuthorizationEnum { type RoleTypeEnum (line 8) | enum RoleTypeEnum { FILE: ui/src/enums/tool.ts type ToolType (line 1) | enum ToolType { FILE: ui/src/enums/trigger.ts type TriggerType (line 1) | enum TriggerType { FILE: ui/src/layout/hooks/useResize.ts constant WIDTH (line 5) | const WIDTH = 768 FILE: ui/src/locales/index.ts type Recordable (line 12) | type Recordable = Record function getBrowserLang (line 23) | function getBrowserLang() { FILE: ui/src/locales/useLocale.ts function useLocale (line 6) | function useLocale() { FILE: ui/src/main.ts method markdownItPlugins (line 47) | markdownItPlugins(plugins) { FILE: ui/src/request/Result.ts class Result (line 1) | class Result { method constructor (line 5) | constructor(message: string, code: number, data: T) { method success (line 11) | static success(data: any) { method error (line 14) | static error(message: string, code: number) { FILE: ui/src/request/chat/Result.ts class Result (line 1) | class Result { method constructor (line 5) | constructor(message: string, code: number, data: T) { method success (line 11) | static success(data: any) { method error (line 14) | static error(message: string, code: number) { FILE: ui/src/request/index.ts function extractFilename (line 255) | function extractFilename(contentDisposition: string) { FILE: ui/src/stores/modules/chat-user.ts type ChatUser (line 8) | interface ChatUser { type Chat (line 13) | interface Chat { method getLanguage (line 28) | getLanguage() { method setAccessToken (line 31) | setAccessToken(accessToken: string) { method getChatProfile (line 34) | getChatProfile() { method getChatUserProfile (line 41) | async getChatUserProfile() { method applicationProfile (line 46) | applicationProfile() { method isAuthentication (line 52) | isAuthentication() { method getToken (line 61) | getToken() { method setToken (line 77) | setToken(token: string) { method anonymousAuthentication (line 85) | anonymousAuthentication() { method passwordAuthentication (line 91) | passwordAuthentication(password: string) { method login (line 97) | login(request: any, loading?: Ref) { method ldapLogin (line 103) | ldapLogin(request: LoginRequest, loading?: Ref) { method logout (line 109) | logout() { method dingCallback (line 117) | async dingCallback(code: string, accessToken: string) { method dingOauth2Callback (line 123) | async dingOauth2Callback(code: string, accessToken: string) { method wecomCallback (line 129) | async wecomCallback(code: string, accessToken: string) { method larkCallback (line 135) | async larkCallback(code: string, accessToken: string) { method getQrType (line 141) | async getQrType() { method getQrSource (line 146) | async getQrSource() { FILE: ui/src/stores/modules/common.ts type commonTypes (line 6) | interface commonTypes { method saveBreadcrumb (line 22) | saveBreadcrumb(data: any) { method savePage (line 25) | savePage(val: string, data: any) { method saveCondition (line 28) | saveCondition(val: string, data: any) { method toggleDevice (line 31) | toggleDevice(value: DeviceType) { method isMobile (line 34) | isMobile() { method asyncGetValid (line 37) | async asyncGetValid(valid_type: ValidType, valid_count: number, loading?... FILE: ui/src/stores/modules/folder.ts method setCurrentFolder (line 10) | setCurrentFolder(folder: any) { method asyncGetFolder (line 13) | async asyncGetFolder(source: string, data: any, systemType: any, loading... FILE: ui/src/stores/modules/knowledge.ts type knowledgeStateTypes (line 7) | interface knowledgeStateTypes { method saveBaseInfo (line 24) | saveBaseInfo(info: knowledgeData | null) { method saveWebInfo (line 27) | saveWebInfo(info: any) { method saveDocumentsType (line 30) | saveDocumentsType(val: string) { method saveDocumentsFile (line 33) | saveDocumentsFile(file: UploadUserFile[]) { method setKnowledgeList (line 36) | setKnowledgeList(list: any[]) { FILE: ui/src/stores/modules/login.ts method getToken (line 12) | getToken(): string | null { method asyncLogin (line 19) | async asyncLogin(data: any, loading?: Ref) { method asyncLdapLogin (line 27) | async asyncLdapLogin(data: LoginRequest, loading?: Ref) { method dingCallback (line 35) | async dingCallback(code: string) { method dingOauth2Callback (line 43) | async dingOauth2Callback(code: string) { method wecomCallback (line 51) | async wecomCallback(code: string) { method larkCallback (line 59) | async larkCallback(code: string) { method logout (line 68) | async logout() { method getAuthType (line 74) | async getAuthType() { method getQrType (line 79) | async getQrType() { method getQrSource (line 84) | async getQrSource() { method samlLogin (line 89) | async samlLogin() { FILE: ui/src/stores/modules/model.ts method asyncGetSelectModel (line 11) | async asyncGetSelectModel(data?: ListModelRequest, loading?: Ref) { FILE: ui/src/stores/modules/prompt.ts type promptTypes (line 3) | interface promptTypes { method save (line 11) | save(user: string, formValue: any) { method get (line 20) | get(user: string) { FILE: ui/src/stores/modules/theme.ts type themeStateTypes (line 6) | interface themeStateTypes { method isDefaultTheme (line 16) | isDefaultTheme() { method setTheme (line 20) | setTheme(data?: any) { method theme (line 26) | async theme(loading?: Ref) { FILE: ui/src/stores/modules/tool.ts method setToolList (line 14) | setToolList(list: any[]) { method setToolType (line 17) | setToolType(type: string) { FILE: ui/src/stores/modules/user.ts type userStateTypes (line 13) | interface userStateTypes { method getLanguage (line 34) | getLanguage() { method setWorkspaceId (line 37) | setWorkspaceId(workspace_id: string) { method getWorkspaceId (line 41) | getWorkspaceId(): string | null { method getPermissions (line 46) | getPermissions() { method getEdition (line 58) | getEdition() { method getRole (line 70) | getRole() { method is_admin (line 78) | is_admin() { method showXpack (line 81) | showXpack() { method isEnterprise (line 84) | isEnterprise() { method isExpire (line 87) | isExpire() { method isCE (line 90) | isCE() { method isPE (line 93) | isPE() { method isEE (line 96) | isEE() { method getHasPermissionWorkspaceManage (line 99) | getHasPermissionWorkspaceManage() { method getEditionName (line 114) | getEditionName() { method profile (line 117) | async profile(loading?: Ref) { method asyncGetProfile (line 137) | async asyncGetProfile() { method postUserLanguage (line 162) | async postUserLanguage(lang: string, loading?: Ref) { FILE: ui/src/utils/application.ts function isWorkFlow (line 1) | function isWorkFlow(type: string | undefined) { function mapToUrlParams (line 5) | function mapToUrlParams(map: any[]) { FILE: ui/src/utils/array.ts function splitArray (line 7) | function splitArray(sourceDataList: Array, splitNum: number) { function TreeToFlatten (line 28) | function TreeToFlatten(treeData: any[]) { function relatedObject (line 38) | function relatedObject(list: any, val: any, attr: string) { function arraySort (line 44) | function arraySort(list: Array, property: any, desc?: boolean) { function isAllPropertiesEmpty (line 51) | function isAllPropertiesEmpty(obj: object) { function getAttrsArray (line 59) | function getAttrsArray(array: Array, attr: string) { function getSum (line 66) | function getSum(array: Array) { function uniqueArray (line 71) | function uniqueArray(array: Array, key: string) { FILE: ui/src/utils/clipboard.ts function copyClick (line 7) | async function copyClick(info: string) { FILE: ui/src/utils/common.ts function toThousands (line 7) | function toThousands(num: any) { function numberFormat (line 13) | function numberFormat(num: number) { function filesize (line 17) | function filesize(size: number) { function isAppIcon (line 32) | function isAppIcon(url: string | undefined) { function isFunction (line 36) | function isFunction(fn: any) { function fileType (line 50) | function fileType(name: string) { function getImgUrl (line 64) | function getImgUrl(name: string) { function isRightType (line 74) | function isRightType(name: string, type: string) { function downloadByURL (line 79) | function downloadByURL(url: string, name: string) { function i18n_name (line 99) | function i18n_name(name: string) { function cutFilename (line 106) | function cutFilename(filename: string, num: number) { type LoadScriptOptions (line 112) | interface LoadScriptOptions { function getNormalizedUrl (line 171) | function getNormalizedUrl(url: string) { function getFileUrl (line 178) | function getFileUrl(fileId?: string) { FILE: ui/src/utils/dynamics-api/permission-api.ts function loadPermissionApi (line 46) | function loadPermissionApi(type: string) { FILE: ui/src/utils/dynamics-api/shared-api.ts function loadSharedApi (line 107) | function loadSharedApi({ FILE: ui/src/utils/folder.ts constant FRACTION_BITS (line 6) | const FRACTION_BITS = 16 constant FRACTION_MASK (line 7) | const FRACTION_MASK = 0xffff function encode (line 10) | function encode(integer: number, fraction = 0) { function mid (line 15) | function mid(pos1: number, pos2: number) { function rebalance (line 25) | function rebalance(positions: any) { FILE: ui/src/utils/permission/type.ts type PF (line 3) | type PF = () => Role | string | Permission | ComplexPermission type CRF (line 4) | type CRF = () => Role | string type CPF (line 5) | type CPF = () => Permission | string class Role (line 9) | class Role { method constructor (line 12) | constructor(role: string) { method toString (line 24) | toString() { class Permission (line 31) | class Permission { method constructor (line 34) | constructor(permission: string) { method toString (line 104) | toString() { class ComplexPermission (line 112) | class ComplexPermission { method constructor (line 121) | constructor( class Edition (line 136) | class Edition { method constructor (line 138) | constructor(edition: string) { method toString (line 141) | toString() { FILE: ui/src/utils/status.ts type TaskTypeInterface (line 2) | interface TaskTypeInterface { type StateInterface (line 10) | interface StateInterface { class Status (line 45) | class Status { method constructor (line 47) | constructor(status?: string) { method toString (line 59) | toString() { FILE: ui/src/utils/theme.ts function getThemeImg (line 31) | function getThemeImg(val: string) { function hexToRgba (line 53) | function hexToRgba(hex?: string, alpha?: number) { FILE: ui/src/utils/time.ts function beforeDay (line 20) | function beforeDay(n: number | string) { function AfterTimestamp (line 25) | function AfterTimestamp(n: number | string) { function formatEndDate (line 29) | function formatEndDate(date: any) { function formatStartDate (line 33) | function formatStartDate(date: any) { function fromNowDate (line 68) | function fromNowDate(time: any) { FILE: ui/src/utils/trigger.ts function getTriggerCycleLabel (line 54) | function getTriggerCycleLabel(data: any) { FILE: ui/src/workflow/common/app-node.ts class AppNode (line 17) | class AppNode extends HtmlResize.view { method constructor (line 25) | constructor(props: any, VueNode: any) { method getConfig (line 48) | getConfig(props: any) { method getNodeName (line 51) | getNodeName(nodes: Array, baseName: string) { method get_node_field_list (line 64) | get_node_field_list() { method get_up_node_field_dict (line 118) | get_up_node_field_dict(contain_self: boolean, use_cache: boolean) { method get_up_node_field_list (line 135) | get_up_node_field_list(contain_self: boolean, use_cache: boolean) { method clear_next_node_field (line 154) | clear_next_node_field(contain_self: boolean) { method getAnchorShape (line 163) | getAnchorShape(anchorData: any) { method setHtml (line 235) | setHtml(rootEl: HTMLElement) { method componentWillUnmount (line 247) | componentWillUnmount() { method getComponentContainer (line 251) | getComponentContainer() { method targetId (line 254) | protected targetId() { method renderVueComponent (line 257) | protected renderVueComponent(root: any) { method unmountVueComponent (line 305) | protected unmountVueComponent() { method unmount (line 316) | unmount() { class AppNodeModel (line 324) | class AppNodeModel extends HtmlResize.model { method refreshDeges (line 325) | refreshDeges() { method set_position (line 335) | set_position(position: { x?: number; y?: number }) { method getResizeOutlineStyle (line 345) | getResizeOutlineStyle() { method getControlPointStyle (line 350) | getControlPointStyle() { method getNodeStyle (line 356) | getNodeStyle() { method getOutlineStyle (line 361) | getOutlineStyle() { method getAnchorStyle (line 370) | getAnchorStyle(anchorInfo: any) { method setHeight (line 383) | setHeight(height: number) { method get_width (line 398) | get_width() { method setAttributes (line 402) | setAttributes() { method getDefaultAnchor (line 449) | getDefaultAnchor() { FILE: ui/src/workflow/common/data.ts function isWorkFlow (line 1140) | function isWorkFlow(type: string | undefined) { function isLastNode (line 1144) | function isLastNode(nodeModel: any) { FILE: ui/src/workflow/common/edge.ts function isMouseInElement (line 5) | function isMouseInElement(element: any, e: any) { constant DEFAULT_WIDTH (line 14) | const DEFAULT_WIDTH = 32 constant DEFAULT_HEIGHT (line 15) | const DEFAULT_HEIGHT = 32 class CustomEdge2 (line 16) | class CustomEdge2 extends BezierEdge { method constructor (line 20) | constructor() { method renderVueComponent (line 36) | protected renderVueComponent(root: any) { method targetId (line 60) | protected targetId() { method componentWillUnmount (line 66) | componentWillUnmount() { method unmountVueComponent (line 79) | protected unmountVueComponent() { method getEdge (line 90) | getEdge() { class CustomEdgeModel2 (line 173) | class CustomEdgeModel2 extends BezierEdgeModel { method getArrowStyle (line 174) | getArrowStyle() { method getEdgeStyle (line 181) | getEdgeStyle() { method getData (line 192) | getData() { method updatePathByAnchor (line 203) | updatePathByAnchor() { method setAttributes (line 231) | setAttributes(): void { FILE: ui/src/workflow/common/loopEdge.ts class CustomEdgeModel2 (line 3) | class CustomEdgeModel2 extends BezierEdgeModel { method getArrowStyle (line 4) | getArrowStyle() { method getEdgeStyle (line 11) | getEdgeStyle() { method getData (line 22) | getData() { method updatePathByAnchor (line 33) | updatePathByAnchor() { method setAttributes (line 62) | setAttributes(): void { FILE: ui/src/workflow/common/shortcut.ts function translationNodeData (line 10) | function translationNodeData(nodeData: any, distance: any) { function translationEdgeData (line 20) | function translationEdgeData(edgeData: any, distance: any) { constant TRANSLATION_DISTANCE (line 42) | const TRANSLATION_DISTANCE = 40 constant CHILDREN_TRANSLATION_DISTANCE (line 43) | let CHILDREN_TRANSLATION_DISTANCE = 40 function initDefaultShortcut (line 45) | function initDefaultShortcut(lf: LogicFlow, graph: GraphModel) { FILE: ui/src/workflow/common/teleport.ts function connect (line 7) | function connect( function disconnect (line 37) | function disconnect(id: string) { function disconnectByFlow (line 42) | function disconnectByFlow(flowId: string) { function disconnectAll (line 49) | function disconnectAll() { function isActive (line 55) | function isActive() { function getTeleport (line 59) | function getTeleport(): any { FILE: ui/src/workflow/common/validate.ts class WorkFlowInstance (line 53) | class WorkFlowInstance { method constructor (line 59) | constructor(workflow: { nodes: Array; edges: Array }, workfl... method is_valid_start_node (line 69) | is_valid_start_node() { method is_valid_base_node (line 83) | is_valid_base_node() { method is_valid (line 95) | is_valid() { method is_loop_valid (line 102) | is_loop_valid() { method get_start_node (line 112) | get_start_node() { method get_base_node (line 125) | get_base_node() { method exist_break_node (line 130) | exist_break_node() { method _is_valid_work_flow (line 138) | _is_valid_work_flow(up_node?: any) { method is_valid_work_flow (line 150) | is_valid_work_flow() { method get_next_nodes (line 173) | get_next_nodes(node: any) { method is_valid_nodes (line 185) | is_valid_nodes() { method is_valid_node (line 205) | is_valid_node(node: any) { class ToolWorkFlowInstance (line 230) | class ToolWorkFlowInstance extends WorkFlowInstance { method is_valid_start_node (line 231) | is_valid_start_node() { method is_valid_base_node (line 241) | is_valid_base_node() { method get_start_nodes (line 249) | get_start_nodes() { method get_base_node (line 252) | get_base_node() { class KnowledgeWorkFlowInstance (line 257) | class KnowledgeWorkFlowInstance extends WorkFlowInstance { method is_valid_start_node (line 258) | is_valid_start_node() { method is_valid_base_node (line 271) | is_valid_base_node() { method is_valid_work_flow (line 280) | is_valid_work_flow() { method is_valid_nodes (line 301) | is_valid_nodes() { method get_start_nodes (line 314) | get_start_nodes() { method get_end_nodes (line 321) | get_end_nodes() { method _get_end_nodes (line 327) | _get_end_nodes(startNode: any, value: Array) { method get_next_nodes (line 344) | get_next_nodes(node: any) { method is_valid_node (line 357) | is_valid_node(node: any) { FILE: ui/src/workflow/icons/utils.ts function iconComponent (line 2) | function iconComponent(name: string) { FILE: ui/src/workflow/nodes/ai-chat-node/index.ts class ChatNode (line 3) | class ChatNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/application-node/index.ts class ChatNode (line 3) | class ChatNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/base-node/index.ts class BaseNode (line 4) | class BaseNode extends AppNode { method constructor (line 5) | constructor(props: any) { class BaseModel (line 10) | class BaseModel extends AppNodeModel { method constructor (line 11) | constructor(data: any, graphModel: any) { method get_width (line 14) | get_width() { FILE: ui/src/workflow/nodes/condition-node/index.ts class ConditioNode (line 4) | class ConditioNode extends AppNode { method constructor (line 5) | constructor(props: any) { class ConditionModel (line 15) | class ConditionModel extends AppNodeModel { method refreshBranch (line 16) | refreshBranch() { method getDefaultAnchor (line 26) | getDefaultAnchor() { FILE: ui/src/workflow/nodes/data-source-local-node/index.ts class DataSourceWebNode (line 3) | class DataSourceWebNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/data-source-web-node/index.ts class DataSourceWebNode (line 3) | class DataSourceWebNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/document-extract-node/index.ts class RerankerNode (line 3) | class RerankerNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/document-split-node/index.ts class DocumentSplitNode (line 4) | class DocumentSplitNode extends AppNode { method constructor (line 5) | constructor(props: any) { FILE: ui/src/workflow/nodes/form-node/index.ts class FormNode (line 3) | class FormNode extends AppNode { method constructor (line 4) | constructor(props: any) { method getConfig (line 7) | getConfig(props: any) { FILE: ui/src/workflow/nodes/image-generate/index.ts class RerankerNode (line 4) | class RerankerNode extends AppNode { method constructor (line 5) | constructor(props: any) { FILE: ui/src/workflow/nodes/image-to-video/index.ts class VideoNode (line 4) | class VideoNode extends AppNode { method constructor (line 5) | constructor(props: any) { FILE: ui/src/workflow/nodes/image-understand/index.ts class RerankerNode (line 4) | class RerankerNode extends AppNode { method constructor (line 5) | constructor(props: any) { FILE: ui/src/workflow/nodes/intent-classify-node/index.ts class IntentNode (line 3) | class IntentNode extends AppNode { method constructor (line 4) | constructor(props: any) { class IntentModel (line 16) | class IntentModel extends AppNodeModel { method refreshBranch (line 17) | refreshBranch() { method getDefaultAnchor (line 27) | getDefaultAnchor() { FILE: ui/src/workflow/nodes/knowledge-base-node/index.ts class BaseNode (line 4) | class BaseNode extends AppNode { method constructor (line 5) | constructor(props: any) { class BaseModel (line 10) | class BaseModel extends AppNodeModel { method constructor (line 11) | constructor(data: any, graphModel: any) { method get_width (line 14) | get_width() { FILE: ui/src/workflow/nodes/knowledge-write-node/index.ts class KnowledgeWriteNode (line 5) | class KnowledgeWriteNode extends AppNode { method constructor (line 6) | constructor(props: any) { FILE: ui/src/workflow/nodes/loop-body-node/index.ts class LoopBodyNodeView (line 4) | class LoopBodyNodeView extends AppNode { method constructor (line 5) | constructor(props: any) { method getNodeName (line 8) | getNodeName() { method get_up_node_field_list (line 11) | get_up_node_field_list(contain_self: boolean, use_cache: boolean) { class LoopBodyModel (line 17) | class LoopBodyModel extends AppNodeModel { method refreshBranch (line 18) | refreshBranch() { method getDefaultAnchor (line 28) | getDefaultAnchor() { method setHeight (line 42) | setHeight(height: number) { FILE: ui/src/workflow/nodes/loop-break-node/index.ts class BreakNode (line 3) | class BreakNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/loop-continue-node/index.ts class ContinueNode (line 3) | class ContinueNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/loop-node/index.ts class LoopNodeView (line 5) | class LoopNodeView extends AppNode { method constructor (line 6) | constructor(props: any) { class LoopModel (line 12) | class LoopModel extends AppNodeModel { method refreshBranch (line 13) | refreshBranch() { method getDefaultAnchor (line 23) | getDefaultAnchor() { FILE: ui/src/workflow/nodes/loop-start-node/index.ts class LoopStartNode (line 4) | class LoopStartNode extends AppNode { method constructor (line 5) | constructor(props: any) { method get_node_field_list (line 8) | get_node_field_list() { FILE: ui/src/workflow/nodes/mcp-node/index.ts class McpNode (line 4) | class McpNode extends AppNode { method constructor (line 5) | constructor(props: any) { FILE: ui/src/workflow/nodes/parameter-extraction-node/index.ts class ParameterExtractionNode (line 4) | class ParameterExtractionNode extends AppNode { method constructor (line 5) | constructor(props: any) { method getConfig (line 8) | getConfig(props: any) { FILE: ui/src/workflow/nodes/question-node/index.ts class QuestionNode (line 3) | class QuestionNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/reply-node/index.ts class ReplyNode (line 3) | class ReplyNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/reranker-node/index.ts class RerankerNode (line 3) | class RerankerNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/search-document-node/index.ts class SearchDocumentNode (line 4) | class SearchDocumentNode extends AppNode { method constructor (line 5) | constructor(props: any) { FILE: ui/src/workflow/nodes/search-knowledge-node/index.ts class SearchKnowledgeNode (line 3) | class SearchKnowledgeNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/speech-to-text-node/index.ts class SpeechToTextNode (line 3) | class SpeechToTextNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/start-node/index.ts class StartNode (line 3) | class StartNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/text-to-speech-node/index.ts class TextToSpeechNode (line 3) | class TextToSpeechNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/text-to-video/index.ts class TextToVideoNode (line 4) | class TextToVideoNode extends AppNode { method constructor (line 5) | constructor(props: any) { FILE: ui/src/workflow/nodes/tool-base-node/index.ts class ToolBaseNode (line 3) | class ToolBaseNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/tool-lib-node/index.ts class ToolLibNode (line 3) | class ToolLibNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/tool-node/index.ts class ToolLibCustomNode (line 3) | class ToolLibCustomNode extends AppNode { method constructor (line 4) | constructor(props: any) { FILE: ui/src/workflow/nodes/tool-start-node/index.ts class ToolBaseNode (line 4) | class ToolBaseNode extends AppNode { method constructor (line 5) | constructor(props: any) { method get_node_field_list (line 8) | get_node_field_list() { FILE: ui/src/workflow/nodes/tool-workflow-lib-node/index.ts class ToolWorkflowLibNode (line 3) | class ToolWorkflowLibNode extends AppNode { method constructor (line 4) | constructor(props: any) { method getConfig (line 7) | getConfig(props: any) { FILE: ui/src/workflow/nodes/variable-aggregation-node/index.ts class VariableAggregationNode (line 4) | class VariableAggregationNode extends AppNode { method constructor (line 5) | constructor(props: any) { method getConfig (line 8) | getConfig(props: any) { FILE: ui/src/workflow/nodes/variable-assign-node/index.ts class VariableAssignNode (line 4) | class VariableAssignNode extends AppNode { method constructor (line 5) | constructor(props: any) { FILE: ui/src/workflow/nodes/variable-splitting/index.ts class VariableSplittingNode (line 4) | class VariableSplittingNode extends AppNode { method constructor (line 5) | constructor(props: any) { method getConfig (line 8) | getConfig(props: any) { FILE: ui/src/workflow/nodes/video-understand/index.ts class VideoUnderstandNode (line 4) | class VideoUnderstandNode extends AppNode { method constructor (line 5) | constructor(props: any) { FILE: ui/src/workflow/plugins/dagre.ts class Dagre (line 3) | class Dagre { method render (line 7) | render(lf: any) { method layout (line 25) | layout(option = {}) {