Forum in maintenance, we will back soon 🙂
Notifications
Clear all
[Solved] First try with the AI Agent Guide
Topic starter
To get the code to work, under
from dotenv import load_dotenv
I added:
from actions import get_response_time from prompts import system_prompt from json_helpers import extract_json import json
I added the json_helpers.py file from the repository.
And in the loop, this function is causing an error, json_function = extract_json(response). I replaced it with the following code to simulate the output:
json_function = [{ 'function_name': 'get_response_time', 'function_parms': {'url': 'learnwithhasan.com'} }]
Now the agent is able to get the site response time.
Posted : 05/01/2024 10:51 pm
Hasan Aboul Hasan reacted
Topic Tags
@apasho you haven't given a clear picture of what you need help with. Please provide the full code for the project using a public GitHub repository.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
Posted : 05/01/2024 11:04 pm
Topic starter
@admin Yes, I am sharing what modifications I made to get the code to work as it did in the video.
Posted : 05/04/2024 6:35 pm
Forum Information
Our newest member: Dellamay Anderson
Latest Post: IP & Domain warmup Guidance
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed