Add local tools and observability
⏳ Note: Make sure to select full repo access scope in order to star a repo.
.env
File
Update your .env
file with the following:
pip install -r requirements.txt
tools/local_tools.py
with:
myAgent.py
and add the tool to the import section:
self.agent_backend.select_llm_provider(LLMProvider.OPEN_AI)
add:
tool_calls = self.agent_backend.extract_tool_calls(response.model_dump())
add:
python xpander_handler.py
and send the following prompt
.env
file with your AgentOps API key:
requirements.txt
to include AgentOps:
pip install -r requirements.txt
to install the new dependency.
myAgent.py
file:
myAgent.py
imports section should look with AgentOps:
Note: AgentOps will automatically instrument your agent without requiring any additional code changes!