mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-28 01:28:14 +00:00
added doc
This commit is contained in:
@@ -57,6 +57,24 @@ crew = Crew(
|
|||||||
result = crew.kickoff(inputs={"question": "What city does John live in and how old is he?"})
|
result = crew.kickoff(inputs={"question": "What city does John live in and how old is he?"})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Appending Knowledge Sources To Individual Agents
|
||||||
|
Sometimes you may want to append knowledge sources to an individual agent. You can do this by setting the `knowledge` parameter in the `Agent` class.
|
||||||
|
|
||||||
|
```python
|
||||||
|
agent = Agent(
|
||||||
|
...
|
||||||
|
knowledge={
|
||||||
|
"sources": [
|
||||||
|
StringKnowledgeSource(
|
||||||
|
content="Users name is John. He is 30 years old and lives in San Francisco.",
|
||||||
|
metadata={"preference": "personal"},
|
||||||
|
)
|
||||||
|
],
|
||||||
|
"metadata": {"preference": "personal"},
|
||||||
|
},
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Embedder Configuration
|
## Embedder Configuration
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user