Skip to content

Conversation

@kompfner
Copy link
Contributor

@kompfner kompfner commented Nov 19, 2025

This is just an exploration, meant to establish patterns and share my findings so far. Eventually if we get to the point where a Pipecat bot can be deployed to AgentCore Runtime, this example should live in the pipecat-examples repo, not this one.

@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this file was necessary for the AgentCore deployment to work...we couldn't just rely on pyproject.toml. But I should double-check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most of my learnings are in this file, not the code.

@kompfner kompfner force-pushed the pk/aws-agentcore-exploration branch from fabfb8f to 0c27230 Compare November 19, 2025 22:40
from pipecat.transports.base_transport import BaseTransport, TransportParams
from pipecat.transports.daily.transport import DailyParams

app = BedrockAgentCoreApp()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here's an AgentCore-specific thing

await runner.run(task)


@app.entrypoint
Copy link
Contributor Author

@kompfner kompfner Nov 19, 2025

Choose a reason for hiding this comment

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

Here's an AgentCore-specific method

await run_bot(transport, RunnerArguments())


if __name__ == "__main__":
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here we have some AgentCore-specific logic


Follow the prompts to complete the configuration.

**IMPORTANT:** when asked if you want to use "Direct Code Deploy" or "Container", choose "Container". Today there is an incompatibility between Pipecat and "Direct Code Deploy".
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here's a friction point I hit

PIPECAT_LOCAL_DEV=1 uv run python bot.py -t daily -d
```

> Ideally you should be able to use `agentcore launch --local`, but it doesn't currently appear to be working (even with [this workaround](https://github.com/aws/bedrock-agentcore-starter-toolkit/issues/156) applied), at least not for this project.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here's another friction point I hit.

Copy link
Contributor Author

@kompfner kompfner Nov 19, 2025

Choose a reason for hiding this comment

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

The biggest friction point of all, though, is that once the agent is running it doesn't seem to be able to receive WebRTC traffic. It can join and leave the Daily call at the appropriate times, and it can print its initial LLM text to console, but it can't actually hear the user.

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