AI不止语

Results issues of AI不止语

Hi @msitarzewski, First of all, thank you for creating agency-agents — it's been a huge inspiration. The idea of having a complete library of specialized AI roles with carefully crafted...

## Summary `JsonCssExtractionStrategy._apply_transform()` crashes with `AttributeError` when `value` is `None`. This happens when a CSS or XPath selector finds no matching element — the extracted value is `None`, and calling...

## Summary `PruningContentFilter.__init__()` accepts a `user_query` parameter but passes `None` to the parent `RelevantContentFilter.__init__()` instead of forwarding it: ```python super().__init__(None) # user_query is silently dropped ``` This means `self.user_query` is...

## Summary `PruningContentFilter._compute_class_id_weight()` uses `self.negative_patterns.match()` (lines 771, 775) to check CSS classes and element IDs against negative patterns. However, `re.match()` only matches at the **start** of the string, so a...

## Summary In `passthrough_llm_action`, the function carefully constructs a `prompt` variable from the raw LLM request (lines 421-438), handling both string and list prompt formats, and substituting any user text...

## Summary In the `generate_value` action, the prompt is correctly rendered for `Task.GENERATE_VALUE_FROM_INSTRUCTION` (line 779), but the stop tokens are fetched for `Task.GENERATE_USER_INTENT_FROM_USER_ACTION` (line 790). This task enum mismatch means...

## Problem `Context.deserialize()` in `metagpt/context.py` line 127 calls: ```python self.cost_manager.model_validate_json(cost_manager) ``` `model_validate_json()` is a Pydantic **classmethod** that creates and returns a new model instance from JSON. Since the return value...

## ShellWard AI Agent Security Middleware — 8-layer defense against prompt injection, data exfiltration & dangerous commands. - **8 defense layers**: prompt guard, injection detection, tool blocker, DLP audit, data...

## Problem In `_copy_messages`, the dictionary comprehension uses `if v` to filter out entries: ```python {k: list(_copy_images(v)) if k == 'images' else v for k, v in dict(message).items() if v}...

## Problem The synchronous `Client.web_search` and `Client.web_fetch` methods both validate that the authorization header contains a Bearer token before making requests to `ollama.com/api/web_search` and `ollama.com/api/web_fetch`. This gives users a clear,...