Skip to content

Commit

Permalink
Remove bullet points from Key LangChain concepts section
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] and jonoirwinrsa committed Feb 7, 2025
1 parent 3177474 commit e5d7122
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v4/examples/langchain-langsmith.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A tool refers to any framework, utility, or system with defined functionality fo

Key LangChain concepts:

1. `ChatModel.bind_tools()`: Attaches tool definitions to model calls. While providers have different tool definition formats, LangChain provides a standard interface for versatility. Accepts tool definitions as dictionaries, Pydantic classes, LangChain tools, or functions, telling the LLM how to use each tool.
`ChatModel.bind_tools()`: Attaches tool definitions to model calls. While providers have different tool definition formats, LangChain provides a standard interface for versatility. Accepts tool definitions as dictionaries, Pydantic classes, LangChain tools, or functions, telling the LLM how to use each tool.

```python
@tool
Expand All @@ -24,7 +24,7 @@ def exponentiate(x: float, y: float) -> float:
return x**y
```

2. `AIMessage.tool_calls`: An attribute on AIMessage that provides easy access to model-initiated tool calls, specifying invocations in the bind_tools format:
`AIMessage.tool_calls`: An attribute on AIMessage that provides easy access to model-initiated tool calls, specifying invocations in the bind_tools format:

```python
# -> AIMessage(
Expand All @@ -36,7 +36,7 @@ def exponentiate(x: float, y: float) -> float:
# )
```

3. `create_tool_calling_agent()`: Unifies the above concepts to work across different provider formats, enabling easy model switching.
`create_tool_calling_agent()`: Unifies the above concepts to work across different provider formats, enabling easy model switching.

```python
agent = create_tool_calling_agent(llm, tools, prompt)
Expand Down

0 comments on commit e5d7122

Please sign in to comment.