pica
Pica provides powerful APIs and tools to build, deploy, and scale AI agents with seamless access to over 100+ integrationsInstallation
dagger install github.com/picahq/daggerverse/pica@v0.1.1
Entrypoint
Return Type
Pica !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
picaApiKey | Secret ! | - | No description provided |
openaiApiKey | Secret ! | - | No description provided |
Example
dagger -m github.com/picahq/daggerverse/pica@a3a1330f231760b62aa8387b6a6da3663255e5e3 call \
--pica-api-key env:MYSECRET --openai-api-key env:MYSECRET
func (m *myModule) example(picaApiKey *Secret, openaiApiKey *Secret) *Pica {
return dag.
Pica(picaApiKey, openaiApiKey)
}
@function
def example(pica_api_key: dagger.Secret, openai_api_key: dagger.Secret) -> dag.Pica:
return (
dag.pica(pica_api_key, openai_api_key)
)
@func()
example(picaApiKey: Secret, openaiApiKey: Secret): Pica {
return dag
.pica(picaApiKey, openaiApiKey)
}
Types
Pica 🔗
picaApiKey() 🔗
Return Type
Secret !
Example
dagger -m github.com/picahq/daggerverse/pica@a3a1330f231760b62aa8387b6a6da3663255e5e3 call \
--pica-api-key env:MYSECRET --openai-api-key env:MYSECRET pica-api-key
func (m *myModule) example(picaApiKey *Secret, openaiApiKey *Secret) *Secret {
return dag.
Pica(picaApiKey, openaiApiKey).
PicaApiKey()
}
@function
def example(pica_api_key: dagger.Secret, openai_api_key: dagger.Secret) -> dagger.Secret:
return (
dag.pica(pica_api_key, openai_api_key)
.pica_api_key()
)
@func()
example(picaApiKey: Secret, openaiApiKey: Secret): Secret {
return dag
.pica(picaApiKey, openaiApiKey)
.picaApiKey()
}
openaiApiKey() 🔗
Return Type
Secret !
Example
dagger -m github.com/picahq/daggerverse/pica@a3a1330f231760b62aa8387b6a6da3663255e5e3 call \
--pica-api-key env:MYSECRET --openai-api-key env:MYSECRET openai-api-key
func (m *myModule) example(picaApiKey *Secret, openaiApiKey *Secret) *Secret {
return dag.
Pica(picaApiKey, openaiApiKey).
OpenaiApiKey()
}
@function
def example(pica_api_key: dagger.Secret, openai_api_key: dagger.Secret) -> dagger.Secret:
return (
dag.pica(pica_api_key, openai_api_key)
.openai_api_key()
)
@func()
example(picaApiKey: Secret, openaiApiKey: Secret): Secret {
return dag
.pica(picaApiKey, openaiApiKey)
.openaiApiKey()
}
oneTool() 🔗
Returns the response from ChatGPT using the supplied prompt and any connected integrations
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
prompt | String ! | - | The prompt to send to the ChatGPT |
Example
dagger -m github.com/picahq/daggerverse/pica@a3a1330f231760b62aa8387b6a6da3663255e5e3 call \
--pica-api-key env:MYSECRET --openai-api-key env:MYSECRET one-tool --prompt string
func (m *myModule) example(ctx context.Context, picaApiKey *Secret, openaiApiKey *Secret, prompt string) string {
return dag.
Pica(picaApiKey, openaiApiKey).
OneTool(ctx, prompt)
}
@function
async def example(pica_api_key: dagger.Secret, openai_api_key: dagger.Secret, prompt: str) -> str:
return await (
dag.pica(pica_api_key, openai_api_key)
.one_tool(prompt)
)
@func()
async example(picaApiKey: Secret, openaiApiKey: Secret, prompt: string): Promise<string> {
return dag
.pica(picaApiKey, openaiApiKey)
.oneTool(prompt)
}