Skip to content

Conversation

@pierrevalade
Copy link
Contributor

@pierrevalade pierrevalade commented Feb 5, 2025

I'm waiting to hear back from @yannbu on some issues I've seen with tools using the example code, to decide next steps.

https://workflowai.dev/api/data/workflowai/agents/event-analyzer/runs/16c3ca9e-c4a7-4f44-9ce0-f383535ac532

@pierrevalade
Copy link
Contributor Author

also @yannbu, look at all the runs that are created that looks like the same run again and again:

https://workflowai.dev/workflowai/agents/historical-event-analyzer/1/runs?page=0

I feel like something is off.

Copy link
Contributor

yannbu commented Feb 5, 2025

Very weird, it's like the cache is off. WOR-3598 I will check tomorrow

Base automatically changed from more-examples to main February 5, 2025 19:50
Pierre and others added 4 commits February 17, 2025 17:05
- Change return type from Run[Output] to Output directly

- Add .run() method calls to execute agent functions

- Clean up imports ordering
@guillaq
Copy link
Collaborator

guillaq commented Feb 25, 2025

@pierrevalade what is the state of this PR ? I just tested and it seems all good ?
I fixed the cache logic when auto and tools are used in dev

@pierrevalade pierrevalade marked this pull request as ready for review February 25, 2025 17:30
@pierrevalade
Copy link
Contributor Author

thank you @guillaq - I checked again and the PR is ready indeed.

@pierrevalade
Copy link
Contributor Author

.venvpierrevalade@Mac workflowai-py % /Users/pierrevalade/Documents/GitHub/workflowai-py/.venv/bin/python /Users/pierrevalade/Documents/GitHub/wor
kflowai-py/examples/02_agent_with_tools.py

Example: First Moon Landing
--------------------------------------------------

Output:
==================================================
{
  "event_date": "1969-07-20",
  "event_description": "Apollo 11 astronauts Neil Armstrong and Buzz Aldrin became the first humans to land on the Moon.",
  "days_since_event": 20220
}
==================================================
Cost: $ 0.00005
Latency: 1.00s
URL: <function _default_app_url at 0x10439d800>/_/agents/historical-event-analyzer/runs/01953e24-e348-7109-2b03-f7cc60e7ceab

the script examples/02_agent_with_tools.py is working -- just need to double check what is going on with the URL, but we can go ahead with this PR.

@pierrevalade pierrevalade requested a review from guillaq February 25, 2025 20:49
@pierrevalade
Copy link
Contributor Author

@guillaq ready for review, thanks!

Copy link
Collaborator

@guillaq guillaq left a comment

Choose a reason for hiding this comment

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

thansk !

@pierrevalade pierrevalade merged commit 5bb4446 into main Feb 26, 2025
5 checks passed
@pierrevalade pierrevalade deleted the examples-tools branch February 26, 2025 16:11
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.

4 participants