mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
ADK changes
PiperOrigin-RevId: 794403729
This commit is contained in:
committed by
Copybara-Service
parent
e2518dc371
commit
114db93d70
@@ -15,8 +15,6 @@
|
||||
"""
|
||||
This agent aims to test the Langchain tool with Langchain's StructuredTool
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
from google.adk.agents.llm_agent import Agent
|
||||
from google.adk.tools.langchain_tool import LangchainTool
|
||||
from langchain.tools import tool
|
||||
@@ -25,13 +23,11 @@ from pydantic import BaseModel
|
||||
|
||||
|
||||
async def add(x, y) -> int:
|
||||
"""Adds two numbers."""
|
||||
return x + y
|
||||
|
||||
|
||||
@tool
|
||||
def minus(x, y) -> int:
|
||||
"""Minus two numbers."""
|
||||
return x - y
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user