Custom Implementation of the Tracing API

Hey OpenAI Dev Community,

I was just looking into the Python Agent’s SDK and noticed there’s an implementation for a new (?) tracing API (https://api.openai.com/v1/traces/ingest). I’m currently building an AgentLoop SDK for PHP. Since this specific API doesn’t appear to be officially documented yet, I wanted to check with you if you think it be okay for me to also implement this tracing functionality on the PHP side?

I’d appreciate your thoughts or any guidance on this!

Thanks you very much :slight_smile:

2 Likes

Yes please!

Was surprised to find out this isn’t a top-level API in the documentation. We’d love to move over to ResponsesAPI, but as we’re not using Python…

More information would be greatly appreciated!

2 Likes

Hi Jim,

thanks for reaching out. Im actually in the process to build up my startup (assistant-engine.com) and release most of my code on the way as open source. Right now Im adapting everything to Responses API:

    /**
     * Runs the orchestration loop.
     *
     * Iterates until reaching max iterations, a stop condition is met, or an error occurs.
     *
     * @param string               $model
     * @param MessageList          $messageList
     * @param AbstractOpenFunction $openFunction
     *
     * @return MessageList The final message list after running.
     */
    public function run(string $model, MessageList $messageList, AbstractOpenFunction $openFunction): MessageList

I guess I have the updates ready within the next 1-2 weeks. Any Feedback would be highly appreciated on the way and will write an update if I released the AgentLoop as Open Source. :slight_smile:

Best Flo

1 Like