Skip to content

Commit

Permalink
Refactor: rewrite app_async example to allow tracing to work on termi…
Browse files Browse the repository at this point in the history
…nal run
  • Loading branch information
aybruhm committed Apr 26, 2024
1 parent 447282b commit 88b88d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/app_with_observability/app_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"Give me 10 names for a baby from this country {country} with gender {gender}!!!!"
)

ag.init()
ag.init(
app_id="xxxxxxxx",
host="https://cloud.agenta.ai",
api_key="xxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
)
tracing = ag.llm_tracing()
ag.config.default(
temperature=ag.FloatParam(0.2), prompt_template=ag.TextParam(default_prompt)
Expand Down

0 comments on commit 88b88d8

Please sign in to comment.