/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { GreetingMethodEnum } from './GreetingMethodEnum'; import type { PhiActionEnum } from './PhiActionEnum'; import type { PrivacyActionEnum } from './PrivacyActionEnum'; import type { StarterPromptsB04Enum } from './StarterPromptsB04Enum'; import type { VoiceProviderEefEnum } from './VoiceProviderEefEnum'; export type PatchedMentorCreate = { name?: string; unique_id?: string; /** * The langflow json for the mentor */ flow?: any; slug?: string; platform?: string; allow_anonymous?: boolean; /** * Allow this mentor to be used offline with local LLMs */ enable_offline_mode?: boolean; metadata?: any; enable_moderation?: boolean; enable_multi_query_rag?: boolean; /** * Enable prompt caching for Anthropic models to reduce latency and cost. This disabled RAG and other dynamic parts of system prompt such as memory, current datetime, etc. Use with caution */ enable_prompt_caching?: boolean; enable_post_processing_system?: boolean; /** * (Deprecated) Set template mentor to openai-agent instead. */ enable_openai_assistant?: boolean; /** * Whether to force mentor to only use information within the provided documents. */ enable_total_grounding?: boolean; /** * Whether to show suggested prompts for the mentor or not. Note: Suggested prompts are created by tenant admins. */ enable_suggested_prompts?: boolean; /** * Whether to show suggested prompts for the mentor or not. Note: Guided prompts are created with an llm based on chat history. */ enable_guided_prompts?: boolean; save_flagged_prompts?: boolean; google_voice?: number | null; openai_voice?: number | null; /** * Voice used when voice_provider is 'iblai'. Leave empty to use the tenant's configured default voice. */ iblai_voice?: number | null; /** * TTS provider used when synthesizing chat messages from this mentor. Selects which of the *_voice fields applies. `iblai` synthesizes through our own gateway with the model configured on the tenant's ibl.ai routing profile, and uses iblai_voice — except when that model is an OpenAI one, which takes openai_voice. * * * `browser` - Browser * * `openai` - OpenAI * * `google` - Google * * `iblai` - ibl.ai */ voice_provider?: VoiceProviderEefEnum; /** * Instructions to determine how prompt suggestions are generated. */ guided_prompt_instructions?: string; categories?: Array; types?: Array; subjects?: Array; /** * Prompt template used to start a conversation with the user when greeting_type is proactive_prompt. This will be sent to the LLM so it can respond naturally */ proactive_prompt?: string; /** * Prompt to be used to guide the user through their studies when study mode tool is enabled. */ study_mode_prompt?: string; /** * Disclaimer to be shown to the user when the mentor is used. */ disclaimer?: string; enable_disclaimer?: boolean; /** * Show attachments on mentor. */ show_attachment?: boolean; /** * Show voice call button on mentor. */ show_voice_call?: boolean; /** * Show voice recording button on mentor. */ show_voice_record?: boolean; /** * Show RAG images in mentor response. */ show_rag_images?: boolean; /** * Show catalogue on mentor. */ show_catalogue?: boolean; /** * Show reasoning on mentor. */ show_reasoning?: boolean; /** * Type of starter prompts to show: guided_prompt or suggested_prompt. * * * `guided_prompt` - Guided Prompt * * `suggested_prompt` - Suggested Prompt */ starter_prompts?: StarterPromptsB04Enum; /** * Allow embedded mentor to read content on the embedded web page. */ embed_is_context_aware?: boolean; /** * Open mentor embed iframe by default. */ embed_open_by_default?: boolean; /** * Show attachments on embedded mentor. */ embed_show_attachment?: boolean; /** * Show voice call button on embedded mentor. */ embed_show_voice_call?: boolean; /** * Show voice recording button on embedded mentor. */ embed_show_voice_record?: boolean; /** * Show display canvas on embedded mentor. */ embed_show_canvas?: boolean; /** * Show explore mentors option. */ show_explore_mentors?: boolean; /** * Stores embedded icon selection data for the mentor widget. */ embed_icon_selection_data?: any; /** * Placeholder to be shown in the input text area when the mentor is used. */ placeholder_prompt?: string; /** * The prompt for the moderation system. This prompt must clearly distinguish between 'Approapriate' and 'Not Appropriate' queries. */ moderation_system_prompt?: string; /** * Prompt to be used to alter or modify final llm response into any desired form. */ post_processing_prompt?: string; /** * Desired feedback to return to the user when their prompt is deemed inappropriate. */ moderation_response?: string; /** * Prompt to check whether the models response is appropriate or not. */ safety_system_prompt?: string; /** * Feedback given to the user when a model generates an inappropriate response */ safety_response?: string; disable_chathistory?: boolean; /** * Per-mentor toggle for stripping HTML markup from `payload.page_content` before it is envelope-wrapped and cached for the LLM. Defaults to False (raw HTML reaches the prompt). Set to True to strip markup, e.g. when pages embed inline JSON/CSS in script/style tags that bloats the context window. Nullable so the add-column migration is a no-op for existing rows during a rolling multi-server deploy; a NULL value is treated as False at read time. */ strip_page_content_html?: boolean | null; enable_safety_system?: boolean; /** * Master switch: enable input filtering before messages reach the LLM. Which categories run is controlled by filter_pii / filter_phi. */ enable_privacy_router?: boolean; /** * When the privacy router is enabled, apply PII detection/filtering (uses privacy_action / privacy_entities). */ filter_pii?: boolean; /** * Action to take when PII is detected: redact replaces with labels, mask partially hides, block rejects the message, allow passes the message through unchanged while still logging the detection * * * `redact` - Redact * * `mask` - Mask * * `block` - Block * * `allow` - Allow */ privacy_action?: PrivacyActionEnum; /** * List of PII entity types to detect. Empty list uses defaults (PERSON, EMAIL, PHONE, SSN, etc.) */ privacy_entities?: any; /** * Response shown to user when a message is blocked due to PII detection */ privacy_response?: string; /** * Master switch: also filter LLM responses (output rail). Which categories run is controlled by filter_pii / filter_phi. */ enable_privacy_output_filter?: boolean; /** * When the privacy router is enabled, apply PHI detection/filtering (uses phi_action / phi_entities). */ filter_phi?: boolean; /** * Action to take when PHI is detected: redact replaces with labels, mask partially hides, block rejects the message, allow passes the message through unchanged while still logging the detection * * * `redact` - Redact * * `mask` - Mask * * `block` - Block * * `allow` - Allow */ phi_action?: PhiActionEnum; /** * List of PHI entity types to detect. Empty list detects all supported clinical and identifier entities. */ phi_entities?: any; /** * Response shown to user when a message is blocked due to PHI detection */ phi_response?: string; /** * Response to start a conversation with a user. */ proactive_response?: string; mcp_servers?: Array; /** * How the mentor should greet the user. proactive_prompt: Allow the LLM to respond to proactive_prompt msg. proactive_response: use proactive_response template without performing an LLM call. * * * `proactive_prompt` - Proactive Prompt * * `proactive_response` - Proactive Response */ greeting_method?: GreetingMethodEnum; /** * edX user ID */ last_accessed_by?: number | null; recently_accessed_at?: string | null; created_by?: string | null; readonly created_at?: string | null; readonly updated_at?: string | null; /** * Per-mentor toggle for the sandboxed quickjs code-interpreter middleware on the graph agent. Off by default: the middleware runs an in-process JS REPL that adds latency and system-resource overhead, so it is only enabled for mentors that specifically need computational tool use. Even when True, the middleware is only attached if the mentor's chosen LLM supports function calling; it is never attached for the fake graph mentors used in tests/healthchecks. Nullable so the add-column migration is a no-op for existing rows during a rolling multi-server deploy; a NULL value is treated as False at read time. */ enable_computational_runtime?: boolean | null; };