This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from google.adk.agents import Agent | |
| from google.adk.tools.openapi_tool.auth.auth_helpers import token_to_scheme_credential | |
| from google.adk.tools.openapi_tool.openapi_spec_parser.openapi_toolset import OpenAPIToolset | |
| with open("/path/to/swagger.json", "r") as f: | |
| swagger_data = f.read() | |
| auth_scheme, auth_credential = token_to_scheme_credential( | |
| "apikey", "header", "Authorization", "JWT_TOKEN" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| inicio do programa | |
| girar_esquerda | |
| 6x andar_para_frente | |
| girar_direita | |
| 2x andar_para_frente |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ClasseDaGem | |
| alias_method :antigo_metodo, :metodo | |
| def metodo | |
| begin | |
| antigo_metodo | |
| rescue | |
| p "Faça o que precisar aqui!" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ClasseDaGem | |
| def metodo | |
| raise "ERROR!!!!" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| parse_git_branch() { git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \ \1/' -e 's/[[:space:]]//g'; }; export PS1='\[\e[1;36m\][\[\e[0;32m\]\u\[\e[1;37m\]@\[\e[0;90m\]\h\[\e[1;37m\]:\[\e[1;36m\]\W \[\e[1;31m\]$(parse_git_branch)\[\e[1;36m\]]▶ \[\e[0m\]' |