Skip to content

Conversation

@nikhilwoodruff
Copy link
Contributor

Modal function POSTs logs to API instead of relying on Modal stdout.

Modal doesn't expose function call logs programmatically, so instead:
- Modal function POSTs each log line to /agent/log/{call_id}
- Modal function POSTs completion status to /agent/complete/{call_id}
- API stores logs in memory for polling
- UI polls /agent/logs/{call_id} every second

This replaces the previous approach that tried to use call.get_logs()
which doesn't exist on Modal FunctionCall objects.
@nikhilwoodruff nikhilwoodruff merged commit 971f579 into main Dec 29, 2025
1 check passed
@nikhilwoodruff nikhilwoodruff deleted the agent-log-polling branch December 29, 2025 11:57
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.

2 participants