@@ -196,6 +196,7 @@ class HostedMCPServersConfigModel(BaseModel):
196196 # configures the filesystem edit server to use the client-side storage (using the magic hostname of "workspace")
197197 roots = [MCPClientRoot (name = "root" , uri = "file://workspace/" )],
198198 prompts_to_auto_include = ["instructions" ],
199+ enabled = False ,
199200 )
200201
201202 @property
@@ -507,182 +508,6 @@ class AssistantConfigModel(BaseModel):
507508# endregion
508509
509510
510- # region: Document Assistant Default Configuration
511-
512-
513- class DocumentHostedMCPServersConfigModel (HostedMCPServersConfigModel ):
514- pass
515-
516-
517- class DocumentAdvancedToolConfigModel (AdvancedToolConfigModel ):
518- max_steps : Annotated [
519- int ,
520- Field (
521- title = "Maximum Steps" ,
522- description = "The maximum number of steps to take when using tools, to avoid infinite loops." ,
523- ),
524- ] = 15
525-
526- additional_instructions : Annotated [
527- str ,
528- Field (
529- title = "Tools Instructions" ,
530- description = dedent ("""
531- General instructions for using tools. No need to include a list of tools or instruction
532- on how to use them in general, that will be handled automatically. Instead, use this
533- space to provide any additional instructions for using specific tools, such folders to
534- exclude in file searches, or instruction to always re-read a file before using it.
535- """ ).strip (),
536- ),
537- UISchema (widget = "textarea" , enable_markdown_in_description = True ),
538- ] = ""
539-
540-
541- class DocumentMCPToolsConfigModel (MCPToolsConfigModel ):
542- enabled : Annotated [
543- bool ,
544- Field (title = "Enable experimental use of tools" ),
545- ] = True
546-
547- hosted_mcp_servers : Annotated [
548- HostedMCPServersConfigModel ,
549- Field (
550- title = "Hosted MCP Servers" ,
551- description = "Configuration for hosted MCP servers that provide tools to the assistant." ,
552- default = DocumentHostedMCPServersConfigModel (),
553- ),
554- UISchema (collapsed = False , items = UISchema (title_fields = ["key" , "enabled" ])),
555- ] = DocumentHostedMCPServersConfigModel ()
556-
557- personal_mcp_servers : Annotated [
558- list [MCPServerConfig ],
559- Field (
560- title = "Personal MCP Servers" ,
561- description = "Configuration for personal MCP servers that provide tools to the assistant." ,
562- default = [],
563- ),
564- UISchema (items = UISchema (collapsible = False , hide_title = True , title_fields = ["key" , "enabled" ])),
565- ] = []
566-
567- advanced : Annotated [
568- AdvancedToolConfigModel ,
569- Field (
570- title = "Advanced Tool Settings" ,
571- ),
572- ] = DocumentAdvancedToolConfigModel ()
573-
574-
575- class DocumentExtensionsConfigModel (ExtensionsConfigModel ):
576- attachments : Annotated [
577- AttachmentsConfigModel ,
578- Field (
579- title = "Attachments Extension" ,
580- description = "Configuration for the attachments extension." ,
581- ),
582- ] = AttachmentsConfigModel (
583- context_description = dedent ("""
584- These attachments were provided for additional context to accompany the
585- conversation. Consider any rationale provided for why they were included.
586- Always reference them factually and accurately in your responses.
587- """ ).strip (),
588- preferred_message_role = "system" ,
589- )
590-
591-
592- class DocumentPromptsConfigModel (PromptsConfigModel ):
593- instruction_prompt : Annotated [
594- str ,
595- Field (
596- title = "Instruction Prompt" ,
597- description = dedent ("""
598- The prompt used to instruct the behavior and capabilities of the AI assistant and any preferences.
599- """ ).strip (),
600- ),
601- UISchema (widget = "textarea" ),
602- ] = helpers .load_text_include ("instruction_prompt_workspace.txt" )
603-
604- guidance_prompt : Annotated [
605- str ,
606- Field (
607- title = "Guidance Prompt" ,
608- description = dedent ("""
609- The prompt used to provide a structured set of instructions to carry out a specific workflow
610- from start to finish. It should outline a clear, step-by-step process for gathering necessary
611- context, breaking down the objective into manageable components, executing the defined steps,
612- and validating the results.
613- """ ).strip (),
614- ),
615- UISchema (widget = "textarea" ),
616- ] = helpers .load_text_include ("guidance_prompt_workspace.txt" )
617-
618- guardrails_prompt : Annotated [
619- str ,
620- Field (
621- title = "Guardrails Prompt" ,
622- description = (
623- "The prompt used to inform the AI assistant about the guardrails to follow. Default value based upon"
624- " recommendations from: [Microsoft OpenAI Service: System message templates]"
625- "(https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/system-message"
626- "#define-additional-safety-and-behavioral-guardrails)"
627- ),
628- ),
629- UISchema (widget = "textarea" , enable_markdown_in_description = True ),
630- ] = helpers .load_text_include ("guardrails_prompt_workspace.txt" )
631-
632-
633- class DocumentResponseBehaviorConfigModel (ResponseBehaviorConfigModel ):
634- welcome_message : Annotated [
635- str ,
636- Field (
637- title = "Welcome Message" ,
638- description = "The message to display when the conversation starts." ,
639- ),
640- UISchema (widget = "textarea" ),
641- ] = dedent ("""
642- Welcome to your new document assistant! Here are ideas for how to get started:
643- - ⚙️ Tell me what you are working on, such as *I'm working on creating a new budget process*
644- - 🗃️ Upload files you are working with and I'll take it from there
645- - 📝 I can make you an initial draft like *Write a proposal for new project management software in our department*
646- - 🧪 Ask me to conduct research for example, *Find me the latest competitors in the wearables market*
647- """ ).strip ()
648-
649-
650- class DocumentAssistantConfigModel (AssistantConfigModel ):
651- tools : Annotated [
652- MCPToolsConfigModel ,
653- Field (
654- title = "Tools" ,
655- ),
656- UISchema (collapsed = False , items = UISchema (schema = {"hosted_mcp_servers" : {"ui:options" : {"collapsed" : False }}})),
657- ] = DocumentMCPToolsConfigModel ()
658-
659- extensions_config : Annotated [
660- ExtensionsConfigModel ,
661- Field (
662- title = "Assistant Extensions" ,
663- ),
664- ] = DocumentExtensionsConfigModel ()
665-
666- prompts : Annotated [
667- PromptsConfigModel ,
668- Field (
669- title = "Prompts" ,
670- description = "Configuration for various prompts used by the assistant." ,
671- ),
672- ] = DocumentPromptsConfigModel ()
673-
674- response_behavior : Annotated [
675- ResponseBehaviorConfigModel ,
676- Field (
677- title = "Response Behavior" ,
678- description = "Configuration for the response behavior of the assistant." ,
679- ),
680- ] = DocumentResponseBehaviorConfigModel ()
681-
682-
683- # endregion
684-
685-
686511# region: Context Transfer Assistant Configuration
687512
688513
@@ -758,7 +583,7 @@ class ContextTransferPromptsConfigModel(PromptsConfigModel):
758583 description = "The prompt used to inform the AI assistant about the guardrails to follow." ,
759584 ),
760585 UISchema (widget = "textarea" ),
761- ] = helpers .load_text_include ("guardrails_prompt_workspace .txt" )
586+ ] = helpers .load_text_include ("guardrails_prompt .txt" )
762587
763588
764589class ContextTransferResponseBehaviorConfigModel (ResponseBehaviorConfigModel ):
0 commit comments