> ## Documentation Index
> Fetch the complete documentation index at: https://oxy.tech/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Activity Logs, Enhanced Retrieval Accuracy, and Agent Preview Improvements

> Complete audit trail of all agent interactions in a comprehensive table view:

<Icon icon="calendar" iconType="regular" size={16} /> **July 17, 2025**

### **Activity Logs**

Complete audit trail of all agent interactions in a comprehensive table view:

* **Thread Overview** - View all conversation threads with their original prompts
* **Generated Query History** - See the exact SQL queries generated by agents for each request
* **Execution Metadata** - Track database targets, agent types, and verification status
* **Chronological Display** - All activities shown by creation date for easy review
  <img src="https://mintcdn.com/oxy-internal/2ysRwFKWr6jO2xCq/changelog/images/2025-07-17/10453.png?fit=max&auto=format&n=2ysRwFKWr6jO2xCq&q=85&s=d32adb4ef02e844a4d9deaf32fca17a9" alt="Image" width="1042" height="590" data-path="changelog/images/2025-07-17/10453.png" />

<img src="https://mintlify.s3.us-west-1.amazonaws.com/oxy-internal/changelog/images/2025-07-17/image.png" alt="Image" />

### **Enhanced Retrieval Accuracy (Early Preview)**

*Note: This is an early preview feature and may encounter some edge cases during initial use*

Improve workflow and agent retrieval accuracy by specifying `include` and `exclude` keys in the `retrieval` configuration:

* **retrieval.include** - Prompts that should trigger this workflow or agent
* **retrieval.exclude** - Prompts that should not trigger this workflow or agent. For example, if prompting "Create annual user report" is erroneously triggering the `active_users` workflow, add it as an entry under the `exclude` key

Below is an example of how **retrieval.include** and **retrieval.exclude** can be utilized:

```yaml theme={null}
name: active_users
description: |
  This workflow generates a report on active users.
retrieval:
  include:
    - "Create monthly report for active users"
  exclude:
    - "Create annual user report"
variables:
  month: "{{ dimensions.month }}"
  platform: "{{ dimensions.platform }}"
tasks:
  - name: query_data
    type: execute_sql
    database: local
    sql_query: |
      SELECT * FROM monthly_active_user_by_platform.csv
      WHERE month = '{{ month }}' AND platform = '{{ platform }}'

  - name: report
    type: agent
    agent_ref: agents/local.agent.yml
    prompt: |
      Generate a report on active users based on the provided data.
      The data includes user activity and their last login date.

      [BEGIN DATA]
      {{ query_data }}
      [END DATA]

      - Then generate a concise report using the following template:

      Total active users: <total_active_users>
      Active users by organization: <active_users_by_organization>
      Analysis: <compare the activity levels of different organizations>

      - Analysis should focus on the activity levels without further judgment.
```

### **Enhanced Agent Preview Panel**

Significantly improved preview experience for agent development:

* **Artifact Support** - Preview panel now fully supports artifact generation and display
* **Rich Artifact Viewing** - Interactive artifact experience directly within the agent preview

<img src="https://mintlify.s3.us-west-1.amazonaws.com/oxy-internal/changelog/images/2025-07-17/image%201.png" alt="Image" />

<img src="https://mintcdn.com/oxy-internal/qygWo0nXJD2A89_J/changelog/images/2025-07-17/34366.png?fit=max&auto=format&n=qygWo0nXJD2A89_J&q=85&s=47a1001c6148e211f95b9170064be901" alt="Image" width="2872" height="2474" data-path="changelog/images/2025-07-17/34366.png" />

### **Bug Fixes & Improvements**

Improved error handling when agents fail to answer questions, enhanced logging for better diagnostics, and minor footer UI updates for better visibility

<img src="https://mintcdn.com/oxy-internal/qygWo0nXJD2A89_J/changelog/images/2025-07-17/33554.png?fit=max&auto=format&n=qygWo0nXJD2A89_J&q=85&s=e8e171094c73d65c387b564cc0a80c66" alt="Image" width="1334" height="816" data-path="changelog/images/2025-07-17/33554.png" />
