AI Agent Streaming Test

Test streaming without current_time parameters but with correct template syntax

Back
Workflow Information

ID: ai_streaming_test

Namespace: default

Version: N/A

Created: 2025-07-03

Updated: 2025-07-03

Tasks: 1

Quick Actions
Manage Secrets
Inputs
Name Type Required Default
analysis_type string Optional comprehensive
stock_symbols string Optional AAPL
Outputs

No outputs defined

Tasks
live_financial_analysis
ai_agent

No description

YAML Source
id: ai_streaming_test
name: AI Agent Streaming Test
tasks:
- id: live_financial_analysis
  name: Live Financial Analysis with Streaming
  type: ai_agent
  config:
    tools:
    - current_time
    - get_current_stock_price
    - get_stock_price_date_range
    - get_historical_stock_prices
    streaming: true
    agent_type: financial_analyst
    model_client_id: streaming_analyst
  user_message: "Please perform a stock market analysis for the following symbols:\
    \ ${stock_symbols}\n\nAnalysis requirements:\n1. First, get the current time to\
    \ timestamp this analysis\n2. Fetch current stock prices for each symbol\n3. Get\
    \ historical data for the past week to identify trends\n4. Provide insights on:\n\
    \   - Current valuation vs recent performance\n   - Price movement patterns\n\
    \   - Notable changes or volatility\n\nPresent your findings in a clear, professional\
    \ format."
  system_message: 'You are a professional financial analyst providing live, comprehensive
    stock analysis.


    Analyze the given stock with real-time streaming updates including:

    1. Current market timing and context

    2. Current stock price information

    3. Historical price performance analysis

    4. Technical analysis and trends

    5. Risk assessment and investment recommendations


    Always start by getting the current time to timestamp your analysis.


    Format your streaming response with clear headings and provide updates as you
    gather data.

    '
inputs:
  analysis_type:
    type: string
    default: comprehensive
  stock_symbols:
    type: string
    default: AAPL
tenant_id: 0572fa8d-d7c3-47db-9219-ef40b80d42b7
description: Test streaming without current_time parameters but with correct template
  syntax
model_clients:
- id: streaming_analyst
  config:
    model: gpt-4o-mini
    api_key: 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
    max_tokens: 1000
    temperature: 0.3
  provider: openai
Execution ID Status Started Duration Actions
f53f755e... COMPLETED 2025-07-07
01:33:31
N/A View
82c7dfda... COMPLETED 2025-07-04
15:14:55
N/A View
2f58319b... COMPLETED 2025-07-04
06:39:08
N/A View
ffdcefd8... COMPLETED 2025-07-03
16:11:32
N/A View