Programmatic Tool Calling (PTC) Configuration
Overview
Key Concepts
Why use PTC?
Benefit
Description
How PTC works
The PTC configuration object
PTC configuration objectPrerequisites
Complete Example
Step 1: Import required components
Step 2: Create the Digital Employee identity
Step 3: Configure PTC and attach tools
Step 4: Run locally
What this example shows
Configuration Reference
Parameter
Type
Default
Description
Common Use Cases
Parallel tool calls
Installing extra sandbox packages
Extending the sandbox timeout for long-running tasks
Best Practices
1. Mention execute_ptc_code in the job instruction
execute_ptc_code in the job instruction2. Keep sandbox_timeout proportional to task complexity
sandbox_timeout proportional to task complexity3. Use ptc_packages only when needed
ptc_packages only when needed4. Do not call deploy() for local PTC runs
deploy() for local PTC runs5. Use a single DigitalEmployee instance per session
DigitalEmployee instance per sessionTroubleshooting
E2B_API_KEY not set
E2B_API_KEY not setglaip-sdk[local] not installed
glaip-sdk[local] not installedAgent not using execute_ptc_code
execute_ptc_codeSandbox timeout exceeded
Tool not available inside the sandbox
Last updated