Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/tools/google-cloud-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ It supports both on-premise and SaaS applications. In addition, you can turn you
Set up your project structure and create required files.

```console
project_root_folder
|-- my_agent
| |-- agent.java
| `-- pom.xml
project_root_folder
|-- my_agent
| |-- agent.java
| `-- pom.xml
```

When running the agent, make sure to run the commands in the `project\_root_folder`.
Expand Down Expand Up @@ -487,10 +487,10 @@ workflow as a tool for your agent or create a new one.

To update the `agent.java` file and add the tool to your agent, use the following code:

```java
import com.google.adk.agent.LlmAgent;
import com.google.adk.tools.BaseTool;
import com.google.common.collect.ImmutableList;
```java
import com.google.adk.agent.LlmAgent;
import com.google.adk.tools.BaseTool;
import com.google.common.collect.ImmutableList;

public class MyAgent {
public static void main(String[] args) {
Expand All @@ -515,11 +515,11 @@ workflow as a tool for your agent or create a new one.
// For example, you can start a conversation with the agent.
}
}
```
```

**Note:** To find the list of supported entities and actions for a
connection, use these Connector APIs: `listActions`, `listEntityTypes`.

connection, use these Connector APIs: `listActions`, `listEntityTypes`.
#### 3. Expose your agent

=== "Python"
Expand Down