Skip to content
Discussion options

You must be logged in to vote

Hi! You’re reading the error correctly, this is expected behavior in the Playground right now.

For security hardening, we explicitly disabled nested function calls in Playground config parsing, so expressions like:

CrawlerRunConfig(markdown_generator=DefaultMarkdownGenerator(content_filter=PruningContentFilter(...)))

are blocked and return:

Nested function calls are not permitted.

In deploy/docker/server.py, _safe_eval_config() walks the AST and rejects any nested ast.Call:

  • if isinstance(node, ast.Call) and node is not call:
  • raise ValueError("Nested function calls are not permitted")

This restriction was introduced in security commit:

  • 2fc39cbfix(security): remove eval() from compute…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SohamKukreti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants