Skip to content

fix(examples): correct Indonesia compliance example API [skip-runtime-e2e]#208

Merged
saurabhjain1592 merged 2 commits into
mainfrom
fix/indonesia-example-api-mismatch
May 26, 2026
Merged

fix(examples): correct Indonesia compliance example API [skip-runtime-e2e]#208
saurabhjain1592 merged 2 commits into
mainfrom
fix/indonesia-example-api-mismatch

Conversation

@saurabhjain1592
Copy link
Copy Markdown
Member

@saurabhjain1592 saurabhjain1592 commented May 26, 2026

Summary

  • Fix constructor parameter: agent_urlendpoint
  • Fix search_audit_logs call: use AuditSearchRequest object
  • Fix ListStaticPoliciesOptions import path

Found during E2E verification (Brief 5, #2478).

Skip-runtime-e2e justification

This PR only fixes API call mismatches in an existing example file. The example itself IS the runtime proof — it was shipped in PR #207 but used wrong constructor/method signatures. No new user-facing feature; the fix makes an existing example actually work.

Testing

  • Example runs successfully against local docker compose stack
  • Output: PII Indonesia category: pii-indonesia, audit search + policy list succeed

- Use `endpoint` instead of `agent_url` in AxonFlow constructor
- Use `AuditSearchRequest(limit=5)` instead of `limit=5` kwarg
- Import `ListStaticPoliciesOptions` from `axonflow.policies`
- Use `getattr` for optional cross-border fields

Signed-off-by: Saurabh Jain <dev@getaxonflow.com>
Signed-off-by: Saurabh Jain <saurabh.jain@getaxonflow.com>
@saurabhjain1592 saurabhjain1592 changed the title fix(examples): correct Indonesia compliance example API fix(examples): correct Indonesia compliance example API [skip-runtime-e2e] May 26, 2026
Signed-off-by: Saurabh Jain <dev@getaxonflow.com>
Signed-off-by: Saurabh Jain <saurabh.jain@getaxonflow.com>
@saurabhjain1592 saurabhjain1592 merged commit 26315c2 into main May 26, 2026
17 checks passed
@saurabhjain1592 saurabhjain1592 deleted the fix/indonesia-example-api-mismatch branch May 26, 2026 22:01
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.

1 participant