plexus.cli.procedure.model_config_examples module

Model Configuration Examples for SOP Agent

This file provides examples of how to configure the SOP agent for different models (GPT-4, GPT-5, etc.) and demonstrates the flexibility of the new model-agnostic configuration system.

Usage patterns: 1. Use predefined configurations for common scenarios 2. Create custom configurations from dictionaries/YAML 3. Set environment variables for runtime configuration 4. Mix and match parameters for different use cases

plexus.cli.procedure.model_config_examples.demonstrate_usage()

Demonstrate different ways to use the model configuration system.

plexus.cli.procedure.model_config_examples.get_gpt4_experimentation_config() Dict[str, Any]

Configuration for GPT-4 with standard experimentation parameters.

plexus.cli.procedure.model_config_examples.get_gpt4_precise_analysis_config() Dict[str, Any]

Configuration for GPT-4 with precise analysis parameters.

plexus.cli.procedure.model_config_examples.get_gpt5_default_config() Dict[str, Any]

Configuration for GPT-5 with new reasoning parameters.

plexus.cli.procedure.model_config_examples.get_gpt5_fast_config() Dict[str, Any]

Configuration for GPT-5 optimized for speed.

plexus.cli.procedure.model_config_examples.get_gpt5_high_reasoning_config() Dict[str, Any]

Configuration for GPT-5 with high reasoning effort.

plexus.cli.procedure.model_config_examples.get_manager_agent_config(base_model: str = 'gpt-4o') Dict[str, Any]

Configuration optimized for SOP manager agent (precise guidance).

plexus.cli.procedure.model_config_examples.get_o3_default_config() Dict[str, Any]

Configuration for O3 model (example of future model support).

plexus.cli.procedure.model_config_examples.get_summarization_config(base_model: str = 'gpt-4o') Dict[str, Any]

Configuration optimized for summarization tasks.

plexus.cli.procedure.model_config_examples.get_worker_agent_config(base_model: str = 'gpt-4o') Dict[str, Any]

Configuration optimized for worker agent (creative problem solving).

plexus.cli.procedure.model_config_examples.migrate_from_hardcoded_gpt4()

Helper to migrate from hardcoded GPT-4 usage to configurable system.

async plexus.cli.procedure.model_config_examples.run_experiment_with_gpt4()

Example: Run procedure with GPT-4 configuration.

async plexus.cli.procedure.model_config_examples.run_experiment_with_gpt5()

Example: Run procedure with GPT-5 configuration.

plexus.cli.procedure.model_config_examples.setup_custom_environment(model_name: str, **params)

Set up environment variables for any model with custom parameters.

plexus.cli.procedure.model_config_examples.setup_gpt4_environment()

Set environment variables for GPT-4 configuration.

plexus.cli.procedure.model_config_examples.setup_gpt5_environment()

Set environment variables for GPT-5 configuration.

plexus.cli.procedure.model_config_examples.switch_models_dynamically()

Example: Switch between models dynamically based on task complexity.

plexus.cli.procedure.model_config_examples.validate_model_compatibility(model_name: str, parameters: Dict[str, Any]) bool

Example function to validate model/parameter compatibility.

Note: The actual implementation leaves this validation to the OpenAI API to avoid hardcoding model-specific logic, but this shows how you could add validation if needed.