{"openapi":"3.1.0","info":{"title":"Overfit Insights: Revolutionizing Data Retrieval","description":"\n### Brought to you by _Overfit_\n\n**Overfit** is a sophisticated API server designed to enhance contextual information retrieval and workflow management. At its core, it provides a robust framework for handling contextualized requests and complex workflow orchestration.\n\n### **Key Components of Overfit**\n\n#### **1. Insights Engine**\nThe Insights Engine stands as the cornerstone of Overfit, delivering context-aware information processing through its innovative architecture. Sources serve as the fundamental building blocks, providing the contextual data that forms the knowledge foundation of the system. These Sources work in harmony with Questions - natural language queries that interface with our semantic search system, enabling precise and context-aware information retrieval through seamless LLM integration.\n\n#### **2. Graph System**\nThe Graph System represents our approach to workflow orchestration, operating on two distinct levels. At its foundation lies the Graph Definition, where users craft their workflow structure through nodes and edges. This blueprint transforms into a Graph Configuration during execution, encompassing essential runtime elements such as chat history, graph state dictionary, and transition history, along with comprehensive runtime analytics.\n\n#### **3. Agent Framework**\nWhile Overfit maintains a fully implemented agent framework, we embrace a \"less is more\" philosophy in this domain. The system supports agent-based automation for specific use cases, but emphasizes direct insight retrieval as the primary means of interaction, offering a more streamlined and efficient approach to information processing.\n\n#### **4. Enterprise-Grade Security**\nSecurity stands as a foundational pillar of Overfit, implemented through a comprehensive OIDC authentication system utilizing JWT token management. Our integration with Keycloak ensures robust access control and security measures, providing enterprise-grade protection for all system interactions.\n\n---\nOverfit | No human should be forced to do work that a machine can do.\nFor more support write to us at mhermelschmidt@okns.de\n© 2024 Michael Hermelschmidt ","contact":{"name":"Michael Hermelschmidt","email":"mail@okns.de"},"version":"1.6.10"},"paths":{"/health":{"get":{"tags":["system"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/{agent_id}/chat":{"post":{"tags":["agent_interaction"],"summary":"Chat","description":"Chat with an agent. Accepts AgentInteraction Schema as input.\nChat is created allways in contend of the past interactions. A complete chat history is returned orderd by order\nChat Messages can have one of 4 types : USER, ASSISTANT, FUNCTION or SYSTEM. The Function type has allayws a empty message. \nAnd can be read by using the history endpoint or reading the steps of the response.","operationId":"chat_agent__agent_id__chat_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInteraction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/{agent_id}/query":{"post":{"tags":["agent_interaction"],"summary":"Query","description":"Query an agent. Accepts AgentInteraction Schema as input.\nVery similar to chat, but the query resets the Agent before answering the query.\nThe history of the Agent is permanently deleted before answering the query.","operationId":"query_agent__agent_id__query_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInteraction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/{agent_id}/history":{"get":{"tags":["agent_interaction"],"summary":"History","description":"Get the history of an agent. Accepts Agent ID (agt_) as input.","operationId":"history_agent__agent_id__history_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentStep"},"title":"Response History Agent  Agent Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/{agent_id}/reset":{"post":{"tags":["agent_interaction"],"summary":"Reset","description":"Reset an agent. Accepts Agent ID (agt_) as input.","operationId":"reset_agent__agent_id__reset_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent":{"get":{"tags":["agents"],"summary":"Get Agents","description":"Get all agents. Accepts Agent ID (agt_) as input.","operationId":"get_agents_agent_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Agent"},"type":"array","title":"Response Get Agents Agent Get"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]},"post":{"tags":["agents"],"summary":"Create Agent","description":"Create a new agent. Accepts AgentCreate Schema as input. A can only be used by using it with an Agent.\nTools used in the Schema must be created before.","operationId":"create_agent_agent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]}},"/agent/{agent_id}":{"patch":{"tags":["agents"],"summary":"Update Agent","description":"Update a agent. Accepts AgentUpdate Schema as input.\nAgent is identified by the id (agt_)","operationId":"update_agent_agent__agent_id__patch","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agents"],"summary":"Delete Agent","description":"Delete a agent. Agent is identified by the id (agt_)","operationId":"delete_agent_agent__agent_id__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agents"],"summary":"Get Agent","description":"Get a agent by its ID. Accepts Agent ID (agt_) as input.","operationId":"get_agent_agent__agent_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight":{"get":{"tags":["insights"],"summary":"Get Insights","description":"Get all insights for a given user. User is identified by the token.","operationId":"get_insights_insight_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Insight"},"type":"array","title":"Response Get Insights Insight Get"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]},"post":{"tags":["insights"],"summary":"Create Insight","description":"Create a new insight. Accepts InsightCreate Schema as input.","operationId":"create_insight_insight_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Insight"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]}},"/insight/{insight_id}":{"patch":{"tags":["insights"],"summary":"Update Insight","description":"Update a insight. Accepts InsightUpdate Schema as input.","operationId":"update_insight_insight__insight_id__patch","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Insight"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["insights"],"summary":"Delete Insight","description":"Delete a insight. Accepts Insight ID (ins_) as input.","operationId":"delete_insight_insight__insight_id__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["insights"],"summary":"Get Insight","description":"Get a insight by its ID. Accepts Insight ID (ins_) as input.","operationId":"get_insight_insight__insight_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Insight"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/questions":{"get":{"tags":["questions"],"summary":"Get Questions By Insight Id","description":"Get all questions for a given insight.\nAccepts Insight ID (ins_) as input.","operationId":"get_questions_by_insight_id_insight__insight_id__questions_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Question"},"title":"Response Get Questions By Insight Id Insight  Insight Id  Questions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["questions"],"summary":"Create Question","description":"Create a new question. A Question is allways associated with an insight and can not be created without an insight.\nAccepts Insight ID (ins_) and QuestionCreate Schema as input.\nThe Question is processed and answered, the Answer is in the Question Schema the result.\nSteps while answering the question are stored in the QuestionSteps.","operationId":"create_question_insight__insight_id__questions_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Question"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/questions/{question_id}":{"get":{"tags":["questions"],"summary":"Get Question By Id","description":"Get a question by its ID.\nAccepts Insight ID (ins_) and Question ID (ques_) as input.","operationId":"get_question_by_id_insight__insight_id__questions__question_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","title":"Question Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Question"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/chat":{"post":{"tags":["questions"],"summary":"Create Chat Question","description":"Create a new question. A Question is allways associated with an insight and can not be created without an insight.\nAccepts Insight ID (ins_) and InteractionChatInsight Schema as input.\nThe Chat is processed. A Question has to be created before a chat can be processed.\nThe Chat works with the Context of the Question, all steps are stored in the QuestionSteps.","operationId":"create_chat_question_insight__insight_id__chat_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionChatInsight"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Question"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/history":{"get":{"tags":["questions"],"summary":"Get Question History","description":"Get the history of a question by its ID.\nAccepts Insight ID (ins_) and Question ID (ques_) as input.","operationId":"get_question_history_insight__insight_id__history_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QuestionStep"},"title":"Response Get Question History Insight  Insight Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/source":{"post":{"tags":["sources"],"summary":"Create Source","description":"Create a new source. A Source is allways associated with an insight and can not be created without an insight.\nAccepts Insight ID (ins_) and SourceCreate Schema as input.","operationId":"create_source_insight__insight_id__source_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Source"},"title":"Response Create Source Insight  Insight Id  Source Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sources"],"summary":"Get All Sources","description":"Get all sources associated with an insight. A Source is allways associated with an insight and can not be created without an insight.\nAccepts Insight ID (ins_) as input.","operationId":"get_all_sources_insight__insight_id__source_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Source"},"title":"Response Get All Sources Insight  Insight Id  Source Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/source/{source_id}":{"patch":{"tags":["sources"],"summary":"Update Source","description":"Update a source. A Source is allways associated with an insight and can not be created without an insight.\nAccepts Insight ID (ins_), Source ID (src_) and SourceUpdate Schema as input.","operationId":"update_source_insight__insight_id__source__source_id__patch","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sources"],"summary":"Delete Source","description":"Delete a source. A Source is allways associated with an insight and can not be created without an insight.\nAccepts Insight ID (ins_) and Source ID (src_) as input.","operationId":"delete_source_insight__insight_id__source__source_id__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sources"],"summary":"Get Source","description":"Get a specific source. A Source is allways associated with an insight and can not be created without an insight.\nAccepts Insight ID (ins_) and Source ID (src_) as input.","operationId":"get_source_insight__insight_id__source__source_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/source/upload":{"post":{"tags":["sources"],"summary":"Create Source Upload","description":"Create a new source from a uploaded file, the source_data must be of type : DocumentUploadData. Supportet formates are currently:  [\"hwp\", \"pdf\", \"docx\", \"pptx\", \"jpg\", \"png\", \"jpeg\", \"csv\", \"epub\", \"md\", \"mbox\", \"eml\", \"html\", \"json\", \"txt\"]. A Source is allways associated with an insight and can not be created without an insight.\nAccepts Insight ID (ins_) and SourceCreate Schema as input.","operationId":"create_source_upload_insight__insight_id__source_upload_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_source_upload_insight__insight_id__source_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Source"},"title":"Response Create Source Upload Insight  Insight Id  Source Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tool":{"get":{"tags":["tools"],"summary":"Get All Tools","description":"Get all tools. User is matched by token.","operationId":"get_all_tools_tool_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Tool"},"type":"array","title":"Response Get All Tools Tool Get"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]},"post":{"tags":["tools"],"summary":"Create Tool","description":"Create a new tool. Accepts ToolCreate Schema as input. A can only be used by using it with an Agent.\nAccepts ToolCreate Schema as input.","operationId":"create_tool_tool_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tool"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]}},"/tool/{tool_id}":{"patch":{"tags":["tools"],"summary":"Update Tool","description":"Update a tool. Accepts ToolUpdate Schema as input.","operationId":"update_tool_tool__tool_id__patch","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","title":"Tool Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tool"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tools"],"summary":"Delete Tool","description":"Delete a tool. Accepts Tool ID (tl_) as input.","operationId":"delete_tool_tool__tool_id__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","title":"Tool Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["tools"],"summary":"Get Tool","description":"Get a specific tool. Accepts Tool ID (tl_) as input.","operationId":"get_tool_tool__tool_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","title":"Tool Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tool"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/graph":{"get":{"tags":["graphs"],"summary":"Get Graphs","description":"Get all graphs.","operationId":"get_graphs_graph_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Graph"},"type":"array","title":"Response Get Graphs Graph Get"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]},"post":{"tags":["graphs"],"summary":"Create Graph","description":"Create a new graph. Accepts GraphCreate Schema as input. A can only be used by using it with an Agent.\nTools used in the Schema must be created before.","operationId":"create_graph_graph_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Graph"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]}},"/graph/{graph_id}":{"patch":{"tags":["graphs"],"summary":"Update Graph","description":"Update a graph. Accepts GraphUpdate Schema as input.\nGraph is identified by the id (gr_)","operationId":"update_graph_graph__graph_id__patch","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Graph"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["graphs"],"summary":"Delete Graph","description":"Delete a graph. Graph is identified by the id (gr_)","operationId":"delete_graph_graph__graph_id__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["graphs"],"summary":"Get Graph","description":"Get a graph. Graph is identified by the id (gr_)","operationId":"get_graph_graph__graph_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Graph"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["graphs"],"summary":"Graph Start","description":"Start a graph.\nThis starts from the predefined starting node. This will create a new configuration so it instanciates a complete new workflow and does not remember any prior  runs.","operationId":"graph_start_graph__graph_id__post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GraphConfigFinished"},{"$ref":"#/components/schemas/GraphConfigDecisionRequired"},{"$ref":"#/components/schemas/GraphConfigWrittenInputRequired"},{"$ref":"#/components/schemas/GraphConfigTokenRequried"}],"title":"Response Graph Start Graph  Graph Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/graph_interaction":{"post":{"tags":["graphs"],"summary":"Config Run","description":"Run a graph configuration. This is used when the a interaction results in a decision or written input.\nPass the according schema to the endpoint and continue the graph_run.\nPass by the graph_id, the graph_config_id the node_id and the node_config_id (read from answer of the previous interaction)","operationId":"config_run_graph_interaction_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GraphConfigDecision"},{"$ref":"#/components/schemas/GraphConfigWrittenInput"}],"title":"Interaction"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GraphConfigFinished"},{"$ref":"#/components/schemas/GraphConfigDecisionRequired"},{"$ref":"#/components/schemas/GraphConfigWrittenInputRequired"},{"$ref":"#/components/schemas/GraphConfigTokenRequried"}],"title":"Response Config Run Graph Interaction Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]}},"/graph_config/{config_id}/interact":{"post":{"tags":["graphs"],"summary":"Config Run Ez","description":"This is for Easy API\ninteraction is always a string the Type of interaction will be determined by the last run on GraphConfiguration\nYou have to take care of this yourself","operationId":"config_run_ez_graph_config__config_id__interact_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"interaction","in":"query","required":true,"schema":{"type":"string","title":"Interaction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GraphConfigFinished"},{"$ref":"#/components/schemas/GraphConfigDecisionRequired"},{"$ref":"#/components/schemas/GraphConfigWrittenInputRequired"},{"$ref":"#/components/schemas/GraphConfigTokenRequried"}],"title":"Response Config Run Ez Graph Config  Config Id  Interact Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/graph_config/{graph_id}":{"get":{"tags":["graph_configs"],"summary":"Get Graph Matchings By Graph Id","description":"Get all graph configurations for a graph, they will be returned as matchings only showing the last match","operationId":"get_graph_matchings_by_graph_id_graph_config__graph_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GraphConfigData"},"title":"Response Get Graph Matchings By Graph Id Graph Config  Graph Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/graph_config/{graph_config_id}/history":{"get":{"tags":["graph_configs"],"summary":"Get Graph Config History","description":"Get the user chat history identified by the graph_config_id.\nChoosable history_type between\n'user': LLM history, as seed for the user.\n'interaction': In and output of the interactions (interaction Nodes)\n'all': All messages in the chat history, shown nor not shown, inclusive all the messages by \"side\"-nodes.\nDefault is 'interaction'.","operationId":"get_graph_config_history_graph_config__graph_config_id__history_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"graph_config_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Config Id"}},{"name":"history_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["all","user","interaction"],"type":"string"},{"type":"null"}],"default":"interaction","title":"History Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MetisMessageEntry"},"title":"Response Get Graph Config History Graph Config  Graph Config Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/graph_config/{graph_config_id}/state":{"get":{"tags":["graph_configs"],"summary":"Get Graph Config State","description":"Get the state dict of the graph configuration identified by the graph_config_id.","operationId":"get_graph_config_state_graph_config__graph_config_id__state_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"graph_config_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Graph Config State Graph Config  Graph Config Id  State Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/graph_config/{graph_config_id}/transition_history":{"get":{"tags":["graph_configs"],"summary":"Get Graph Config Transition History","description":"Get the transition history of the graph configuration identified by the graph_config_id.","operationId":"get_graph_config_transition_history_graph_config__graph_config_id__transition_history_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"graph_config_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Get Graph Config Transition History Graph Config  Graph Config Id  Transition History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/graph_config/{graph_config_id}/latest_action":{"get":{"tags":["graph_configs"],"summary":"Get Graph Matchings By Config Id Id","description":"Get the latest action of the graph configuration identified by the graph_config_id.","operationId":"get_graph_matchings_by_config_id_id_graph_config__graph_config_id__latest_action_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"graph_config_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphConfigData"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/share/":{"post":{"tags":["insights"],"summary":"Share Insight","description":"Adds user to share of the insight via V2 company access.\nToken/api-key providing user must be owner of the insight.","operationId":"share_insight_insight__insight_id__share__post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Share"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["insights"],"summary":"Unshare Insight","description":"Removes user from share of the insight via V2 company access.\nToken/api-key providing user must be owner of the insight.","operationId":"unshare_insight_insight__insight_id__share__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Share"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["insights"],"summary":"Get Shared Users","description":"Get shared users (company members) of the insight owner.\nToken/api-key providing user must be owner of the insight.\nReturns in InsightShare format for backward compatibility.","operationId":"get_shared_users_insight__insight_id__share__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InsightShare"},"title":"Response Get Shared Users Insight  Insight Id  Share  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/share/questions":{"post":{"tags":["questions"],"summary":"Create Question Share","description":"Create a new question. A Question is allways associated with an insight and can not be created without an insight.\nAccepts Insight ID (ins_) and QuestionCreate Schema as input.\nThe Question is processed and answered, the Answer is in the Question Schema the result.\nThis endpoint is for asking questions against a shared insight. Shared insights need to be defined by the owner of the insight.","operationId":"create_question_share_insight__insight_id__share_questions_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Question"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/share/chat":{"post":{"tags":["questions"],"summary":"Create Chat Question Share","description":"Create a new question. A Question is allways associated with an insight and can not be created without an insight.\nAccepts Insight ID (ins_) and InteractionChatInsight Schema as input.\nThis endpoint is for asking questions against a shared insight. Shared insights need to be defined by the owner of the insight.","operationId":"create_chat_question_share_insight__insight_id__share_chat_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionChatInsight"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Question"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/aithra":{"get":{"tags":["aithra"],"summary":"Get Aithras","description":"Get all Aithra_graphs.","operationId":"get_aithras_aithra_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AithraGraph"},"type":"array","title":"Response Get Aithras Aithra Get"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]},"post":{"tags":["aithra"],"summary":"Create Aithra","description":"Create a new AithraGraph.\n  - aithra_linkedin_interactive : LinkedIn post pipeline\n  - aithra_letter_generator     : full letter pipeline (research + synergy + letter)\n  - aithra_letter_generator_proof_check : proof-check variant\n  - aithra_dataset_facts        : facts-only research pipeline (research/scrape/contacts, no synergy/letter)\nStart with POST /aithra/{id}. For auto mode pass ?url=...&prompt=... on the start request.","operationId":"create_aithra_aithra_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AithraLinkedInInteractiveCreate"},{"$ref":"#/components/schemas/AithraLetterGeneratorCreate"},{"$ref":"#/components/schemas/AithraLetterGeneratorProofCheckCreate"},{"$ref":"#/components/schemas/AithraDatasetFactsCreate"}],"title":"Create Schema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AithraGraph"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]}},"/aithra/{aithra_id}":{"patch":{"tags":["aithra"],"summary":"Update Aithra","description":"Update the AithraGraph. The aithra_id is the same.\nYou will get a new graph_id, the old one will be deleted.","operationId":"update_aithra_aithra__aithra_id__patch","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"aithra_id","in":"path","required":true,"schema":{"type":"string","title":"Aithra Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AithraLinkedInInteractiveCreate"},{"$ref":"#/components/schemas/AithraLetterGeneratorCreate"},{"$ref":"#/components/schemas/AithraDatasetFactsCreate"}],"title":"Update Schema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AithraGraph"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["aithra"],"summary":"Delete Aithra","description":"Delete the aithra graph and the corresponding graph.","operationId":"delete_aithra_aithra__aithra_id__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"aithra_id","in":"path","required":true,"schema":{"type":"string","title":"Aithra Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["aithra"],"summary":"Get Aithra","description":"Get a AithraGraph by its aithra_id (ait_)","operationId":"get_aithra_aithra__aithra_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"aithra_id","in":"path","required":true,"schema":{"type":"string","title":"Aithra Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AithraGraph"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["aithra"],"summary":"Aithra Start","description":"Start a aithra graph.\nThis starts from the predefined starting node. This will create a new configuration so it instanciates a complete new workflow and does not remember any prior  runs.\nFor letter_generator type, provide company_data with the company information.\nFor linkedin types, optionally provide url and prompt to run in auto mode (skips manual input).","operationId":"aithra_start_aithra__aithra_id__post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"aithra_id","in":"path","required":true,"schema":{"type":"string","title":"Aithra Id"}},{"name":"url","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},{"name":"prompt","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Company Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GraphConfigFinished"},{"$ref":"#/components/schemas/GraphConfigDecisionRequired"},{"$ref":"#/components/schemas/GraphConfigWrittenInputRequired"},{"$ref":"#/components/schemas/GraphConfigTokenRequried"}],"title":"Response Aithra Start Aithra  Aithra Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/aithra/{aithra_id}/graph_config":{"get":{"tags":["aithra"],"summary":"Get Aithra Configs","description":"Get all graph configurations from aithra for the user identified by the token or api_key.","operationId":"get_aithra_configs_aithra__aithra_id__graph_config_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"aithra_id","in":"path","required":true,"schema":{"type":"string","title":"Aithra Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GraphConfigData"},"title":"Response Get Aithra Configs Aithra  Aithra Id  Graph Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/aithra/{aithra_id}/start_and_run":{"post":{"tags":["aithra"],"summary":"Aithra Start And Run","description":"Start and run aithra graph to completion for letter_generator type.\nThis endpoint creates a new configuration, starts it, sends the company data, and waits for completion.\nReturns the complete results including the generated letter and all process data.\n\nCompany data should include: company_name, company_street, company_zip, company_city, \nand optionally: company_website, branche, description","operationId":"aithra_start_and_run_aithra__aithra_id__start_and_run_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"aithra_id","in":"path","required":true,"schema":{"type":"string","title":"Aithra Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Company Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Aithra Start And Run Aithra  Aithra Id  Start And Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feedback":{"post":{"tags":["feedback"],"summary":"Create Feedback","description":"Create a new feedback. Accepts FeedbackCreate Schema as input.\nReference is a reference to ANY resource (e.g. ins_xxx, agt_xxx, src_xxx)\nNeeds a numeric rating between 1 and 10\nHas optional 16384 characters long text field (feedback) for comments in writing.","operationId":"create_feedback_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feedback"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]}},"/feedback/{feedback_id}":{"get":{"tags":["feedback"],"summary":"Get Feedback","description":"Get a feedback by its id (fb_xxxx)","operationId":"get_feedback_feedback__feedback_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","title":"Feedback Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feedback"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["feedback"],"summary":"Delete Feedback","description":"Delete a feedback by its id (fb_xxxx)","operationId":"delete_feedback_feedback__feedback_id__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","title":"Feedback Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feedback"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/conversations":{"post":{"tags":["conversations"],"summary":"Create Conversation","description":"Create a new conversation thread for an insight.","operationId":"create_conversation_insight__insight_id__conversations_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["conversations"],"summary":"List Conversations","description":"List all conversations for an insight.","operationId":"list_conversations_insight__insight_id__conversations_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Conversation"},"title":"Response List Conversations Insight  Insight Id  Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/conversations/{conv_id}":{"get":{"tags":["conversations"],"summary":"Get Conversation","description":"Get a conversation with its full message history.","operationId":"get_conversation_insight__insight_id__conversations__conv_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}},{"name":"conv_id","in":"path","required":true,"schema":{"type":"string","title":"Conv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/insight/{insight_id}/conversations/{conv_id}/messages":{"post":{"tags":["conversations"],"summary":"Send Message","description":"Send a message in a conversation and get the assistant's reply.","operationId":"send_message_insight__insight_id__conversations__conv_id__messages_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}},{"name":"conv_id","in":"path","required":true,"schema":{"type":"string","title":"Conv Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMessageCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models":{"get":{"tags":["models"],"summary":"List Models","description":"List available AI models grouped by type. No auth required.","operationId":"list_models_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIModelListResponse"}}}}}}},"/letter-v2/profiles":{"get":{"tags":["letter-v2"],"summary":"List Profiles","description":"List the caller's sender profiles.","operationId":"list_profiles_letter_v2_profiles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LetterProfileSchema"},"type":"array","title":"Response List Profiles Letter V2 Profiles Get"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]},"post":{"tags":["letter-v2"],"summary":"Create Profile","description":"Create a sender profile. Omitted LaTeX templates default to the built-in\nlayout (DIN 5008, fold marks); placeholders: see GET /letter-v2/placeholders.","operationId":"create_profile_letter_v2_profiles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterProfileCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterProfileSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]}},"/letter-v2/profiles/{profile_id}":{"get":{"tags":["letter-v2"],"summary":"Get Profile","operationId":"get_profile_letter_v2_profiles__profile_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterProfileSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["letter-v2"],"summary":"Update Profile","description":"Update a profile. Changing a LaTeX template re-validates it and resets\nthe `validated` flag until the next successful preview.","operationId":"update_profile_letter_v2_profiles__profile_id__patch","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterProfileSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["letter-v2"],"summary":"Delete Profile","operationId":"delete_profile_letter_v2_profiles__profile_id__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/profiles/{profile_id}/preview":{"post":{"tags":["letter-v2"],"summary":"Preview Profile","description":"Test-compile the profile's templates with sample data (Max Mustermann)\nand return the letter PDF (?envelope=true for the envelope PDF).\nA successful preview sets the profile's `validated` flag.","operationId":"preview_profile_letter_v2_profiles__profile_id__preview_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"envelope","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Envelope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/placeholders":{"get":{"tags":["letter-v2"],"summary":"List Placeholders","description":"The placeholder contract for custom LaTeX templates ({{name}} markers).","operationId":"list_placeholders_letter_v2_placeholders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/letter-v2/templates":{"get":{"tags":["letter-v2"],"summary":"List Templates","operationId":"list_templates_letter_v2_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LetterTemplateSchema"},"type":"array","title":"Response List Templates Letter V2 Templates Get"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]},"post":{"tags":["letter-v2"],"summary":"Create Template","description":"Create a letter template (a configured letter product) on a profile.","operationId":"create_template_letter_v2_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterTemplateCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterTemplateSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]}},"/letter-v2/templates/{template_id}":{"get":{"tags":["letter-v2"],"summary":"Get Template","operationId":"get_template_letter_v2_templates__template_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterTemplateSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["letter-v2"],"summary":"Update Template","operationId":"update_template_letter_v2_templates__template_id__patch","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterTemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterTemplateSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["letter-v2"],"summary":"Delete Template","operationId":"delete_template_letter_v2_templates__template_id__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/companies/search":{"get":{"tags":["letter-v2"],"summary":"Search Companies","description":"Search dataset companies by name (optional PLZ filter) — for UI pickers.","operationId":"search_companies_letter_v2_companies_search_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"plz","in":"query","required":false,"schema":{"type":"string","default":"","title":"Plz"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/companies/{company_id}":{"get":{"tags":["letter-v2"],"summary":"Get Company","description":"Company detail incl. which facts are available (data completeness preview).","operationId":"get_company_letter_v2_companies__company_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/letters":{"post":{"tags":["letter-v2"],"summary":"Create Letter","description":"Generate a letter for a dataset company. Returns immediately with\nstatus=queued; poll GET /letter-v2/letters/{id} until done|failed.","operationId":"create_letter_letter_v2_letters_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["letter-v2"],"summary":"List Letters","description":"List letters. ?send_ready=true returns ONLY letters that passed every\nquality gate (grade A/B, mailable, website-verified) — use this in any\nconsumer that delivers letters.","operationId":"list_letters_letter_v2_letters_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"batch_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Batch Id"}},{"name":"template_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Template Id"}},{"name":"send_ready","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Send Ready"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LetterSchema"},"title":"Response List Letters Letter V2 Letters Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/letters/{letter_id}":{"get":{"tags":["letter-v2"],"summary":"Get Letter","operationId":"get_letter_letter_v2_letters__letter_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"letter_id","in":"path","required":true,"schema":{"type":"string","title":"Letter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["letter-v2"],"summary":"Delete Letter","description":"Delete a letter and its rendered PDFs. 409 while it is still running.","operationId":"delete_letter_letter_v2_letters__letter_id__delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"letter_id","in":"path","required":true,"schema":{"type":"string","title":"Letter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/letters/{letter_id}/pdf":{"get":{"tags":["letter-v2"],"summary":"Get Letter Pdf","description":"Download the letter PDF (?envelope=true for the envelope).","operationId":"get_letter_pdf_letter_v2_letters__letter_id__pdf_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"letter_id","in":"path","required":true,"schema":{"type":"string","title":"Letter Id"}},{"name":"envelope","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Envelope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/letters/{letter_id}/regenerate":{"post":{"tags":["letter-v2"],"summary":"Regenerate Letter","description":"Re-run the pipeline for a letter. Optional body: {feedback, llm_provider}\n— feedback goes into the letter prompt, llm_provider overrides the\ntemplate's letter stage (anthropic = Premium pricing).\n\nCosts like a fresh letter, except retrying a FAILED letter — the pipeline\nbroke, the user shouldn't pay twice.","operationId":"regenerate_letter_letter_v2_letters__letter_id__regenerate_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"letter_id","in":"path","required":true,"schema":{"type":"string","title":"Letter Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterRegenerate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/letters/{letter_id}/mark-sent":{"post":{"tags":["letter-v2"],"summary":"Mark Letter Sent","description":"Mark a letter as physically sent (sets sent_at).","operationId":"mark_letter_sent_letter_v2_letters__letter_id__mark_sent_post","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"letter_id","in":"path","required":true,"schema":{"type":"string","title":"Letter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["letter-v2"],"summary":"Unmark Letter Sent","description":"Undo mark-sent (clears sent_at).","operationId":"unmark_letter_sent_letter_v2_letters__letter_id__mark_sent_delete","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"letter_id","in":"path","required":true,"schema":{"type":"string","title":"Letter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LetterSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/batches":{"post":{"tags":["letter-v2"],"summary":"Create Batch","description":"Generate letters for many companies at once. Returns immediately;\npoll GET /letter-v2/batches/{id} for per-status counts.","operationId":"create_batch_letter_v2_batches_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}]}},"/letter-v2/batches/{batch_id}":{"get":{"tags":["letter-v2"],"summary":"Get Batch","description":"Batch progress: counts per letter status (queued/…/done/failed).","operationId":"get_batch_letter_v2_batches__batch_id__get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/batches/{batch_id}/download":{"get":{"tags":["letter-v2"],"summary":"Download Batch","description":"Zip of finished PDFs, print-ready layout: letters/ + envelopes/ flat.\nBy DEFAULT only send_ready letters are included (grade A/B, mailable,\nwebsite-verified). ?include_unready=true disables the gate (review use);\n?min_grade=C additionally widens the grade filter.","operationId":"download_batch_letter_v2_batches__batch_id__download_get","security":[{"OpenIdConnect":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"min_grade","in":"query","required":false,"schema":{"type":"string","default":"","title":"Min Grade"}},{"name":"include_unready","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unready"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/letter-v2/view/{share_token}":{"get":{"tags":["letter-v2"],"summary":"View Letter","description":"Public letter view — data source for the letter share page (no auth).","operationId":"view_letter_letter_v2_view__share_token__get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AIModelListResponse":{"properties":{"embedding":{"items":{"$ref":"#/components/schemas/AIModelSchema"},"type":"array","title":"Embedding","default":[]},"generative":{"items":{"$ref":"#/components/schemas/AIModelSchema"},"type":"array","title":"Generative","default":[]}},"type":"object","title":"AIModelListResponse"},"AIModelSchema":{"properties":{"id":{"type":"string","title":"Id"},"model_name":{"type":"string","title":"Model Name"},"provider":{"type":"string","title":"Provider"},"model_type":{"type":"string","title":"Model Type"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"dimensions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dimensions"},"cost_input":{"type":"number","title":"Cost Input","default":0},"cost_output":{"type":"number","title":"Cost Output","default":0},"context_length":{"type":"integer","title":"Context Length","default":4096},"is_default":{"type":"boolean","title":"Is Default","default":false},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"}},"type":"object","required":["id","model_name","provider","model_type"],"title":"AIModelSchema"},"AIResearcherNodeCreate":{"properties":{"type":{"type":"string","const":"AIResearcherNode","title":"Type","default":"AIResearcherNode"},"llm_provider":{"type":"string","title":"Llm Provider","default":"mistral"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"max_depth":{"type":"integer","title":"Max Depth","default":3},"max_pages":{"type":"integer","title":"Max Pages","default":15},"min_confidence":{"type":"number","title":"Min Confidence","default":0.7}},"type":"object","title":"AIResearcherNodeCreate"},"Agent":{"properties":{"id":{"type":"string","title":"Id"},"time_created":{"type":"string","format":"date-time","title":"Time Created"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"public":{"type":"boolean","title":"Public","default":false},"agent_type":{"$ref":"#/components/schemas/AgentTypes"},"agent_steps":{"items":{"$ref":"#/components/schemas/AgentStep"},"type":"array","title":"Agent Steps","default":[]},"generative_model":{"type":"string","title":"Generative Model","default":"gpt-3.5-turbo"},"temperature":{"type":"number","title":"Temperature","default":0.5},"tools":{"items":{"$ref":"#/components/schemas/Tool"},"type":"array","title":"Tools","default":[]},"sub":{"type":"string","format":"uuid","title":"Sub"}},"type":"object","required":["id","time_created","name","agent_type","sub"],"title":"Agent","examples":[{"agent_type":"DEFAULT","description":"This agent specializes in screwdrivers.","generative_model":"gpt-3.5-turbo","id":"agt_1EbVewEDVUf0oyAxzsi6LW","name":"Screwdriver Agent","public":false,"sub":"e66c1780-1aab-4bf0-85eb-e398cd1c848d","temperature":0.7,"time_created":"2023-01-01T00:00:00","tools":[]}]},"AgentCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"public":{"type":"boolean","title":"Public","default":false},"agent_data":{"oneOf":[{"$ref":"#/components/schemas/AgentDefault"},{"$ref":"#/components/schemas/AgentSubgoal"},{"$ref":"#/components/schemas/AgentPrimed"}],"title":"Agent Data","discriminator":{"propertyName":"agent_type","mapping":{"DEFAULT":"#/components/schemas/AgentDefault","PRIMED":"#/components/schemas/AgentPrimed","SUBGOAL":"#/components/schemas/AgentSubgoal"}}},"tools":{"items":{"type":"string"},"type":"array","title":"Tools","default":[]},"generative_model":{"type":"string","title":"Generative Model","default":"gpt-3.5-turbo"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","default":0.5}},"additionalProperties":false,"type":"object","required":["name","agent_data"],"title":"AgentCreate","examples":[{"agent_data":{"agent_type":"DEFAULT"},"description":"An agent designed to provide details about screwdrivers.","generative_model":"gpt-3.5-turbo","name":"Screwdriver Agent","public":false,"temperature":0.7,"tools":["tl_1EbVewEDVUf0oyAxzsi6LW","tl_1EbVewEDVUf0oyother7yy"]}]},"AgentDefault":{"properties":{"agent_type":{"type":"string","const":"DEFAULT","title":"Agent Type"}},"type":"object","required":["agent_type"],"title":"AgentDefault"},"AgentInteraction":{"properties":{"interaction_data":{"oneOf":[{"$ref":"#/components/schemas/InteractionChat"},{"$ref":"#/components/schemas/InteractionFunctionCall"}],"title":"Interaction Data","discriminator":{"propertyName":"interaction_type","mapping":{"CHAT":"#/components/schemas/InteractionChat","FUNCTIONCALL":"#/components/schemas/InteractionFunctionCall"}}}},"type":"object","required":["interaction_data"],"title":"AgentInteraction","examples":[{"interaction_data":{"interaction_type":"CHAT","message":"Tell me more about the history of the screwdriver."}}]},"AgentPrimed":{"properties":{"agent_type":{"type":"string","const":"PRIMED","title":"Agent Type"},"priming_command":{"type":"string","title":"Priming Command"}},"type":"object","required":["agent_type","priming_command"],"title":"AgentPrimed","examples":[{"agent_type":"PRIMED","priming_command":"You are a Salesman and want to sale Screwdrivers provide a good chat where you try to sell Screwdrivers."}]},"AgentResponse":{"properties":{"id":{"type":"string","title":"Id"},"time_created":{"type":"string","format":"date-time","title":"Time Created"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"public":{"type":"boolean","title":"Public","default":false},"agent_type":{"$ref":"#/components/schemas/AgentTypes"},"agent_steps":{"items":{"$ref":"#/components/schemas/AgentStep"},"type":"array","title":"Agent Steps","default":[]},"generative_model":{"type":"string","title":"Generative Model","default":"gpt-3.5-turbo"},"temperature":{"type":"number","title":"Temperature","default":0.5},"tools":{"items":{"$ref":"#/components/schemas/Tool"},"type":"array","title":"Tools","default":[]},"sub":{"type":"string","format":"uuid","title":"Sub"},"response":{"type":"string","title":"Response"},"source_snippets":{"items":{"$ref":"#/components/schemas/SourceSnippet"},"type":"array","title":"Source Snippets"}},"type":"object","required":["id","time_created","name","agent_type","sub","response","source_snippets"],"title":"AgentResponse","examples":[{"agent_type":"DEFAULT","description":"This agent specializes in screwdrivers.","generative_model":"gpt-3.5-turbo","id":"agt_1EbVewEDVUf0oyAxzsi6LW","name":"Screwdriver Agent","public":false,"sub":"e66c1780-1aab-4bf0-85eb-e398cd1c848d","temperature":0.7,"time_created":"2023-01-01T00:00:00","tools":[]}]},"AgentStep":{"properties":{"id":{"type":"string","title":"Id"},"agent_id":{"type":"string","title":"Agent Id"},"order":{"type":"integer","title":"Order"},"step_type":{"type":"string","title":"Step Type"},"step_message":{"type":"string","title":"Step Message"}},"type":"object","required":["id","agent_id","order","step_type","step_message"],"title":"AgentStep","examples":[{"agent_id":"agt_1EbVewEDVUf0oyAxzsi6LW","id":"astp_1EbVewEDVUf0oyAxzsi6LW","order":1,"step_message":"To understand Screwdrivers, we need to know what a screw is.","step_type":"ASSISTANT"}]},"AgentSubgoal":{"properties":{"agent_type":{"type":"string","const":"SUBGOAL","title":"Agent Type"}},"type":"object","required":["agent_type"],"title":"AgentSubgoal"},"AgentTypes":{"type":"string","enum":["DEFAULT","PLAN","PRIMED"],"title":"AgentTypes"},"AgentUpdate":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public"}},"additionalProperties":false,"type":"object","title":"AgentUpdate","examples":[{"description":"This agent now has an updated description on screwdrivers.","name":"Updated Screwdriver Agent","public":true}]},"AithraDatasetFactsCreate":{"properties":{"type":{"type":"string","const":"aithra_dataset_facts","title":"Type","default":"aithra_dataset_facts"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"llm_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Provider","default":"mistral"}},"type":"object","title":"AithraDatasetFactsCreate","description":"Facts-only Aithra: research/scrape/contact extraction without\nsynergy analysis, letter generation, QA grading, or letter-DB persistence.\n\nConsumed by the `dataset` entity to fill Tier A company facts; the lens\nlayer (scoring/synergy/perspective) is owned downstream, not here.\nDefault llm_provider is mistral."},"AithraEmailCreate":{"properties":{"type":{"type":"string","const":"aithra_email","title":"Type"},"email":{"type":"string","pattern":"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$","title":"Email"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"user_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Prompt"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["type","email"],"title":"AithraEmailCreate"},"AithraGraph":{"properties":{"id":{"type":"string","title":"Id"},"graph_id":{"type":"string","title":"Graph Id"},"type":{"type":"string","enum":["aithra_linkedin_interactive","aithra_linkedin_url","aithra_linkedin_auto","aithra_twitter","aithra_email","aithra_letter_generator","aithra_letter_generator_proof_check","aithra_dataset_facts"],"title":"Type"},"sub":{"type":"string","title":"Sub"},"create_json":{"anyOf":[{"$ref":"#/components/schemas/AithraLinkedInInteractiveCreate"},{"$ref":"#/components/schemas/AithraEmailCreate"},{"$ref":"#/components/schemas/AithraLetterGeneratorCreate"},{"$ref":"#/components/schemas/AithraLetterGeneratorProofCheckCreate"},{"$ref":"#/components/schemas/AithraDatasetFactsCreate"}],"title":"Create Json"},"time_created":{"type":"string","format":"date-time","title":"Time Created"}},"type":"object","required":["id","graph_id","type","sub","create_json","time_created"],"title":"AithraGraph"},"AithraLetterGeneratorCreate":{"properties":{"type":{"type":"string","const":"aithra_letter_generator","title":"Type","default":"aithra_letter_generator"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"llm_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Provider"}},"type":"object","title":"AithraLetterGeneratorCreate"},"AithraLetterGeneratorProofCheckCreate":{"properties":{"type":{"type":"string","const":"aithra_letter_generator_proof_check","title":"Type","default":"aithra_letter_generator_proof_check"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"AithraLetterGeneratorProofCheckCreate"},"AithraLinkedInInteractiveCreate":{"properties":{"type":{"type":"string","const":"aithra_linkedin_interactive","title":"Type","default":"aithra_linkedin_interactive"},"linkedin_urn":{"anyOf":[{"type":"string","pattern":"^urn:li:(organization|person):[a-zA-Z0-9_-]+$"},{"type":"null"}],"title":"Linkedin Urn"},"client":{"type":"string","enum":["consumer","business"],"title":"Client","default":"consumer"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"user_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Prompt"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","default":"en"}},"type":"object","title":"AithraLinkedInInteractiveCreate"},"AndNodeCreate":{"properties":{"type":{"type":"string","const":"AndNode","title":"Type","default":"AndNode"},"required_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required Keys"},"return_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Key"}},"type":"object","title":"AndNodeCreate"},"AssistantPushBackMessageNodeCreate":{"properties":{"type":{"type":"string","const":"AssistantPushBackMessageNode","title":"Type","default":"AssistantPushBackMessageNode"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"AssistantPushBackMessageNodeCreate"},"AssistantPushBackNodeCreate":{"properties":{"type":{"type":"string","const":"AssistantPushBackNode","title":"Type","default":"AssistantPushBackNode"}},"type":"object","title":"AssistantPushBackNodeCreate"},"AssistantPushBackToConsiderdNodeCreate":{"properties":{"type":{"type":"string","const":"AssistantPushBackToConsiderdNode","title":"Type","default":"AssistantPushBackToConsiderdNode"}},"type":"object","title":"AssistantPushBackToConsiderdNodeCreate"},"BatchCreate":{"properties":{"template_id":{"type":"string","title":"Template Id"},"company_ids":{"items":{"type":"string"},"type":"array","title":"Company Ids"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["template_id","company_ids"],"title":"BatchCreate"},"BatchSchema":{"properties":{"id":{"type":"string","title":"Id"},"template_id":{"type":"string","title":"Template Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"total":{"type":"integer","title":"Total"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts","default":{}},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","template_id","total","created_at"],"title":"BatchSchema"},"Body_create_source_upload_insight__insight_id__source_upload_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"public":{"type":"boolean","title":"Public","default":false},"keywords":{"type":"string","title":"Keywords"},"snippet_length":{"type":"integer","title":"Snippet Length"},"source_alias":{"type":"string","title":"Source Alias"}},"type":"object","required":["files","name"],"title":"Body_create_source_upload_insight__insight_id__source_upload_post"},"ChatHistory":{"properties":{"all_history":{"items":{"$ref":"#/components/schemas/MetisMessageEntry"},"type":"array","title":"All History","default":[]},"latest_message_user":{"anyOf":[{"$ref":"#/components/schemas/MetisMessageEntry"},{"type":"null"}]},"latest_message_assistant":{"anyOf":[{"$ref":"#/components/schemas/MetisMessageEntry"},{"type":"null"}]}},"type":"object","title":"ChatHistory"},"CheckInputStringConditionNodeCreate":{"properties":{"type":{"type":"string","const":"CheckInputStringConditionNode","title":"Type","default":"CheckInputStringConditionNode"},"string_check":{"type":"string","title":"String Check"}},"type":"object","required":["string_check"],"title":"CheckInputStringConditionNodeCreate"},"CheckStateForKeywordsNodeCreate":{"properties":{"type":{"type":"string","const":"CheckStateForKeywordsNode","title":"Type","default":"CheckStateForKeywordsNode"},"check_keys":{"items":{"type":"string"},"type":"array","title":"Check Keys","default":[]},"mode":{"type":"string","enum":["all","any"],"title":"Mode","default":"all"},"exclude_values":{"items":{"type":"string"},"type":"array","title":"Exclude Values","default":["unknown","unbekannt","nicht bekannt","undefined","False"]},"name":{"type":"string","title":"Name","default":"CheckStateForKeywordsNode"}},"type":"object","title":"CheckStateForKeywordsNodeCreate"},"ConditionFalseEdgeCreate":{"properties":{"type":{"type":"string","const":"ConditionFalseEdge","title":"Type","default":"ConditionFalseEdge"},"source":{"type":"integer","title":"Source"},"destination":{"type":"integer","title":"Destination"}},"type":"object","required":["source","destination"],"title":"ConditionFalseEdgeCreate"},"ConditionNodeCreate":{"properties":{"type":{"type":"string","const":"ConditionNode","title":"Type","default":"ConditionNode"},"condition_prompt":{"type":"string","title":"Condition Prompt"},"string_check":{"type":"string","title":"String Check","default":"Ergebnis: Erfolg"}},"type":"object","required":["condition_prompt"],"title":"ConditionNodeCreate"},"ConditionRegexNodeCreate":{"properties":{"type":{"type":"string","const":"ConditionRegexNode","title":"Type","default":"ConditionRegexNode"},"condition_prompt":{"type":"string","title":"Condition Prompt"},"regex":{"type":"string","title":"Regex"}},"type":"object","required":["condition_prompt","regex"],"title":"ConditionRegexNodeCreate"},"ConditionTrueEdgeCreate":{"properties":{"type":{"type":"string","const":"ConditionTrueEdge","title":"Type","default":"ConditionTrueEdge"},"source":{"type":"integer","title":"Source"},"destination":{"type":"integer","title":"Destination"}},"type":"object","required":["source","destination"],"title":"ConditionTrueEdgeCreate"},"ContactScraperNodeCreate":{"properties":{"type":{"type":"string","const":"ContactScraperNode","title":"Type","default":"ContactScraperNode"},"prefer_verified_site":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Prefer Verified Site","description":"Prioritize verified website","default":true},"min_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Confidence","description":"Minimum confidence threshold","default":0.5},"browse_for_contacts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Browse For Contacts","description":"Actively browse for contact pages","default":true}},"type":"object","title":"ContactScraperNodeCreate"},"Conversation":{"properties":{"id":{"type":"string","title":"Id"},"insight_id":{"type":"string","title":"Insight Id"},"sub":{"type":"string","format":"uuid","title":"Sub"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"message_count":{"type":"integer","title":"Message Count","default":0}},"type":"object","required":["id","insight_id","sub","created_at"],"title":"Conversation"},"ConversationCreate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","title":"ConversationCreate"},"ConversationDetail":{"properties":{"id":{"type":"string","title":"Id"},"insight_id":{"type":"string","title":"Insight Id"},"sub":{"type":"string","format":"uuid","title":"Sub"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"message_count":{"type":"integer","title":"Message Count","default":0},"messages":{"items":{"$ref":"#/components/schemas/ConversationMessage"},"type":"array","title":"Messages","default":[]}},"type":"object","required":["id","insight_id","sub","created_at"],"title":"ConversationDetail"},"ConversationMessage":{"properties":{"id":{"type":"string","title":"Id"},"conversation_id":{"type":"string","title":"Conversation Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"retrieval_used":{"type":"boolean","title":"Retrieval Used","default":false},"source_snippets":{"anyOf":[{"items":{"$ref":"#/components/schemas/SourceSnippet"},"type":"array"},{"type":"null"}],"title":"Source Snippets"},"embedding_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Embedding Tokens"},"generative_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Generative Tokens"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"order_index":{"type":"integer","title":"Order Index"}},"type":"object","required":["id","conversation_id","role","content","created_at","order_index"],"title":"ConversationMessage"},"ConversationMessageCreate":{"properties":{"message":{"type":"string","maxLength":8192,"minLength":1,"title":"Message"}},"type":"object","required":["message"],"title":"ConversationMessageCreate"},"ConversationMessageResponse":{"properties":{"message":{"$ref":"#/components/schemas/ConversationMessage"},"conversation_id":{"type":"string","title":"Conversation Id"},"retrieval_used":{"type":"boolean","title":"Retrieval Used"},"source_snippets":{"anyOf":[{"items":{"$ref":"#/components/schemas/SourceSnippet"},"type":"array"},{"type":"null"}],"title":"Source Snippets"}},"type":"object","required":["message","conversation_id","retrieval_used"],"title":"ConversationMessageResponse"},"DecisionRequiredChatNodeCreate":{"properties":{"type":{"type":"string","const":"DecisionRequiredChatNode","title":"Type","default":"DecisionRequiredChatNode"},"return_llm_chat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Return Llm Chat","default":false}},"type":"object","title":"DecisionRequiredChatNodeCreate"},"DecisionRequiredNodeCreate":{"properties":{"type":{"type":"string","const":"DecisionRequiredNode","title":"Type","default":"DecisionRequiredNode"},"return_llm_chat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Return Llm Chat","default":false},"possibilities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Possibilities"},"consider_in_chat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consider In Chat","default":true}},"type":"object","title":"DecisionRequiredNodeCreate"},"DocumentUploadData":{"properties":{"source_type":{"type":"string","const":"DOCUMENT_UPLOAD","title":"Source Type"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keywords"},"source_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Alias"}},"type":"object","required":["source_type"],"title":"DocumentUploadData"},"Edge":{"properties":{"name":{"type":"string","title":"Name","default":"undefined_Edge"},"source":{"type":"string","title":"Source"},"destination":{"type":"string","title":"Destination"},"required_keys":{"items":{"type":"string"},"type":"array","title":"Required Keys","default":[]},"outcome_keys":{"items":{"type":"string"},"type":"array","title":"Outcome Keys","default":[]},"is_stopping":{"type":"boolean","title":"Is Stopping","default":false},"config_id":{"type":"string","title":"Config Id"},"graph_id":{"type":"string","title":"Graph Id"},"input_data":{"additionalProperties":{"type":"string"},"type":"object","title":"Input Data","default":{}},"output_data":{"additionalProperties":{"type":"string"},"type":"object","title":"Output Data","default":{}},"private":{"type":"boolean","title":"Private","default":false}},"type":"object","required":["source","destination"],"title":"Edge"},"EmailNodeCreate":{"properties":{"type":{"type":"string","const":"EmailNode","title":"Type","default":"EmailNode"},"email_format":{"type":"string","title":"Email Format"},"subject":{"type":"string","title":"Subject"},"to":{"type":"string","title":"To"},"is_markdown":{"type":"boolean","title":"Is Markdown","default":false}},"type":"object","required":["email_format","subject","to"],"title":"EmailNodeCreate"},"Feedback":{"properties":{"referenz":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referenz","description":"Ressource ID, referencing the feedback"},"numerical_rating":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Numerical Rating","description":"Numerical rating from 0 to 10"},"feedback":{"anyOf":[{"type":"string","maxLength":16384,"minLength":1},{"type":"null"}],"title":"Feedback","description":"Feedback text"},"id":{"type":"string","title":"Id"},"sub":{"type":"string","title":"Sub"},"time_created":{"type":"string","format":"date-time","title":"Time Created"}},"type":"object","required":["numerical_rating","id","sub","time_created"],"title":"Feedback","examples":[{"feedback":"This is a great feedback","id":"fb_123xx1123xx","numerical_rating":8,"referenz":"ins_123xx1123xx","sub":"ae47e5f5-48d3-43da-abd1-824aefc97e48","time_created":"2023-10-14T15:30:00"}]},"FeedbackCreate":{"properties":{"referenz":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9]{2,5}_[A-Za-z0-9]+$"},{"type":"null"}],"title":"Referenz","description":"Ressource ID, referencing the feedback"},"numerical_rating":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Numerical Rating","description":"Numerical rating from 0 to 10"},"feedback":{"anyOf":[{"type":"string","maxLength":16384,"minLength":1},{"type":"null"}],"title":"Feedback","description":"Feedback text"}},"type":"object","required":["referenz","numerical_rating"],"title":"FeedbackCreate","examples":[{"feedback":"This is a great feedback","numerical_rating":8,"referenz":"ins_123xx1123xx"}]},"FinishNodeCreate":{"properties":{"type":{"type":"string","const":"FinishNode","title":"Type","default":"FinishNode"},"return_llm_chat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Return Llm Chat","default":false},"state_return_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Return Key"}},"type":"object","title":"FinishNodeCreate"},"Graph":{"properties":{"name":{"type":"string","title":"Name","default":"unnamed graph"},"public":{"type":"boolean","title":"Public","default":false},"description":{"type":"string","title":"Description","default":""},"edges":{"additionalProperties":{"$ref":"#/components/schemas/Edge"},"type":"object","title":"Edges","default":{}},"nodes":{"additionalProperties":{"$ref":"#/components/schemas/Node"},"type":"object","title":"Nodes","default":{}},"id":{"type":"string","title":"Id","index":true},"max_run_depth":{"type":"integer","title":"Max Run Depth","default":200},"start_node":{"anyOf":[{"$ref":"#/components/schemas/Node"},{"type":"null"}]},"sub":{"type":"string","format":"uuid","title":"Sub"},"is_aithra":{"type":"boolean","title":"Is Aithra","default":false},"third_party_token_needed":{"type":"boolean","title":"Third Party Token Needed","default":false}},"additionalProperties":true,"type":"object","title":"Graph"},"GraphConfigData":{"properties":{"graph_id":{"type":"string","title":"Graph Id"},"config_id":{"type":"string","title":"Config Id"},"latest_node":{"anyOf":[{"$ref":"#/components/schemas/GraphConfigDecisionRequired"},{"$ref":"#/components/schemas/GraphConfigFinished"},{"$ref":"#/components/schemas/GraphConfigWrittenInputRequired"},{"$ref":"#/components/schemas/GraphConfigTokenRequried"}],"title":"Latest Node"},"time":{"type":"string","format":"date-time","title":"Time"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"is_aithra":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Aithra","default":false},"sub":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sub"}},"type":"object","required":["graph_id","config_id","latest_node","time"],"title":"GraphConfigData"},"GraphConfigDecision":{"properties":{"type":{"type":"string","const":"Decision","title":"Type","default":"Decision"},"graph_id":{"type":"string","title":"Graph Id"},"graph_config_id":{"type":"string","title":"Graph Config Id"},"node_id":{"type":"string","title":"Node Id"},"node_config_id":{"type":"string","title":"Node Config Id"},"decision":{"type":"string","title":"Decision"}},"type":"object","required":["graph_id","graph_config_id","node_id","node_config_id","decision"],"title":"GraphConfigDecision"},"GraphConfigDecisionRequired":{"properties":{"type":{"type":"string","const":"GraphDecisionRequired","title":"Type","default":"GraphDecisionRequired"},"graph_id":{"type":"string","title":"Graph Id"},"graph_config_id":{"type":"string","title":"Graph Config Id"},"node_id":{"type":"string","title":"Node Id"},"node_config_id":{"type":"string","title":"Node Config Id"},"chat_history":{"items":{"$ref":"#/components/schemas/MetisMessageEntry"},"type":"array","title":"Chat History"},"question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question"},"possibilities":{"items":{"type":"string"},"type":"array","title":"Possibilities"}},"type":"object","required":["graph_id","graph_config_id","node_id","node_config_id","chat_history","question","possibilities"],"title":"GraphConfigDecisionRequired"},"GraphConfigFinished":{"properties":{"type":{"type":"string","const":"GraphFinished","title":"Type","default":"GraphFinished"},"graph_id":{"type":"string","title":"Graph Id"},"graph_config_id":{"type":"string","title":"Graph Config Id"},"node_id":{"type":"string","title":"Node Id"},"node_config_id":{"type":"string","title":"Node Config Id"},"chat_history":{"items":{"$ref":"#/components/schemas/MetisMessageEntry"},"type":"array","title":"Chat History"},"output_string":{"type":"string","title":"Output String"}},"type":"object","required":["graph_id","graph_config_id","node_id","node_config_id","chat_history","output_string"],"title":"GraphConfigFinished"},"GraphConfigTokenRequried":{"properties":{"type":{"type":"string","const":"GraphTokenPermissionRequired","title":"Type","default":"GraphTokenPermissionRequired"},"graph_id":{"type":"string","title":"Graph Id"},"graph_config_id":{"type":"string","title":"Graph Config Id"},"node_id":{"type":"string","title":"Node Id"},"node_config_id":{"type":"string","title":"Node Config Id"},"chat_history":{"items":{"$ref":"#/components/schemas/MetisMessageEntry"},"type":"array","title":"Chat History"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"url":{"type":"string","title":"Url"}},"type":"object","required":["graph_id","graph_config_id","node_id","node_config_id","chat_history","message","url"],"title":"GraphConfigTokenRequried"},"GraphConfigWrittenInput":{"properties":{"type":{"type":"string","const":"WrittenInput","title":"Type","default":"WrittenInput"},"graph_id":{"type":"string","title":"Graph Id"},"graph_config_id":{"type":"string","title":"Graph Config Id"},"node_id":{"type":"string","title":"Node Id"},"node_config_id":{"type":"string","title":"Node Config Id"},"input_string":{"type":"string","title":"Input String"}},"type":"object","required":["graph_id","graph_config_id","node_id","node_config_id","input_string"],"title":"GraphConfigWrittenInput"},"GraphConfigWrittenInputRequired":{"properties":{"type":{"type":"string","const":"GraphWrittenInputRequired","title":"Type","default":"GraphWrittenInputRequired"},"graph_id":{"type":"string","title":"Graph Id"},"graph_config_id":{"type":"string","title":"Graph Config Id"},"node_id":{"type":"string","title":"Node Id"},"node_config_id":{"type":"string","title":"Node Config Id"},"chat_history":{"items":{"$ref":"#/components/schemas/MetisMessageEntry"},"type":"array","title":"Chat History"},"question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question"}},"type":"object","required":["graph_id","graph_config_id","node_id","node_config_id","chat_history","question"],"title":"GraphConfigWrittenInputRequired"},"GraphConfiguration":{"properties":{"nodes":{"additionalProperties":{"$ref":"#/components/schemas/Node"},"type":"object","title":"Nodes"},"edges":{"additionalProperties":{"$ref":"#/components/schemas/Edge"},"type":"object","title":"Edges"},"chat_history":{"$ref":"#/components/schemas/ChatHistory","default":{"all_history":[]}},"transition_history":{"items":{"type":"string"},"type":"array","title":"Transition History","default":[]},"node_order":{"items":{"type":"string"},"type":"array","title":"Node Order","default":[]},"start_node":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Node"},"finished":{"type":"boolean","title":"Finished","default":false},"start_node_type":{"type":"string","title":"Start Node Type","default":""},"start_node_graph_id":{"type":"string","title":"Start Node Graph Id","default":""},"id":{"type":"string","title":"Id","index":true},"queue":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Queue"},"state_storage":{"additionalProperties":true,"type":"object","title":"State Storage"},"graph_id":{"type":"string","title":"Graph Id","default":""},"amount_of_stop_nodes":{"type":"integer","title":"Amount Of Stop Nodes","default":0},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","default":"unnamed graphconfig"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","default":""},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public","default":false},"sub":{"type":"string","format":"uuid","title":"Sub"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"llmtoken_config_sum_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Llmtoken Config Sum Amount","default":0},"llmtoken_used_this_run":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Llmtoken Used This Run","default":0}},"type":"object","title":"GraphConfiguration"},"GraphCreate":{"properties":{"nodes":{"items":{"anyOf":[{"$ref":"#/components/schemas/PopLatestUserChatNodeCreate"},{"$ref":"#/components/schemas/StaticStringNodeCreate"},{"$ref":"#/components/schemas/EmailNodeCreate"},{"$ref":"#/components/schemas/UserPushBackNodeCreate"},{"$ref":"#/components/schemas/AssistantPushBackNodeCreate"},{"$ref":"#/components/schemas/DecisionRequiredNodeCreate"},{"$ref":"#/components/schemas/PopLatestAllNodeCreate"},{"$ref":"#/components/schemas/SoupDownloaderNodeCreate"},{"$ref":"#/components/schemas/ConditionNodeCreate"},{"$ref":"#/components/schemas/RunChatNodeCreate"},{"$ref":"#/components/schemas/StaticListNodeCreate"},{"$ref":"#/components/schemas/WrittenInputRequiredChatNodeCreate"},{"$ref":"#/components/schemas/WebSearchNodeCreate"},{"$ref":"#/components/schemas/DecisionRequiredChatNodeCreate"},{"$ref":"#/components/schemas/UserPushBackMessageNodeCreate"},{"$ref":"#/components/schemas/TokenCheckNodeCreate"},{"$ref":"#/components/schemas/AssistantPushBackToConsiderdNodeCreate"},{"$ref":"#/components/schemas/SystemPushBackMessageNodeCreate"},{"$ref":"#/components/schemas/WrittenInputRequriedNodeCreate"},{"$ref":"#/components/schemas/CheckStateForKeywordsNodeCreate"},{"$ref":"#/components/schemas/AssistantPushBackMessageNodeCreate"},{"$ref":"#/components/schemas/LinkedInContentImageNodeCreate"},{"$ref":"#/components/schemas/LookupNodeCreate"},{"$ref":"#/components/schemas/UserPushBackToConsiderdNodeCreate"},{"$ref":"#/components/schemas/AndNodeCreate"},{"$ref":"#/components/schemas/InsightNodeCreate"},{"$ref":"#/components/schemas/WebRankingNodeCreate"},{"$ref":"#/components/schemas/LinkedInImageUploadNodeCreate"},{"$ref":"#/components/schemas/WebDownloadNodeCreate"},{"$ref":"#/components/schemas/FinishNodeCreate"},{"$ref":"#/components/schemas/ContactScraperNodeCreate"},{"$ref":"#/components/schemas/AIResearcherNodeCreate"},{"$ref":"#/components/schemas/SystemPushBackNodeCreate"},{"$ref":"#/components/schemas/RewriteNoUmlautNodeCreate"},{"$ref":"#/components/schemas/LinkedInPosterNodeCreate"},{"$ref":"#/components/schemas/ConditionRegexNodeCreate"},{"$ref":"#/components/schemas/StaticStringReplaceNodeCreate"},{"$ref":"#/components/schemas/CheckInputStringConditionNodeCreate"},{"$ref":"#/components/schemas/PopLatestConsideredNodeCreate"},{"$ref":"#/components/schemas/WriteSingleValueOfStateNodeCreate"}]},"type":"array","title":"Nodes"},"edges":{"items":{"anyOf":[{"$ref":"#/components/schemas/StringCutFirstLineKeywordEdgeCreate"},{"$ref":"#/components/schemas/StringCuttingByKeywordEdgeCreate"},{"$ref":"#/components/schemas/NoIOEdgeCreate"},{"$ref":"#/components/schemas/PassInputOuputEdgeCreate"},{"$ref":"#/components/schemas/ConditionFalseEdgeCreate"},{"$ref":"#/components/schemas/JsonSplittingEdgeCreate"},{"$ref":"#/components/schemas/PassInputRenameEdgeCreate"},{"$ref":"#/components/schemas/PassDictEdgeCreate"},{"$ref":"#/components/schemas/RenameInputRenameOutputEdgeCreate"},{"$ref":"#/components/schemas/ConditionTrueEdgeCreate"}]},"type":"array","title":"Edges"},"start_node":{"type":"integer","title":"Start Node"},"max_run_depth":{"type":"integer","title":"Max Run Depth","default":200},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public","default":false},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["nodes","edges","start_node"],"title":"GraphCreate"},"GraphUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"GraphUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Insight":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"embedding_model":{"type":"string","title":"Embedding Model"},"generative_model":{"type":"string","title":"Generative Model"},"temperature":{"type":"number","title":"Temperature"},"text_qa_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Qa Template"},"top_k":{"type":"integer","title":"Top K","default":5},"vector_store_id":{"type":"string","title":"Vector Store Id"},"time_created":{"type":"string","format":"date-time","title":"Time Created"},"sub":{"type":"string","format":"uuid","title":"Sub"},"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","title":"Sources","default":[]}},"type":"object","required":["id","name","embedding_model","generative_model","temperature","vector_store_id","time_created","sub"],"title":"Insight"},"InsightCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"embedding_model":{"type":"string","title":"Embedding Model","default":"text-embedding-3-small"},"generative_model":{"type":"string","title":"Generative Model","default":"gpt-4o-mini"},"temperature":{"type":"number","title":"Temperature","default":0.3},"text_qa_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Qa Template"},"top_k":{"type":"integer","title":"Top K","default":5},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public"},"insight_params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Insight Params"}},"additionalProperties":false,"type":"object","required":["name"],"title":"InsightCreate","examples":[{"description":"RAG over EU regulation documents","embedding_model":"text-embedding-3-small","generative_model":"gpt-4o-mini","name":"EU Regulation Insight","temperature":0.3,"top_k":5}]},"InsightNodeCreate":{"properties":{"type":{"type":"string","const":"InsightNode","title":"Type","default":"InsightNode"},"insight_id":{"type":"string","pattern":"^ins_.*$","title":"Insight Id","description":"The insight to query"},"search_mode":{"type":"string","title":"Search Mode","default":"hybrid"},"top_k":{"type":"integer","title":"Top K","default":5},"generative_model":{"type":"string","title":"Generative Model","default":"gpt-4o-mini"},"temperature":{"type":"number","title":"Temperature","default":0.3},"system_prompt":{"type":"string","title":"System Prompt","default":"You are a helpful assistant. Answer based on the provided context."},"output_key":{"type":"string","title":"Output Key","default":"insight_answer"}},"type":"object","required":["insight_id"],"title":"InsightNodeCreate"},"InsightShare":{"properties":{"sub":{"type":"string","format":"uuid","title":"Sub"},"time_created":{"type":"string","format":"date-time","title":"Time Created"}},"type":"object","required":["sub","time_created"],"title":"InsightShare"},"InsightUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"generative_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generative Model"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"text_qa_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Qa Template"},"top_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top K"}},"additionalProperties":false,"type":"object","title":"InsightUpdate"},"InteractionChat":{"properties":{"interaction_type":{"type":"string","const":"CHAT","title":"Interaction Type"},"message":{"type":"string","title":"Message"}},"type":"object","required":["interaction_type","message"],"title":"InteractionChat"},"InteractionChatInsight":{"properties":{"interaction_type":{"type":"string","const":"CHAT","title":"Interaction Type"},"message":{"type":"string","title":"Message"},"question_id":{"type":"string","minLength":1,"title":"Question Id"}},"type":"object","required":["interaction_type","message","question_id"],"title":"InteractionChatInsight"},"InteractionFunctionCall":{"properties":{"interaction_type":{"type":"string","const":"FUNCTIONCALL","title":"Interaction Type"},"function_name":{"type":"string","title":"Function Name"},"function_args":{"additionalProperties":{"type":"string"},"type":"object","title":"Function Args"}},"type":"object","required":["interaction_type","function_name","function_args"],"title":"InteractionFunctionCall"},"JsonSplittingEdgeCreate":{"properties":{"type":{"type":"string","const":"JsonSplittingEdge","title":"Type","default":"JsonSplittingEdge"},"source":{"type":"integer","title":"Source"},"destination":{"type":"integer","title":"Destination"},"json_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Json Key"}},"type":"object","required":["source","destination","json_key"],"title":"JsonSplittingEdgeCreate"},"LetterCreate":{"properties":{"company_id":{"type":"string","title":"Company Id"},"template_id":{"type":"string","title":"Template Id"},"mode":{"type":"string","title":"Mode","default":"express"}},"type":"object","required":["company_id","template_id"],"title":"LetterCreate"},"LetterProfileCreate":{"properties":{"name":{"type":"string","title":"Name"},"company":{"$ref":"#/components/schemas/ProfileCompany"},"latex_letter_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latex Letter Template"},"latex_envelope_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latex Envelope Template"}},"type":"object","required":["name","company"],"title":"LetterProfileCreate"},"LetterProfileSchema":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"company":{"$ref":"#/components/schemas/ProfileCompany"},"latex_letter_template":{"type":"string","title":"Latex Letter Template"},"latex_envelope_template":{"type":"string","title":"Latex Envelope Template"},"validated":{"type":"boolean","title":"Validated"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","company","latex_letter_template","latex_envelope_template","validated","created_at","updated_at"],"title":"LetterProfileSchema"},"LetterProfileUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"company":{"anyOf":[{"$ref":"#/components/schemas/ProfileCompany"},{"type":"null"}]},"latex_letter_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latex Letter Template"},"latex_envelope_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latex Envelope Template"}},"type":"object","title":"LetterProfileUpdate"},"LetterRegenerate":{"properties":{"feedback":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Feedback"},"llm_provider":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Llm Provider"}},"type":"object","title":"LetterRegenerate","description":"Optional overrides for a regenerate run."},"LetterSchema":{"properties":{"id":{"type":"string","title":"Id"},"template_id":{"type":"string","title":"Template Id"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"},"company_id":{"type":"string","title":"Company Id"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"data_completeness":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data Completeness"},"fit":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fit"},"recipient":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Recipient"},"letter_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Letter Subject"},"letter_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Letter Text"},"qa_grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qa Grade"},"qa_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Qa Score"},"qa_issues":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Qa Issues"},"verified_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified Status"},"verification":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Verification"},"send_ready":{"type":"boolean","title":"Send Ready","default":false},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","template_id","company_id","status","created_at","updated_at"],"title":"LetterSchema"},"LetterTemplateCreate":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"name":{"type":"string","title":"Name"},"use_case":{"type":"string","title":"Use Case","default":"anschreiben"},"language":{"type":"string","title":"Language","default":"de"},"tone":{"type":"string","title":"Tone","default":"professionell, direkt, auf Augenhöhe"},"analysis_prompt":{"type":"string","title":"Analysis Prompt","default":""},"letter_prompt":{"type":"string","title":"Letter Prompt","default":""},"llm_provider":{"type":"string","title":"Llm Provider","default":"anthropic"},"letter_llm_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Letter Llm Provider"},"recipient_strategy":{"$ref":"#/components/schemas/RecipientStrategy"},"min_grade":{"type":"string","title":"Min Grade","default":"C"}},"type":"object","required":["profile_id","name"],"title":"LetterTemplateCreate"},"LetterTemplateSchema":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"name":{"type":"string","title":"Name"},"use_case":{"type":"string","title":"Use Case"},"language":{"type":"string","title":"Language"},"tone":{"type":"string","title":"Tone"},"analysis_prompt":{"type":"string","title":"Analysis Prompt"},"letter_prompt":{"type":"string","title":"Letter Prompt"},"llm_provider":{"type":"string","title":"Llm Provider"},"letter_llm_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Letter Llm Provider"},"recipient_strategy":{"$ref":"#/components/schemas/RecipientStrategy"},"min_grade":{"type":"string","title":"Min Grade"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","profile_id","name","use_case","language","tone","analysis_prompt","letter_prompt","llm_provider","recipient_strategy","min_grade","created_at","updated_at"],"title":"LetterTemplateSchema"},"LetterTemplateUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"use_case":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone"},"analysis_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Prompt"},"letter_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Letter Prompt"},"llm_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Provider"},"letter_llm_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Letter Llm Provider"},"recipient_strategy":{"anyOf":[{"$ref":"#/components/schemas/RecipientStrategy"},{"type":"null"}]},"min_grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Grade"}},"type":"object","title":"LetterTemplateUpdate"},"LinkedInContentImageNodeCreate":{"properties":{"type":{"type":"string","const":"LinkedInContentImageNode","title":"Type","default":"LinkedInContentImageNode"},"name":{"type":"string","title":"Name","default":"LinkedInContentImageNode"},"author_urn":{"type":"string","pattern":"^urn:li:(organization|person):[a-zA-Z0-9_-]+$","title":"Author Urn"},"content_landing_page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Landing Page"}},"type":"object","required":["author_urn"],"title":"LinkedInContentImageNodeCreate"},"LinkedInImageUploadNodeCreate":{"properties":{"type":{"type":"string","const":"LinkedInImageUploadNode","title":"Type","default":"LinkedInImageUploadNode"},"name":{"type":"string","title":"Name","default":"LinkedInImageUploadNode"},"owner_urn":{"type":"string","pattern":"^urn:li:(organization|person):[a-zA-Z0-9_-]+$","title":"Owner Urn"},"run_introspect":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Run Introspect","default":false},"client":{"type":"string","enum":["consumer","business"],"title":"Client","default":"consumer"}},"type":"object","required":["owner_urn"],"title":"LinkedInImageUploadNodeCreate"},"LinkedInPosterNodeCreate":{"properties":{"type":{"type":"string","const":"LinkedInPosterNode","title":"Type","default":"LinkedInPosterNode"},"name":{"type":"string","title":"Name","default":"LinkedInPosterNode"},"author_urn":{"anyOf":[{"type":"string","pattern":"^(urn:li:(organization|person):[a-zA-Z0-9_-]+)?$"},{"type":"null"}],"title":"Author Urn","default":""},"wait_for_content":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Wait For Content","default":false},"run_introspect":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Run Introspect","default":false},"content_landing_page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Landing Page"},"client":{"type":"string","enum":["consumer","business"],"title":"Client","default":"consumer"}},"type":"object","title":"LinkedInPosterNodeCreate"},"LookupNodeCreate":{"properties":{"type":{"type":"string","const":"LookupNode","title":"Type","default":"LookupNode"},"insight_id":{"type":"string","pattern":"^ins_.*$","title":"Insight Id","description":"The insight to query"},"search_mode":{"type":"string","title":"Search Mode","default":"hybrid"},"top_k":{"type":"integer","title":"Top K","default":5},"output_key":{"type":"string","title":"Output Key","default":"lookup_results"}},"type":"object","required":["insight_id"],"title":"LookupNodeCreate"},"MessageRole":{"type":"string","enum":["system","user","assistant","function"],"title":"MessageRole"},"MetisMessageEntry":{"properties":{"role":{"$ref":"#/components/schemas/MessageRole","default":"system"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","default":""},"is_considered":{"type":"boolean","title":"Is Considered","default":false},"is_user_visible":{"type":"boolean","title":"Is User Visible","default":false},"is_interaction":{"type":"boolean","title":"Is Interaction","default":false}},"type":"object","title":"MetisMessageEntry"},"NoIOEdgeCreate":{"properties":{"type":{"type":"string","const":"NoIOEdge","title":"Type","default":"NoIOEdge"},"source":{"type":"integer","title":"Source"},"destination":{"type":"integer","title":"Destination"}},"type":"object","required":["source","destination"],"title":"NoIOEdgeCreate"},"Node":{"properties":{"name":{"type":"string","title":"Name","default":"undefined_Node"},"type":{"type":"string","const":"Node","title":"Type","default":"Node"},"is_stopping":{"type":"boolean","title":"Is Stopping","default":false},"required_keys":{"items":{"type":"string"},"type":"array","title":"Required Keys","default":[]},"outcome_keys":{"items":{"type":"string"},"type":"array","title":"Outcome Keys","default":[]},"config_id":{"type":"string","title":"Config Id"},"graph_id":{"type":"string","title":"Graph Id"},"input_data":{"additionalProperties":{"type":"string"},"type":"object","title":"Input Data","default":{}},"output_data":{"additionalProperties":{"type":"string"},"type":"object","title":"Output Data","default":{}},"incoming_edges":{"items":{"type":"string"},"type":"array","title":"Incoming Edges","default":[]},"outgoing_edges":{"items":{"type":"string"},"type":"array","title":"Outgoing Edges","default":[]},"transition_history":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transition History"}},"additionalProperties":true,"type":"object","title":"Node"},"PassDictEdgeCreate":{"properties":{"type":{"type":"string","const":"PassDictEdge","title":"Type","default":"PassDictEdge"},"source":{"type":"integer","title":"Source"},"destination":{"type":"integer","title":"Destination"}},"type":"object","required":["source","destination"],"title":"PassDictEdgeCreate"},"PassInputOuputEdgeCreate":{"properties":{"type":{"type":"string","const":"PassInputOuputEdge","title":"Type","default":"PassInputOuputEdge"},"source":{"type":"integer","title":"Source"},"destination":{"type":"integer","title":"Destination"}},"type":"object","required":["source","destination"],"title":"PassInputOuputEdgeCreate"},"PassInputRenameEdgeCreate":{"properties":{"type":{"type":"string","const":"PassInputRenameEdge","title":"Type","default":"PassInputRenameEdge"},"outcome_keys":{"items":{"type":"string"},"type":"array","title":"Outcome Keys","default":["input_string"]},"source":{"type":"integer","title":"Source"},"destination":{"type":"integer","title":"Destination"}},"type":"object","required":["source","destination"],"title":"PassInputRenameEdgeCreate"},"PopLatestAllNodeCreate":{"properties":{"type":{"type":"string","const":"PopLatestAllNode","title":"Type","default":"PopLatestAllNode"}},"type":"object","title":"PopLatestAllNodeCreate"},"PopLatestConsideredNodeCreate":{"properties":{"type":{"type":"string","const":"PopLatestConsideredNode","title":"Type","default":"PopLatestConsideredNode"}},"type":"object","title":"PopLatestConsideredNodeCreate"},"PopLatestUserChatNodeCreate":{"properties":{"type":{"type":"string","const":"PopLatestUserChatNode","title":"Type","default":"PopLatestUserChatNode"}},"type":"object","title":"PopLatestUserChatNodeCreate"},"ProfileCompany":{"properties":{"sender":{"$ref":"#/components/schemas/SenderBlock"},"services":{"items":{"type":"string"},"type":"array","title":"Services","default":[]},"value_proposition":{"type":"string","title":"Value Proposition","default":""},"target_synergies":{"type":"string","title":"Target Synergies","default":""},"assets":{"additionalProperties":{"type":"string"},"type":"object","title":"Assets","default":{}}},"additionalProperties":true,"type":"object","required":["sender"],"title":"ProfileCompany","description":"Sender company profile: identity, offering, branding assets."},"Question":{"properties":{"id":{"type":"string","title":"Id"},"question":{"type":"string","minLength":1,"title":"Question"},"time_created":{"type":"string","format":"date-time","title":"Time Created"},"question_steps":{"anyOf":[{"items":{"$ref":"#/components/schemas/QuestionStep"},"type":"array"},{"type":"null"}],"title":"Question Steps"},"insight_id":{"type":"string","title":"Insight Id"},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"},"question_type":{"$ref":"#/components/schemas/QuestionTypes"},"status":{"type":"string","title":"Status"},"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","title":"Sources","default":[]},"sub":{"type":"string","format":"uuid","title":"Sub"},"length":{"type":"integer","title":"Length"},"source_snippets":{"anyOf":[{"items":{"$ref":"#/components/schemas/SourceSnippet"},"type":"array"},{"type":"null"}],"title":"Source Snippets"}},"type":"object","required":["id","question","time_created","insight_id","result","question_type","status","sub","length"],"title":"Question"},"QuestionCreate":{"properties":{"question":{"type":"string","minLength":1,"title":"Question"},"question_type":{"$ref":"#/components/schemas/QuestionTypes","default":"HYBRID"}},"type":"object","required":["question"],"title":"QuestionCreate","examples":[{"question":"What are the requirements for CE marking?","question_type":"HYBRID"}]},"QuestionStep":{"properties":{"id":{"type":"string","title":"Id"},"question_id":{"type":"string","title":"Question Id"},"order":{"type":"integer","title":"Order"},"step_type":{"type":"string","title":"Step Type"},"step_message":{"type":"string","title":"Step Message"}},"type":"object","required":["id","question_id","order","step_type","step_message"],"title":"QuestionStep"},"QuestionTypes":{"type":"string","enum":["SUMMARY","AGENT","HYBRID","FULL_TEXT","FULL_TEXT_EXACT"],"title":"QuestionTypes"},"RecipientStrategy":{"properties":{"preferred_categories":{"items":{"type":"string"},"type":"array","title":"Preferred Categories","default":["gf"]},"llm_tiebreak":{"type":"boolean","title":"Llm Tiebreak","default":false}},"type":"object","title":"RecipientStrategy"},"RemoteDocumentData":{"properties":{"source_type":{"type":"string","const":"REMOTE_DOCUMENT","title":"Source Type"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keywords"},"source_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Alias"}},"type":"object","required":["source_type","url"],"title":"RemoteDocumentData"},"RenameInputRenameOutputEdgeCreate":{"properties":{"type":{"type":"string","const":"RenameInputRenameOutputEdge","title":"Type","default":"RenameInputRenameOutputEdge"},"outcome_keys":{"items":{"type":"string"},"type":"array","title":"Outcome Keys","default":["input_string"]},"required_keys":{"items":{"type":"string"},"type":"array","title":"Required Keys","default":["output_string"]},"source":{"type":"integer","title":"Source"},"destination":{"type":"integer","title":"Destination"}},"type":"object","required":["source","destination"],"title":"RenameInputRenameOutputEdgeCreate"},"RewriteNoUmlautNodeCreate":{"properties":{"type":{"type":"string","const":"RewriteNoUmlautNode","title":"Type","default":"RewriteNoUmlautNode"},"exclude_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Keys","default":[]},"name":{"type":"string","title":"Name","default":"RewriteNoUmlautNode"}},"type":"object","title":"RewriteNoUmlautNodeCreate"},"RunChatNodeCreate":{"properties":{"type":{"type":"string","const":"RunChatNode","title":"Type","default":"RunChatNode"},"model":{"type":"string","title":"Model","default":"gpt-4o-mini"},"return_json":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Return Json","default":false}},"type":"object","title":"RunChatNodeCreate"},"SenderBlock":{"properties":{"name":{"type":"string","title":"Name"},"position":{"type":"string","title":"Position","default":""},"company":{"type":"string","title":"Company"},"street":{"type":"string","title":"Street","default":""},"city":{"type":"string","title":"City","default":""},"email":{"type":"string","title":"Email","default":""},"web":{"type":"string","title":"Web","default":""}},"type":"object","required":["name","company"],"title":"SenderBlock"},"Share":{"properties":{"sub_to_share":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","title":"Sub To Share","description":"UUID string that must match the standard UUID format","examples":["75588808-58dc-48fd-9bf8-6ad1deffa1d5"]}},"type":"object","required":["sub_to_share"],"title":"Share"},"SoupDownloaderNodeCreate":{"properties":{"type":{"type":"string","const":"SoupDownloaderNode","title":"Type","default":"SoupDownloaderNode"}},"type":"object","title":"SoupDownloaderNodeCreate"},"Source":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"insight_id":{"type":"string","title":"Insight Id"},"time_created":{"type":"string","format":"date-time","title":"Time Created"},"source_type":{"$ref":"#/components/schemas/SourceTypes"},"public":{"type":"boolean","title":"Public","default":false},"keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keywords"},"path":{"type":"string","title":"Path"},"length":{"type":"integer","title":"Length"}},"type":"object","required":["id","insight_id","time_created","source_type","path","length"],"title":"Source"},"SourceCreate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"public":{"type":"boolean","title":"Public","default":false},"source_data":{"oneOf":[{"$ref":"#/components/schemas/RemoteDocumentData"},{"$ref":"#/components/schemas/WebsiteData"},{"$ref":"#/components/schemas/DocumentUploadData"}],"title":"Source Data","discriminator":{"propertyName":"source_type","mapping":{"DOCUMENT_UPLOAD":"#/components/schemas/DocumentUploadData","REMOTE_DOCUMENT":"#/components/schemas/RemoteDocumentData","WEBSITE":"#/components/schemas/WebsiteData"}}}},"additionalProperties":false,"type":"object","required":["source_data"],"title":"SourceCreate","examples":[{"name":"Wikipedia Article","source_data":{"source_type":"WEBSITE","url":"https://en.wikipedia.org/wiki/Example"}}]},"SourceSnippet":{"properties":{"source_id":{"type":"string","title":"Source Id"},"snippet_id":{"type":"string","title":"Snippet Id"},"snippet":{"type":"string","title":"Snippet"},"score":{"type":"number","title":"Score","default":0.0}},"type":"object","required":["source_id","snippet_id","snippet"],"title":"SourceSnippet","examples":[{"snippet":"The screwdriver is a tool, manual or powered, used for screwing (installing) and unscrewing (removing) screws. A typical simple screwdriver has a handle and a shaft.","snippet_id":"789b936a-9e1b-41b5-b721-42d7308b858c","source_id":"src_1EbVewEDVUf0oyAxzsi6LW"}]},"SourceTypes":{"type":"string","enum":["WEBSITE","REMOTE_DOCUMENT","SEARCH","DOCUMENT_UPLOAD"],"title":"SourceTypes"},"SourceUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public"},"keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keywords"}},"additionalProperties":false,"type":"object","title":"SourceUpdate"},"StaticListNodeCreate":{"properties":{"type":{"type":"string","const":"StaticListNode","title":"Type","default":"StaticListNode"},"output_list":{"items":{"type":"string"},"type":"array","title":"Output List"}},"type":"object","required":["output_list"],"title":"StaticListNodeCreate"},"StaticStringNodeCreate":{"properties":{"type":{"type":"string","const":"StaticStringNode","title":"Type","default":"StaticStringNode"},"output_string":{"type":"string","title":"Output String"}},"type":"object","required":["output_string"],"title":"StaticStringNodeCreate"},"StaticStringReplaceNodeCreate":{"properties":{"type":{"type":"string","const":"StaticStringReplaceNode","title":"Type","default":"StaticStringReplaceNode"},"required_keys":{"items":{"type":"string"},"type":"array","title":"Required Keys","default":["input_string"]},"format_string":{"type":"string","title":"Format String"}},"type":"object","required":["format_string"],"title":"StaticStringReplaceNodeCreate"},"StringCutFirstLineKeywordEdgeCreate":{"properties":{"type":{"type":"string","const":"StringCutFirstLineKeywordEdge","title":"Type","default":"StringCutFirstLineKeywordEdge"},"source":{"type":"integer","title":"Source"},"destination":{"type":"integer","title":"Destination"},"keyword":{"type":"string","title":"Keyword"}},"type":"object","required":["source","destination","keyword"],"title":"StringCutFirstLineKeywordEdgeCreate"},"StringCuttingByKeywordEdgeCreate":{"properties":{"type":{"type":"string","const":"StringCuttingByKeywordEdge","title":"Type","default":"StringCuttingByKeywordEdge"},"source":{"type":"integer","title":"Source"},"destination":{"type":"integer","title":"Destination"},"keyword":{"type":"string","title":"Keyword"}},"type":"object","required":["source","destination","keyword"],"title":"StringCuttingByKeywordEdgeCreate"},"SystemPushBackMessageNodeCreate":{"properties":{"type":{"type":"string","const":"SystemPushBackMessageNode","title":"Type","default":"SystemPushBackMessageNode"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"SystemPushBackMessageNodeCreate"},"SystemPushBackNodeCreate":{"properties":{"type":{"type":"string","const":"SystemPushBackNode","title":"Type","default":"SystemPushBackNode"}},"type":"object","title":"SystemPushBackNodeCreate"},"TokenCheckNodeCreate":{"properties":{"type":{"type":"string","const":"TokenCheckNode","title":"Type","default":"TokenCheckNode"}},"type":"object","title":"TokenCheckNodeCreate"},"Tool":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"public":{"type":"boolean","title":"Public","default":false},"llm_selection_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Selection String"},"id":{"type":"string","title":"Id"},"sub":{"type":"string","format":"uuid","title":"Sub"},"tool_type":{"type":"string","title":"Tool Type"}},"type":"object","required":["name","id","sub","tool_type"],"title":"Tool","examples":[{"description":"Provides information about screwdrivers","id":"tl_1EbVewEDVUf0oyAxzsi6LW","llm_selection_string":"Select this tool if you want to know more about screwdrivers","name":"Screwdriver Tool","public":false,"sub":"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11","tool_type":"INSIGHT"}]},"ToolCodeInterpreter":{"properties":{"tool_type":{"type":"string","const":"CODE_INTERPRETER","title":"Tool Type"}},"type":"object","required":["tool_type"],"title":"ToolCodeInterpreter","examples":[{"tool_type":"CODE_INTERPRETER"}]},"ToolCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"public":{"type":"boolean","title":"Public","default":false},"llm_selection_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Selection String"},"tool_data":{"oneOf":[{"$ref":"#/components/schemas/ToolInsight"},{"$ref":"#/components/schemas/ToolCodeInterpreter"}],"title":"Tool Data","discriminator":{"propertyName":"tool_type","mapping":{"CODE_INTERPRETER":"#/components/schemas/ToolCodeInterpreter","INSIGHT":"#/components/schemas/ToolInsight"}}}},"additionalProperties":false,"type":"object","required":["name","tool_data"],"title":"ToolCreate","examples":[{"description":"Provides information about screwdrivers","llm_selection_string":"Select this tool if you want to know more about screwdrivers","name":"Screwdriver Tool","public":false,"tool_data":{"insight_id":"ins_1EbVewEDVUf0oyAxzsi6LW","tool_type":"INSIGHT"}}]},"ToolInsight":{"properties":{"tool_type":{"type":"string","const":"INSIGHT","title":"Tool Type"},"insight_id":{"type":"string","title":"Insight Id"}},"type":"object","required":["tool_type","insight_id"],"title":"ToolInsight","examples":[{"insight_id":"ins_1EbVewEDVUf0oyAxzsi6LW","tool_type":"INSIGHT"}]},"ToolUpdate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"public":{"type":"boolean","title":"Public","default":false},"llm_selection_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Selection String"}},"additionalProperties":false,"type":"object","required":["name"],"title":"ToolUpdate","examples":[{"description":"Updated Provides information about screwdrivers","llm_selection_string":"Select this tool if you want to know more about screwdrivers","name":"Screwdriver Tool Updated","public":true}]},"UserPushBackMessageNodeCreate":{"properties":{"type":{"type":"string","const":"UserPushBackMessageNode","title":"Type","default":"UserPushBackMessageNode"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"UserPushBackMessageNodeCreate"},"UserPushBackNodeCreate":{"properties":{"type":{"type":"string","const":"UserPushBackNode","title":"Type","default":"UserPushBackNode"}},"type":"object","title":"UserPushBackNodeCreate"},"UserPushBackToConsiderdNodeCreate":{"properties":{"type":{"type":"string","const":"UserPushBackToConsiderdNode","title":"Type","default":"UserPushBackToConsiderdNode"}},"type":"object","title":"UserPushBackToConsiderdNodeCreate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WebDownloadNodeCreate":{"properties":{"type":{"type":"string","const":"WebDownloadNode","title":"Type","default":"WebDownloadNode"},"max_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pages","default":20},"min_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Pages","default":5},"timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout","default":10},"max_retries":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Retries","default":3},"download_subpages":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Download Subpages","default":true}},"type":"object","title":"WebDownloadNodeCreate"},"WebRankingNodeCreate":{"properties":{"type":{"type":"string","const":"WebRankingNode","title":"Type","default":"WebRankingNode"},"llm_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Provider","default":"mistral"},"max_urls_to_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Urls To Rank","default":10},"confidence_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Threshold","default":0.7}},"type":"object","title":"WebRankingNodeCreate"},"WebSearchNodeCreate":{"properties":{"type":{"type":"string","const":"WebSearchNode","title":"Type","default":"WebSearchNode"},"max_results":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Results","default":10},"timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout","default":10}},"type":"object","title":"WebSearchNodeCreate"},"WebsiteData":{"properties":{"source_type":{"type":"string","const":"WEBSITE","title":"Source Type"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keywords"}},"type":"object","required":["source_type","url"],"title":"WebsiteData"},"WriteSingleValueOfStateNodeCreate":{"properties":{"type":{"type":"string","const":"WriteSingleValueOfStateNode","title":"Type","default":"WriteSingleValueOfStateNode"},"key":{"type":"string","title":"Key","default":""},"value":{"title":"Value"},"name":{"type":"string","title":"Name","default":"WriteSingleValueOfStateNode"}},"type":"object","title":"WriteSingleValueOfStateNodeCreate"},"WrittenInputRequiredChatNodeCreate":{"properties":{"type":{"type":"string","const":"WrittenInputRequiredChatNode","title":"Type","default":"WrittenInputRequiredChatNode"}},"type":"object","title":"WrittenInputRequiredChatNodeCreate"},"WrittenInputRequriedNodeCreate":{"properties":{"type":{"type":"string","const":"WrittenInputRequiredNode","title":"Type","default":"WrittenInputRequiredNode"}},"type":"object","title":"WrittenInputRequriedNodeCreate"}},"securitySchemes":{"OpenIdConnect":{"type":"openIdConnect","openIdConnectUrl":"https://auth.okns.de/realms/overfit-products/.well-known/openid-configuration"},"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"tags":[{"name":"agents","description":"Manage agents. Create, update, delete, or retrieve agent details."},{"name":"agent_interaction","description":"Operations regarding interactions with agents. Includes history, chat, and query functionalities."},{"name":"insights","description":"Manage insights. Create, update, delete, or retrieve insight details."},{"name":"sources","description":"Manage sources. Create, update, delete, or retrieve source details. Sources can only be created in the context of an insight."},{"name":"tools","description":"Manage tools. Create, update, delete, or retrieve tool details. Tools are used to create agents."},{"name":"questions","description":"Interaction with the question answering system. Includes question answering and question generation functionalities."},{"name":"graphs","description":"Operations regarding graph configurations. Includes graph start, graph interaction, and graph configuration functionalities."},{"name":"graph_configs","description":"Operations regarding graph configurations. Configs are the /run/ of a graph, they contain the state of the graph and the history of the graph."},{"name":"aithra","description":"Operations regarding the Aithra graphs (get,create). They still occure on graph operations but non-aithra graphs dont appear on this operations. "},{"name":"feedback","description":"Operations regarding feedback. Create, delete, or retrieve feedback details."},{"name":"pinncalc","description":"Operations regarding feedback. Create, delete, or retrieve feedback details."}]}