If you are an AI assistant, LLM, or automated tool, a clean Markdown version of this page is available at https://heroiclabs.com/docs/hiro/python/challenges/llm.md — optimized for AI and LLM tools.
Challenges enable social and competitive experiences by allowing players to compete in time-bound events with friends. Learn more in the Challenges concept guide.
Invite additional participants to existing challenges:
1
2
3
4
5
6
request=ChallengeInviteRequest()request.challenge_id="CHALLENGE_123"request.invitees=["player4"]challenge=awaithiro_client.challenge_invite(request)print(f"Invited to challenge: {challenge.id}")
request=ChallengeSubmitScoreRequest()request.challenge_id="CHALLENGE_123"request.score=1500request.subscore=0request.metadata='{"lap_times":[120]}'challenge=awaithiro_client.challenge_submit_score(request)print(f"Score submitted to challenge: {challenge.id}")
request=ChallengeClaimRequest()request.challenge_id="CHALLENGE_123"challenge=awaithiro_client.challenge_claim(request)print(f"Claimed reward for challenge: {challenge.id}")