when using livekit agents for sip call answering h...
# ask-ai
d
when using livekit agents for sip call answering how can i debug usage of provider and cost per call?
t
Thanks for reaching out, Fatima. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you out! Could you share a bit more about your setup? For example: • Which SIP provider are you working with? • Are you using any particular LiveKit APIs or tools to keep track of call costs? • Do you have access to any logs or metrics from your SIP provider or LiveKit? Knowing these details will really help me assist you better.
d
i am using open ai realtime and also stt llm tts with different providers so how tp track cost is it mentioned when logging metrics or session usage?
t
I'd love to help you out! To make sure I understand your needs clearly, could you please share a bit more about: • Are you currently using LiveKit's logging or metrics features to keep an eye on session usage? • Do you have a particular way you're integrating OpenAI's real-time, STT, LLM, and TTS services with LiveKit? • Are you interested in seeing a cost breakdown by provider or by individual session? Knowing this will really help me guide you in the best possible way.
d
Copy code
session = AgentSession(
        llm=openai.realtime.RealtimeModel(tool_choice="auto"),
        mcp_servers=[frappe_server],
    )
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
d
(llm_prompt_tokens=348, llm_prompt_cached_tokens=0, llm_input_audio_tokens=188, llm_completion_tokens=426, llm_output_audio_tokens=338, tts_characters_count=87, tts_audio_duration=4.028, stt_audio_duration=0.0) what thos emetrics mean how to estimate the cost?