docs: Add guardrail attribute documentation and examples (#3139)

- Document string-based guardrails in tasks
- Add guardrail examples to YAML configuration
- Fix Python code formatting in PT-BR CLI docs
This commit is contained in:
Tony Kipkemboi
2025-07-11 13:32:59 -04:00
committed by GitHub
parent 08fa3797ca
commit c6caa763d7
3 changed files with 168 additions and 167 deletions

View File

@@ -76,6 +76,7 @@ Exemplo:
crewai train -n 10 -f my_training_data.pkl
```
```python
# Exemplo de uso programático do comando train
n_iterations = 2
inputs = {"topic": "Treinamento CrewAI"}
@@ -89,6 +90,7 @@ try:
)
except Exception as e:
raise Exception(f"Ocorreu um erro ao treinar a crew: {e}")
```
### 4. Replay