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

[Feature] new playground hard-trimmed #2400

Conversation

jp-agenta
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Dec 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agenta ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 30, 2024 4:41pm
agenta-documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 30, 2024 4:41pm

data = str(data)

return data

async def fetch_inline_trace(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the changes to this code, but not sure I understand everything

not ag.tracing.is_inline_trace_ready(trace_id)
and remaining_steps > 0
):
await sleep(TIMESTEP)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did we remove this?

if inline:
if WAIT_FOR_SPANS:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did we set this to true per default


await sleep(FINALSTEP)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same, why did we remove

content_type = "text/plain"
data = result
elif not isinstance(result, str) and content_type == "text/plain":
data = dumps(result)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, it turns out that fastapi does this automatically, it stringifies the outputs and sets the content-type in the header to application/json in the case of non string output. Not sure whether we need this whole logic (old version and new version)

wrapper=test_wrapper,
config_instance=config
)
if request.state.config["references"]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we doing this? removing all references other than application ones?

@jp-agenta jp-agenta closed this Jan 24, 2025
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

Successfully merging this pull request may close these issues.

2 participants