# CogniswitchKnowledgeSourceFile

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/tools/cogniswitch/tool/CogniswitchKnowledgeSourceFile)

Tool that uses the Cogniswitch services to store data from file.

name: str = "cogniswitch_knowledge_source_file"
description: str = (
    "This calls the CogniSwitch services to analyze & store data from a file.
    If the input looks like a file path, assign that string value to file key.
    Assign document name & description only if provided in input."
)

## Signature

```python
CogniswitchKnowledgeSourceFile()
```

## Extends

- `BaseTool`

## Properties

- `name`
- `description`
- `cs_token`
- `OAI_token`
- `apiKey`
- `knowledgesource_file`

## Methods

- [`store_data()`](https://reference.langchain.com/python/langchain-community/tools/cogniswitch/tool/CogniswitchKnowledgeSourceFile/store_data)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/tools/cogniswitch/tool.py#L181)