Skip to content

feat!: add async tools, charge limits and untrusted output - #52

Merged
daveomri merged 28 commits into
mainfrom
feat/32-tools-async-charge-limit-untrusted-output
Nov 26, 2026
Merged

daveomri merged 28 commits into
mainfrom
feat/32-tools-async-charge-limit-untrusted-output

Conversation

@daveomri

@daveomri daveomri commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Tools now run on the async Apify client under ainvoke instead of blocking a thread; developers can cap what each run may cost with max_total_charge_usd, and tool output that carries third-party content is wrapped in untrusted-content markers against prompt injection, the same as in strands-apify.

Marking is on by default, so code that parses the tools' output as JSON gets the wrapper first; opt out with mark_output_untrusted=False. ApifyRunActorTool and ApifyRunTaskTool return only run metadata and aren't wrapped.

Part of apify/dx-heroes-team#32.

@daveomri
daveomri changed the base branch from main to feat/32-modernize-tooling-ci-and-tools November 11, 2026 11:46
@daveomri
daveomri requested a review from vdusek November 19, 2026 08:44
@daveomri
daveomri marked this pull request as ready for review November 19, 2026 08:44
@daveomri daveomri self-assigned this Nov 19, 2026
Comment thread src/langchain_apify/tools/base.py Resolved
Comment thread src/langchain_apify/tools/actors.py Resolved
Comment thread src/langchain_apify/tools/base.py Resolved
Comment thread src/langchain_apify/tools/base.py Resolved
Comment thread src/langchain_apify/tools/base.py Resolved
Comment thread src/langchain_apify/tools/actors.py Resolved
Comment thread src/langchain_apify/retrievers.py Resolved
Comment thread src/langchain_apify/retrievers.py Resolved
Comment thread README.md Resolved
@daveomri daveomri changed the title feat: add async, a charge limit and untrusted output to the tools feat!: add async tools, charge limits and untrusted output Nov 20, 2026
@daveomri
daveomri requested a review from vdusek November 20, 2026 12:47

@vdusek vdusek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from feat/32-modernize-tooling-ci-and-tools to main November 24, 2026 15:02
@daveomri
daveomri merged commit 09289c8 into main Nov 26, 2026
22 checks passed
@daveomri
daveomri deleted the feat/32-tools-async-charge-limit-untrusted-output branch November 26, 2026 09:48
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