{{
    config(
        materialized='view'
    )
}}

SELECT
    -- Core identifiers
    tool_call_id

    -- Tool call information
    , tool_call_name
    , tool_call_arguments

    -- Tool call parsed fields - simple_message
    , tc_sm_message
    , tc_sm_choices
    , tc_sm_current_prompt

    -- Tool call parsed fields - write_lyrics, generate_image
    , tc_genre_example
    , tc_prompt

    -- Timestamps
    , created_at
    , updated_at

    -- Partitioning
    , p_date
    , p_hour

FROM {{ ref('int_orpheus__cleaned') }}
WHERE tool_call_id IS NOT null
