Skip to content

Commit 9ab48f8

Browse files
committed
docs: update README with Pydantic AI integration
Add Pydantic AI to supported frameworks list Include inline examples for Pydantic AI, LangChain, and OpenAI integrations Remove outdated documentation links and streamline AI framework integration section
1 parent 39a9f42 commit 9ab48f8

2 files changed

Lines changed: 426 additions & 22 deletions

File tree

README.md

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,47 @@ result = execute_tool.call(toolName="hris_list_employees", params={"limit": 10})
5858
- Integration with popular AI frameworks:
5959
- OpenAI Functions
6060
- LangChain Tools
61+
- Pydantic AI Tools
6162
- CrewAI Tools
6263
- LangGraph Tool Node
6364

64-
## Documentation
65+
## AI Framework Integration
6566

66-
For more examples and documentation, visit:
67+
StackOne tools integrate seamlessly with popular AI frameworks. Convert your tools to the appropriate format:
6768

68-
- [Error Handling](docs/error-handling.md)
69-
- [StackOne Account IDs](docs/stackone-account-ids.md)
70-
- [Available Tools](docs/available-tools.md)
71-
- [File Uploads](docs/file-uploads.md)
69+
### Pydantic AI
7270

73-
## AI Framework Integration
71+
```python
72+
# Convert to Pydantic AI format
73+
pydantic_ai_tools = tools.to_pydantic_ai()
74+
75+
# Use with Pydantic AI agent
76+
from pydantic_ai import Agent
77+
agent = Agent(model="openai:gpt-4", tools=pydantic_ai_tools)
78+
```
79+
80+
### LangChain
81+
82+
```python
83+
# Convert to LangChain format
84+
langchain_tools = tools.to_langchain()
85+
86+
# Use with LangChain
87+
from langchain_openai import ChatOpenAI
88+
model = ChatOpenAI().bind_tools(langchain_tools)
89+
```
90+
91+
### OpenAI Functions
7492

75-
- [OpenAI Integration](docs/openai-integration.md)
76-
- [LangChain Integration](docs/langchain-integration.md)
77-
- [CrewAI Integration](docs/crewai-integration.md)
78-
- [LangGraph Tool Node](docs/langgraph-tool-node.md)
93+
```python
94+
# Convert to OpenAI function format
95+
openai_tools = tools.to_openai()
96+
97+
# Use with OpenAI client
98+
import openai
99+
client = openai.OpenAI()
100+
client.chat.completions.create(tools=openai_tools, ...)
101+
```
79102

80103
## License
81104

0 commit comments

Comments
 (0)