Dynamic Behaviors
Amigo's Dynamic Behavior system lets conversational agents manage knowledge, intuition, actions, external signals (i.e., side-effects), and data integrations. It plays a pivotal role by enabling the agent to contextually activate specific knowledge, influenced by its current memory state, to dynamically shape its reasoning and subsequent actions. Agents can respond adaptively to subtle conversational cues, combining their foundational knowledge with real-time data in one unified framework.
The Latent Space Activation Challenge
LLMs, like human experts, possess a vast latent space of concepts, relationships, and problem-solving approaches that must be properly activated to perform optimally. An LLM's effectiveness is determined not by the sheer volume of information, but by whether the right regions of this latent space are activated for the specific problem being solved.
Consider how humans work: A physician who is thinking about a patient's symptoms without relevant context (thus focusing on the wrong body system or considering unrelated conditions) will struggle to make an accurate diagnosis even if they possess all the necessary medical knowledge. What matters is not just having knowledge but activating it in the right context.
Introducing Dynamic Behaviors
Our system directly addresses these limitations through:
Optimal Latent Space Priming: Rather than relying on token-based externalization for complex reasoning, Amigo's dynamic behaviors precisely activate the most relevant regions of the model's latent space for the specific knowledge domain.
Domain-Specialized Knowledge Activation: By focusing on narrower domains, each specialized agent develops more efficient token-utilization strategies specifically tailored to that domain's knowledge patterns.
Unified Side-Effect Framework: Dynamic behaviors can trigger side-effects that execute actions in the world, modify the context graph in real-time, change exit conditions, interact with external systems, and more. These side-effects enable the agent to have impact beyond conversation alone.
A Comprehensive Action System
Dynamic behaviors represent a sophisticated action system that can:
Execute Complex Tool Calling Sequences: Trigger multi-stage tool calling workflows based on conversational context
Deep System Integration: Connect with enterprise systems to retrieve, analyze, and act on real-time data
Context Graph Modification: Completely transform the problem-solving topology by adding new states, pathways, and exit conditions
Specialized Reasoning Activation: Pause conversation flow to perform deep reflection through domain-specific lenses
Override Local Guidelines: Knock out existing state guidelines when safety or compliance issues are detected
Cross-Domain Coordination: Orchestrate seamless transitions between different specialized knowledge domains
This comprehensive framework means dynamic behaviors aren't just about retrieving knowledge—they're about fundamentally transforming how the agent operates in response to conversation context.
Here is how a typical dynamic behavior is structured and implemented:
Here is how this dynamic behavior transforms a conversation:
Without Dynamic Behavior:
With Dynamic Behavior Applied:
The dynamic behavior has significantly improved the response by:
Introducing Evidence-Based Context: Sharing research about recovery and progressive training
Personalizing the Interaction: Asking about previous exercise experience
Reframing the Goal: Shifting from extreme training to sustainable progression
Providing Actionable Alternatives: Suggesting a more balanced training approach
Supporting Agency: Asking what would work with their lifestyle
Anatomy of a Dynamic Behavior
As can be seen in the example above, all dynamic behaviors are made up of two key components:
Conversational Triggers act as the sensory system, detecting patterns and topics in conversations that indicate when specific behaviors might be relevant. These triggers can range from explicit keywords to subtle contextual cues.
Instructions serve as the action blueprint, guiding how the agent should behave once a trigger has been activated. These instructions can vary widely in their specificity, from general guidance allowing significant discretion to precise protocols demanding exact behaviors.
Multi-Dimensional Embedding System
The Amigo system uses a multi-dimensional embedding approach to evaluate and rank potential dynamic behaviors. This creates a densely connected network where dynamic behaviors are linked through reasoning patterns, conversation outputs, user inputs, tool interactions, and side-effects.
The system evaluates candidates through multiple embedding vectors that work together. The following are examples of some key vectors currently supported, with the system continuously expanding to incorporate additional vectors:
Agent Thinking Pattern Vector: The agent's internal reasoning influences which behaviors fit the concepts being discussed
Agent Output Vector: The agent's responses and actions shape which behaviors align with topics already in play
User Input Vector: The user's messages directly impact which behaviors address their needs
Tool Call Vector: Previous tool usage patterns influence which behaviors might leverage similar tools or data sources
Side-Effect Vector: Prior side-effects (like accessing external systems or modifying context graphs) affect which behaviors continue or complement these actions
This is not an exhaustive list—the embedding system is designed to be extensible, with additional vectors being incorporated as the platform evolves.
These vectors aren't processed separately or sequentially. Instead, they combine into a unified pool where behaviors are matched against multiple dimensions of the conversation at once. This means behavior selection considers the complete interaction context—including not just conversation but also system interactions and actions.
Any previously active behaviors remain in this pool with a "stickiness factor" that gradually decreases over time. This creates continuity in conversations while allowing natural transitions as topics evolve.
The system uses explicit reasoning to determine which behavior from this pool best fits the current conversation. This decision accounts for conversation history, the user's profile, and the context graph state. The result is behavior selection that emerges naturally from these combined factors rather than from rigid rules.
This approach connects behaviors through a web of reasoning, thoughts, outputs, inputs, and system interactions. When one behavior is activated, it shifts this web and influences future behavior selection. This creates a fluid conversation experience that adapts to emerging patterns while maintaining coherence.
Practical Applications: Topic Transitions and Conversation Flow
The system excels at managing natural topic transitions. For example, if a conversation shifts from nutrition to exercise, the system will appropriately adjust behavior selection without losing the thread of health-related context:
In this example, the system detects the topic bridge and selects a behavior that spans both domains, creating a natural conversation flow that maintains context across the topic shift.
Advanced Example: Implicit Health Issue Detection
The multi-dimensional embedding system can detect potential health concerns even when users don't explicitly mention them. This example demonstrates how the system identifies possible cardiac issues through subtle symptoms and contextual clues:
This example illustrates several key aspects of the multi-dimensional embedding system:
Pattern Recognition Through Agent Thinking: The agent internally recognizes the constellation of symptoms that might indicate cardiac issues, even though the user never mentioned heart problems
Multiple Vector Activation: Several vectors activate simultaneously, raising different candidate behaviors in the pool
Tool Usage Influencing Candidacy: The medical history tool retrieves critical risk factors that significantly boost the cardiac assessment behavior's ranking
Attribute-Driven Selection Shift: New attributes from the tool call (age, hypertension, family history) dramatically alter behavior selection
Context Modification: The selected behavior modifies the context graph to add appropriate follow-up paths and safety exit conditions
The result is that potentially serious health concerns are identified and addressed appropriately, even when the user frames their query around exercise rather than health concerns. The interconnected embedding system ensures that multiple factors—agent medical knowledge, user symptoms, medical history data, and risk factor analysis—all contribute to selecting the most appropriate behavior.
The impact of this approach includes:
More natural conversation flow that doesn't feel scripted
Consistent agent personality even as conversational focus shifts
Contextually appropriate responses that build on prior exchanges
Fluid transitions between topics without abrupt changes
Persistent themes that carry through conversations even as specific topics change
Coherent integration of tool usage and side-effects with conversational elements
System actions that maintain continuity with conversation context
Detection of implicit concerns that users may not directly express
Appropriate safety protocols triggered by pattern recognition rather than explicit mentions
How Instructions Are Applied
It's worth noting that selecting a dynamic behavior doesn't guarantee its complete enactment in a specific manner. This by design - rather than being a simple "if-then statement" that dictates exact outputs, instructions are seamlessly integrated into the action guidelines of the current state of the context graph. This allows the system to maintain both coherence and flexibility, adapting behaviors to specific conversational nuances while preserving overall intent.
Importantly, the flexibility of instructions exists along a spectrum. Some use cases benefit from open-ended guidance that grants the agent considerable discretion in implementation while others require strict protocols where precise behavior is essential.
At one end of this spectrum, vague triggers paired with open context create more autonomous agents. This approach functions like an associative knowledge cluster that the agent can freely draw from as the conversation evolves, intelligently determining behavior based on the user model and interaction context. Such flexibility is particularly valuable in creative, exploratory, or coaching conversations where adaptability outweighs the need for strict adherence to protocols.
At the opposite end, strict triggers combined with precise instructions effectively simulate protocol overrides, creating highly constrained decision spaces for predictable behavior. This approach ensures regulatory compliance and consistent handling of sensitive topics. Such strictness is essential in safety-critical contexts where consistent and compliant situation-handling is paramount.
Most real-world deployments strategically implement a balanced mix across this spectrum. This balanced approach creates systems that successfully navigate the tension between strict compliance standards and conversational adaptability. The adaptive nature of Amigo's dynamic behavior system enriches actions with contextual awareness, enabling more human-like interaction patterns that evolve alongside the conversation itself.
Last updated
Was this helpful?