Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify tracing file format/API #304

Open
alexkreidler opened this issue Jun 4, 2023 · 1 comment
Open

Specify tracing file format/API #304

alexkreidler opened this issue Jun 4, 2023 · 1 comment

Comments

@alexkreidler
Copy link

ICE is a great tool with a nice UI, and it would be awesome if it could integrate with popular tools like langchain. To do this we need to describe the data structure/types of the JSON file formats in trace.py. One way to do this would be to make the Trace class inherit from the pydantic BaseModel, and then rather than using a static file handler with FastAPI for traces you could set the response_model=List[Trace] which would autogenerate OpenAPI docs that include the trace data structure. But it looks like there's a lot of custom code in trace.py that I don't fully get so that may be tough.

Even just running ICE and getting an example trace, and putting it in the repo/documentation, and maybe passing it through Quicktype to generate a JSON schema from the JSON would help other people use this tool. Thanks!

@stuhlmueller
Copy link
Member

Agree that this makes sense - would be happy for someone to take a stab at this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants