# Define the Cohere LLM
llm = ChatCohere(
    cohere_api_key="COHERE_API_KEY",
    model="command-a-03-2025",
    temperature=0,
)

agent_executor = create_sql_agent(llm, db=db, verbose=True)

resp = agent_executor.invoke(
    "Show me the first 5 rows of the Album table."
)
print(resp)
```

## CSV Agent

LangChain's CSV Agent abstraction enables building agents that can interact with CSV files. This can be accessed via the `create_csv_agent` constructor.

```python PYTHON
from langchain_cohere import ChatCohere, create_csv_agent