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
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}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file giga_sdk-1.0.0.tar.gz.
File metadata
- Download URL: giga_sdk-1.0.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79cb880ad86ca84568e1e6ae22230a26eb8dc88671764c270718edbcca18a181
|
|
| MD5 |
fe2d78cf1c2f966280c9de791f13937f
|
|
| BLAKE2b-256 |
3f837e03134015f15dde4fbaadf2f25f347a90b91fdf0c4e2cf4abf693825e1f
|
Provenance
The following attestation bundles were made for giga_sdk-1.0.0.tar.gz:
Publisher:
pypi-release.yml on Giga-customers/giga-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
giga_sdk-1.0.0.tar.gz -
Subject digest:
79cb880ad86ca84568e1e6ae22230a26eb8dc88671764c270718edbcca18a181 - Sigstore transparency entry: 2117124842
- Sigstore integration time:
-
Permalink:
Giga-customers/giga-sdk@83af1c03c54b6c8389823c0f4fe6e9a8c8ef13ad -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Giga-customers
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@83af1c03c54b6c8389823c0f4fe6e9a8c8ef13ad -
Trigger Event:
push
-
Statement type:
File details
Details for the file giga_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: giga_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 268.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f0a1625cbadfe19f2726cdf80ec9028f838d5bf5d5b80c9a9761e2429c9321e
|
|
| MD5 |
4988268386e2e371702ee0e916604938
|
|
| BLAKE2b-256 |
af92853e329c905efb1220e54640bd3ad184dbe5ae2cc241ddcbc613f640eba2
|
Provenance
The following attestation bundles were made for giga_sdk-1.0.0-py3-none-any.whl:
Publisher:
pypi-release.yml on Giga-customers/giga-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
giga_sdk-1.0.0-py3-none-any.whl -
Subject digest:
0f0a1625cbadfe19f2726cdf80ec9028f838d5bf5d5b80c9a9761e2429c9321e - Sigstore transparency entry: 2117124873
- Sigstore integration time:
-
Permalink:
Giga-customers/giga-sdk@83af1c03c54b6c8389823c0f4fe6e9a8c8ef13ad -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Giga-customers
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@83af1c03c54b6c8389823c0f4fe6e9a8c8ef13ad -
Trigger Event:
push
-
Statement type: