-
Notifications
You must be signed in to change notification settings - Fork 2
Scheduled tool execution docs #303
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do I need to do to get the tool response after it actually executes?
from datetime import datetime, timedelta | ||
|
||
# Initialize the client | ||
client = arcadepy.Client(api_key="YOUR_API_KEY") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think a arcadepy.Client
exists, or at least the canonical way is
from arcadepy import Arcade
client = Arcade(api_key="YOUR_API_KEY")
```python | ||
# Get details about a scheduled execution | ||
execution_details = client.tools.scheduled.get( | ||
id=response.execution_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id=response.execution_id | |
id=response.id |
```javascript | ||
// Get details about a scheduled execution | ||
const executionDetails = await client.tools.scheduled.get( | ||
response.execution_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
response.execution_id | |
response.id |
run_at: runAt // The tool will run at this time | ||
}); | ||
|
||
console.log(`Tool scheduled! Execution ID: ${response.execution_id}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log(`Tool scheduled! Execution ID: ${response.execution_id}`); | |
console.log(`Tool scheduled! ID: ${response.id}`); |
No description provided.