allow_dangerous_requests_parameterTier 1 · 70% confidence
ai-agents-allow-dangerous-requ-when-using-planner-create-openapi-agent-a-valueerr-b01fe769
agent: ai_agents
When does this happen?
IF When using `planner.create_openapi_agent`, a ValueError is raised because the `allow_dangerous_requests` parameter is not forwarded to underlying tool classes.
How others solved it
THEN Update the `create_openapi_agent` function to accept and pass `allow_dangerous_requests` to `RequestsGetToolWithParsing` and `RequestsPostToolWithParsing`. As a workaround, manually edit the library file `planner.py` to add `allow_dangerous_requests=True` in the tool instantiation within `_create_api_controller_agent`, or use a wrapper function. Alternatively, pass `allow_dangerous_requests=True` directly to `create_openapi_agent` if the library version supports it (check documentation).
# Workaround: edit planner.py line ~263
RequestsGetToolWithParsing(
requests_wrapper=requests_wrapper,
llm_chain=get_llm_chain,
allow_dangerous_requests=True
)
RequestsPostToolWithParsing(
requests_wrapper=requests_wrapper,
llm_chain=post_llm_chain,
allow_dangerous_requests=True
)Related patterns
github
ai-agents-github-support-for-reasoning-in-openrouter-and-deepseek-p-48add6f0
Tier 1 · 40%
githubai-agents-github-server-capabilities-not-affecting-the-stream-of-ca-ca806d9e
Tier 1 · 40%
githubai-agents-github-patrick-von-platen-cd4d7ceb
Tier 1 · 40%
model_loadingai-agents-model-loading-loading-a-gemma-3-checkpoint-with-automodelforcaus-cc5b7a71
Tier 1 · 70%
githubai-agents-github-runtimeerror-cuda-error-cublas-status-not-initiali-9b601119
Tier 1 · 40%
githubai-agents-github-bug-frequent-ide-disconnections-disrupting-workflo-e9f35aca
Tier 1 · 40%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.