mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-23 15:18:14 +00:00
refactor: simplify TaskGuardrail to use LLM for validation, no code generation
This commit is contained in:
@@ -324,11 +324,7 @@ blog_task = Task(
|
||||
|
||||
### TaskGuardrail
|
||||
|
||||
The `TaskGuardrail` class provides a sophisticated way to generate and execute validation code for task outputs. Here's how it works:
|
||||
|
||||
#### Code Execution
|
||||
|
||||
The generated code can be executed in two ways: Docker container (Default, Recommended) or current environment (unsafe mode)
|
||||
The `TaskGuardrail` class offers a robust mechanism for validating task outputs
|
||||
|
||||
### Error Handling Best Practices
|
||||
|
||||
@@ -791,7 +787,7 @@ task = Task(
|
||||
)
|
||||
```
|
||||
|
||||
##### Using YAML
|
||||
#### Using YAML
|
||||
|
||||
```yaml
|
||||
research_task:
|
||||
|
||||
Reference in New Issue
Block a user