C3 AI Documentation Home

Configure Dynamic Agent

Dynamic Agent configuration defines how an agent operates—shaping its behavior, data processing, memory management, and user interactions. These settings let you tune response quality, speed, resource usage, and conversation flow.

By understanding these parameters, you can align the agent to your needs—for instance, you may prioritize speed for customer service, depth for research, or balance for general business use.

Access and update agent configuration

To configure Dynamic Agent settings:

  1. Navigate to Settings > Configurations.
  2. Under Configurations, select Genai.Agent.Dynamic.Config.
  3. Select either CanvasAgent_deep_research or CanvasAgent_default based on which agent you want to configure.
  4. Select Edit to modify the parameters.
  5. After making changes, select Save. A restart banner will appear - select Restart to apply your configuration changes.

The parameters you can configure are described in the following sections.

Learn more about roles in Gen AI User Roles and Permissions

Configuration parameters

The following table describes each configuration parameter, its default value, and when you should adjust it:

ParameterDefault valueDescriptionWhen to adjust
nameVaries by agent (for example, CanvasAgent_default or CanvasAgent_deep_research)The identifier for your agent configuration. This name references this specific agent configuration.Always customize this when creating specialized agents for different departments or use cases. Use descriptive names like "FinancialAnalysisAgent" or "CustomerSupportAgent".
llmConfigName"gpt_4o"Specifies which large language model configuration to use. Each model provides different capabilities, costs, and performance characteristics.Select based on: High accuracy needs (GPT-4), Cost optimization (smaller models), Specialized domains (fine-tuned models). See Configure and Use Large Language Models.
toolkit"canvas_agent_default_toolkit"Defines which tools and capabilities the agent can access during conversations. This setting controls what actions your agent can perform. Examples: canvas_agent_default_toolkit (Canvas Agent), canvas_agent_deep_research_toolkit (Deep Research Agent).Change when you need different capabilities than the default toolkit provides. See Creating Agents and Toolkits and Creating Custom Tools.
maxSteps7Controls the maximum number of reasoning steps the agent can take to solve a problem. Higher values let your agent solve complex problems but require more processing time.Research/analysis (10-15), Customer support (5-7), Data exploration (8-12).
maxSeconds180Sets the maximum time limit for agent responses in seconds. This setting prevents runaway processes while ensuring adequate time for operations.Real-time apps (30-60), Batch processing (300-600), Interactive dashboards (90-120).
numFewShots3Determines how many example interactions the agent uses for context learning. Additional examples enhance response quality but use more system resources.Specialized domains (5-8), Memory-constrained (1-2), General purpose (3-4).
verbosity2Controls the detail level in agent responses and logging. Higher values give you more detailed responses and debugging information.Development/debugging (3-4), Production (1-2), Troubleshooting (increase temporarily).

Chat manager configuration

Chat manager settings control how the agent handles conversations and maintains context across interactions.

ParameterDefault valueDescriptionWhen to adjust
systemPromptdefault templateDefines the agent's role, personality, and base instructions. This prompt shapes how agent interprets requests and formulates responses.Specialized roles (industry-specific), tone/style (formal vs casual), domain expertise (relevant context). See Dynamic Agent System Prompts.
maxPreviousSteps10Limits conversation history the agent considers for context. This setting controls how much previous conversation the agent remembers.Long conversations (increase to 15-20), Quick interactions (reduce to 5-7), Memory optimization (reduce to 3-5).

Memory and session management

Memory and session settings control how the agent manages user sessions and allocates system resources.

ParameterDefault valueDescriptionWhen to adjust
maxNumberSessions25Sets the maximum number of concurrent user sessions the agent can maintain. Higher values let you support more users but require more memory.High-traffic applications (50-100), low-traffic (10-15), enterprise scale (100+).
maxTotalMemoryMB512Limits total memory usage for session storage in megabytes. This setting prevents memory overflow while providing adequate space for conversation history.Memory-limited environments (256-384), long conversations (1024+), quick interactions (256).

Data formatting configuration

Data formatting settings control how much data the agent can see and process from tool outputs. When tools return large datasets, these limits determine what portion of the data gets passed to the language model for analysis. The full data remains available to the system, but the agent only sees the truncated portion within these limits.

Data TypeParameterDefault valueDescriptionWhen to adjust
PandasTablemax_rows100Maximum table rows displayedFinancial reporting (150+), quick scanning (50), data exploration (200+)
PandasTablemax_cols100Maximum table columns displayedComprehensive metrics (150+), simple views (50), wide datasets (200+)
PandasTablemax_colwidth200Maximum column width in charactersText analysis (500+), numeric data (100), content review (300+)
PandasTableshow_dimensionstrueWhether to show table dimensionsKeep true for data understanding
TextPassagemax_length1000Maximum text content lengthdocument analysis (3000+), quick summaries (300-500), content generation (2000+)
NumpyArraymax_length1000Maximum array elements displayedStatistical analysis (5000+), quick exploration (200-500), scientific computing (2000+)
PILImagemax_length1000Image processing size limitHigh-quality analysis (2000+), Web content (500), medical imaging (3000+)
PythonNativemax_length1000Python object display limitcode analysis (2000+), high-level overviews (500), debugging (1500+)
MatplotlibFiguremax_length1000Chart data point limitDetailed analysis (2000-5000), Quick previews (500), time series (3000+)
PlotlyFiguremax_length1000Interactive visualization complexity limitComplex analysis (2000+), simple charts (500), multi-dimensional (2000+)

Learn more about agent configurations in notebook:/genai/genAiBase/tutorials/dynamic_agent/DynamicAgent-01-Agent-Configuration.ipynb

See also

Was this page helpful?