Skip to main content

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

Note: the giga CLI is currently only supported inside a Giga repository with a valid giga.config.json.

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}")

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-1.5.0.tar.gz (386.9 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-1.5.0-py3-none-any.whl (303.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: giga_sdk-1.5.0.tar.gz
  • Upload date:
  • Size: 386.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for giga_sdk-1.5.0.tar.gz
Algorithm Hash digest
SHA256 d70e919cee3b3900c40021552464be50326a8478ff4a771088675a0bb6db32cb
MD5 8673f99c349cea0894b3a069c579be5c
BLAKE2b-256 9f9457d84f7f369b504871d23a198b1b37c106475c7c594d2120d9ce8dd09392

See more details on using hashes here.

Provenance

The following attestation bundles were made for giga_sdk-1.5.0.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-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: giga_sdk-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 303.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for giga_sdk-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1802c629dd61de6b6c0b814b3570c4baae0002f42de75788bce2ca6bcfe7e9f6
MD5 b3c596d92a1d59999092fe11947a4679
BLAKE2b-256 006347e496c44461b285e4fd5ba13565ba2dcb8835fafb2cab3fef2c1970ff03

See more details on using hashes here.

Provenance

The following attestation bundles were made for giga_sdk-1.5.0-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.

Release history Release notifications | RSS feed

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

This release

1.5.0 This release

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

0.7.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page