Giter Site home page Giter Site logo

zsh-bedrock's Introduction

Amazon Bedrock Plugin for zsh

Installation

Zinit

zinit load Nasubikun/zsh-bedrock

Antigen

antigen bundle Nasubikun/zsh-bedrock@main

Sheldon

[plugins.ni]
github = "Nasubikun/zsh-bedrock"

Manually

curl https://raw.githubusercontent.com/Nasubikun/zsh-bedrock/main/zsh-bedrock.zsh > zsh-bedrock.zsh
source zsh-bedrock.zsh

Prerequisite

Install AWS CLI 2.13.x+ can use aws bedrock-runtime

Usage

❯ brk What does 'bedrock' mean?
 Bedrock refers to the solid rock layer underneath surface materials like soil and sediment. Some key things to know about bedrock:

- It is the hardest, most solid layer of rock in the crust of the Earth. It is usually made up of igneous, metamorphic or sedimentary rock.

- Bedrock generally cannot be excavated by hand-held tools and requires explosives or heavy machinery to remove. This makes it an ideal foundation to build on.

- The depth at which bedrock is found varies greatly by location. In some areas it may be exposed at the surface, while in others it can be hundreds of feet deep.

- Major types of bedrock include granite, basalt, sandstone, shale and limestone. The type found in an area depends on the geological forces that formed it.

- Groundwater, oil and natural gas are often found trapped in bedrock layers beneath the surface. Fractures and pores in the bedrock act as reservoirs for these resources.

- Bedrock geology provides clues about the history and formation of the land in a region. Studying it helps geologists reconstruct past geological events.

So in summary, bedrock refers to the hard, solid rock layer under the loose surface materials that serves as the foundation for buildings, bridges and other structures. Knowing the depth and type of bedrock is important for construction, resource extraction and geology.

---

❯ brk -t 日本一高い山は富士山です。
 The highest mountain in Japan is Mount Fuji.

Commands and Options

  • brk Use this command to interact with Bedrock. Followed by the prompt like: brk Hello, nice to meet you.

  • brk -t Use this command if you want Bedrock to do the translation for you. You can use like: brk -t What's the highest mountain in the world?

  • brk -c You can update config with this command. Currently, the following properties are available:

Key Description Type Default
AWS_REGION AWS region string NA
MODEL_ID Model ID string anthropic.claude-v2
ENDPOINT_URL Endpoint URL string NA
LANGS Languages string[] ["English", "Japanese"]

You can use this command like: brk -c AWS_REGION us-west-2.

zsh-bedrock's People

Contributors

nasubikun avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.