Skip to content

AI Agent Python

Platform Users — Engineers & Low-code Ops Users (ORA / Panel Builder) OR Platform ORA — AI Planning Interface Agent Workflows Plan Visualisation ADK Integration SDK UI — Frontend Shell FDK Architecture Low code Config-driven DDK Schema Definition Code Generator Generated Server MDK WEM DAL Experiment Manager Nexus Deployment Control Live Monitoring Registry Browser SCDK Source Control Pipeline Mgmt Azure DevOps deploys ↓ SDK API — GraphQL Federation Gateway Federation Gateway Component Resolvers Auth & Licensing Plugins: gql-autogeneration Migrator Helm KinD Boilerplate GenAI ··· Microservices — Domain IP Services Data Pipeline Core Platform Metrics & Analytics Spatial & Geo Simulation Event Detection Camera & Device Fire & Resource Opt. Satellite Modelling ↓ Nexus deploys Deployed OR Applications Rail Ops Dashboard Mine Mgmt Dashboard Port Ops Dashboard ··· FDK-built · DDK-backed · MDK-powered · deployed via Nexus ↑ Application Users — Operations Teams (shift managers, analysts, planners)

Overview

The AI Agent Python model provides autonomous agent capabilities for intelligent decision-making, task automation, and complex multi-step workflows. It integrates with multiple LLM providers and supports advanced capabilities like web search, document retrieval, code execution, and interaction with external systems through structured tool use.

This model is designed for teams building intelligent automation, decision support systems, and autonomous workflows that require natural language understanding and reasoning.

Key Capabilities

LLM-Powered Reasoning

  • Multi-Provider Support — Connect to various LLM providers for flexibility and redundancy
  • Prompt Engineering — Structured prompts for consistent, reliable outputs
  • Response Validation — Schema validation to ensure outputs match expected formats
  • Context Management — Handle long conversations and multi-turn interactions

Autonomous Task Execution

  • Planning Agents — Break complex goals into executable steps
  • Multi-Stage Workflows — Execute sequences of dependent tasks
  • Tool Use — Leverage external tools and APIs to complete tasks
  • Error Recovery — Handle failures gracefully and retry with different approaches

Web & Data Integration

  • Web Search — Find and retrieve information from the internet
  • Web Scraping — Extract structured data from websites
  • Document Retrieval (RAG) — Search and retrieve relevant information from document collections
  • API Integration — Call external APIs and process responses

Code & Data Operations

  • GraphQL Queries — Execute queries against data systems
  • Data Processing — Transform and analyze data programmatically
  • File Operations — Read, write, and process files
  • Database Interactions — Query and update databases through structured interfaces

Use Cases

Intelligent Report Generation

Scenario: A business analyst needs to generate weekly reports that aggregate data from multiple sources and summarize trends.

Workflow:

  1. Agent receives report request with parameters
  2. Queries relevant data systems (GraphQL, databases)
  3. Searches web for market context and trends
  4. Analyzes data and identifies key insights
  5. Generates structured report with findings

Value: Automate time-consuming report creation while maintaining quality and consistency.

Automated Research & Summarization

Scenario: A research team needs to stay current with developments in their field by monitoring publications, news, and industry updates.

Workflow:

  1. Agent receives research topics and sources
  2. Searches web and document repositories
  3. Retrieves and reads relevant content
  4. Summarizes key findings and trends
  5. Highlights novel developments or changes

Value: Keep teams informed without manual monitoring and reading.

Decision Support Systems

Scenario: An operations manager needs recommendations for handling an unexpected situation based on historical data and current conditions.

Workflow:

  1. Agent receives situation description and context
  2. Retrieves similar historical incidents
  3. Queries current system state and constraints
  4. Analyzes options and tradeoffs
  5. Provides ranked recommendations with rationale

Value: Make faster, better-informed decisions under time pressure.

Workflow Automation

Scenario: A routine business process involves multiple steps across different systems that currently require manual coordination.

Workflow:

  1. Agent receives process trigger and parameters
  2. Plans execution sequence based on dependencies
  3. Executes steps (data retrieval, API calls, updates)
  4. Handles errors and retries automatically
  5. Reports completion status and results

Value: Reduce manual effort and errors in repetitive processes.

Model Inputs

The AI Agent Python model accepts:

  • Task Description — Natural language description of what to accomplish
  • System Prompts — Instructions that guide agent behavior and constraints
  • Tool Specifications — Available tools and how to use them
  • Context Data — Relevant background information or examples
  • Configuration — Model selection, temperature, max tokens, etc.

Model Outputs

The model produces:

  • Task Results — Structured outputs matching the requested task
  • Reasoning Traces — Explanation of how the agent approached the problem
  • Tool Usage Logs — Record of which tools were called and why
  • Confidence Scores — Indicators of result reliability
  • Error Reports — Detailed information about any failures

Agent Types

Single-Task Agents

