Skip to content

Enhance X402ReactAgent with default URL handling and prompt management#194

Merged
moonpyt merged 2 commits intoXSpoonAi:mainfrom
veithly:fix/x420-demo
Dec 1, 2025
Merged

Enhance X402ReactAgent with default URL handling and prompt management#194
moonpyt merged 2 commits intoXSpoonAi:mainfrom
veithly:fix/x420-demo

Conversation

@veithly
Copy link
Copy Markdown
Collaborator

@veithly veithly commented Dec 1, 2025

  • Added default URL handling in HttpProbeTool to ensure fallback to PAYWALLED_URL.
  • Introduced _refresh_prompts method in X402ReactAgent to maintain updated system prompts with available tools.
  • Updated constructor of X402ReactAgent to streamline initialization of service and target_url.
  • Included NEXT_STEP_PROMPT_TEMPLATE for improved conversation flow.

- Added default URL handling in HttpProbeTool to ensure fallback to PAYWALLED_URL.
- Introduced _refresh_prompts method in X402ReactAgent to maintain updated system prompts with available tools.
- Updated constructor of X402ReactAgent to streamline initialization of service and target_url.
- Included NEXT_STEP_PROMPT_TEMPLATE for improved conversation flow.
- Introduced extract_music_url function to parse and retrieve SoundCloud links from HTML/text content.
- Updated main function to attempt music URL extraction from payment result body, displaying it if found.
- Enhanced overall readability and maintainability of the code by organizing new functionality logically within the existing structure.
@moonpyt moonpyt merged commit ce36dbf into XSpoonAi:main Dec 1, 2025
1 check passed
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