Skip to main content

Giga SDK and CLI — agent building framework with command-line tools

Project description

Giga SDK

Agent building framework and CLI for the Giga platform.

Installation

pip install giga-sdk

Requirements

  • Python >= 3.12

CLI

After installation, the giga CLI is available:

giga --help
giga login
giga validate
giga whoami

SDK

Create an agent, give it a typed variable store, and register hooks and code blocks with decorators:

from pydantic import BaseModel
from giga import Agent, CodeBlockResult

class Variables(BaseModel):
    guest_name: str | None = None

agent = Agent(name="my-agent", store=Variables)

@agent.initialization
def init(initialization_values, store):
    return {"guest_name": "Unknown"}

@agent.code_block(description="Greet the user")
def greet(name: str, store) -> CodeBlockResult:
    return CodeBlockResult(
        message=f"Hello {name}!",
        store_updates={"guest_name": name},
    )

You can also define API actions and post-conversation hooks:

from giga import api
from giga.types import ResolutionResult, Analysis

get_user = api(
    name="get_user",
    description="Get user info",
    method="GET",
    url="https://api.example.com/users/{id}",
)

@agent.post_conversation
def post_conversation(resolution_result: ResolutionResult, analysis: Analysis):
    if resolution_result.resolution_status == "resolved":
        print(f"Resolved: {analysis.summary}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

giga_sdk-0.7.1.tar.gz (340.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

giga_sdk-0.7.1-py3-none-any.whl (268.0 kB view details)

Uploaded Python 3

File details

Details for the file giga_sdk-0.7.1.tar.gz.

File metadata

  • Download URL: giga_sdk-0.7.1.tar.gz
  • Upload date:
  • Size: 340.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for giga_sdk-0.7.1.tar.gz
Algorithm Hash digest
SHA256 7ea2cf2fc0c0ff17db4b13fd5f4724efb0071ce320a9e496ead567f2c29285cd
MD5 191dfbaf9b44517a740edcc228bc59e3
BLAKE2b-256 cb1776631846d4c9b855ba05a54e28b3c186a63891d8dd413ec88676af12544b

See more details on using hashes here.

Provenance

The following attestation bundles were made for giga_sdk-0.7.1.tar.gz:

Publisher: pypi-release.yml on Giga-customers/giga-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file giga_sdk-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: giga_sdk-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 268.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for giga_sdk-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 368e4f8f7fed6cf2ba10c0135f2b44ef955063c80e8380d87d2d0e6c03a9ebdd
MD5 5debf414d7ae1776ca4c4a4e16a90085
BLAKE2b-256 37ca9aa5d4ebd43edc736395482eae432edb38796d71fa620004d81a3449c98b

See more details on using hashes here.

Provenance

The following attestation bundles were made for giga_sdk-0.7.1-py3-none-any.whl:

Publisher: pypi-release.yml on Giga-customers/giga-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page