Execute a specific task with given inputs:

  • LLM Call — Direct language model invocation for text generation
  • Classification — Categorize inputs into predefined classes
  • Extraction — Pull structured data from unstructured text
  • Translation — Convert text between formats or languages

Best For: Well-defined, single-step tasks with clear inputs and outputs

Planning Agents

Break down complex goals into steps and execute them:

  • Multi-Stage Planning — Decompose goals into sub-tasks
  • Dynamic Planning — Adjust plans based on intermediate results
  • Dependency Management — Execute tasks in correct order
  • Progress Tracking — Monitor completion and handle failures

Best For: Complex tasks requiring multiple steps and decision points

Search & Retrieval Agents

Find and gather information from various sources:

  • Web Search — Query search engines and synthesize results
  • Document Search — Retrieve relevant passages from document collections
  • API Querying — Fetch data from external services
  • Data Aggregation — Combine information from multiple sources

Best For: Tasks requiring external information or knowledge retrieval

Code Execution Agents

Write and execute code to solve problems:

  • Data Analysis — Generate and run analysis scripts
  • Transformations — Write code to transform data structures
  • Calculations — Perform complex computations programmatically
  • Automation Scripts — Generate scripts for repetitive tasks

Best For: Tasks requiring computation, data transformation, or procedural logic

Configuration Options

Key parameters you can configure:

  • Model Selection — Choose which LLM to use
  • Temperature — Control randomness in outputs (0 = deterministic, 1 = creative)
  • Max Tokens — Limit output length
  • System Prompt — Set agent behavior and constraints
  • Tool Access — Which tools the agent can use
  • Timeout Settings — Maximum execution time
  • Validation Schema — Expected output structure

Tool Ecosystem

The agent can access various tools to extend its capabilities:

Information Retrieval

  • Web search engines
  • Document databases
  • Knowledge bases
  • File systems

Data Operations

  • GraphQL queries
  • Database queries
  • Data transformations
  • Statistical analysis

External Systems

  • REST APIs
  • Webhooks
  • Messaging systems
  • Cloud services

Content Generation

  • Document creation
  • Report formatting
  • Visualization generation
  • Code synthesis

Integration with Other Models

The AI Agent Python model works well with:

  • Data Loader — Prepare data for agent processing
  • Stats Models — Combine AI reasoning with statistical analysis
  • MCP Server — Access extended platform capabilities
  • Any Model — Agents can orchestrate calls to other models in workflows

Best Practices

Prompt Engineering

  1. Be Specific — Clear task descriptions produce better results
  2. Provide Examples — Show the agent what good outputs look like
  3. Set Constraints — Define boundaries and requirements explicitly
  4. Iterate — Refine prompts based on actual outputs

Validation & Quality Control

  1. Use Output Schemas — Define expected output structure
  2. Check Confidence — Monitor agent certainty about results
  3. Human Review — Keep humans in the loop for critical decisions
  4. Logging — Track agent reasoning for debugging and improvement

Performance Optimization

  1. Cache Results — Reuse outputs for identical inputs
  2. Batch Processing — Group similar tasks together
  3. Right-Size Models — Use simpler models for simpler tasks
  4. Timeout Management — Set appropriate limits to prevent hangs

Security & Safety

  1. Limit Tool Access — Only provide necessary capabilities
  2. Validate Inputs — Sanitize user-provided data
  3. Monitor Behavior — Watch for unexpected actions
  4. Rate Limiting — Prevent abuse through usage limits

Performance Notes

  • Model Size — Larger, more capable models are slower and more expensive
  • Task Complexity — Planning agents take longer than single-task agents
  • Tool Calls — Each external tool call adds latency
  • Token Usage — Longer contexts increase cost and processing time

Getting Started

Basic Workflow

  1. Define Task — Describe what you want the agent to accomplish
  2. Configure Agent — Select model, temperature, and available tools
  3. Add to Workflow — Drag AI Agent into workflow canvas
  4. Connect Data — Link task descriptions and input data
  5. Execute & Review — Run and evaluate agent outputs

Example: Information Gathering

[Task Request] → [AI Agent: Web Search] → [Synthesize Results]

This workflow uses an agent to search for information on a topic and produce a structured summary.

Example: Multi-Step Analysis

[Load Data] → [AI Agent: Planning] → [Process Results] → [Generate Report]

This workflow has an agent plan and execute a multi-step analysis, then format the results.

Troubleshooting

Agent Doesn't Complete Task

  • Check if task is well-defined and achievable
  • Verify agent has access to necessary tools
  • Increase timeout if task is complex
  • Review agent logs for error messages

Inconsistent Outputs

  • Lower temperature for more deterministic results
  • Add output schema validation
  • Provide more examples in prompt
  • Use more capable model

Poor Quality Results

  • Improve prompt clarity and specificity
  • Add constraints and success criteria
  • Provide domain context in system prompt
  • Try different models for comparison

Next Steps

User documentation for Optimal Reality