Dagger
Search

ollama

No long description provided.

Installation

dagger install github.com/shykes/daggerverse/ollama@792b8449b95393100866720e26a27e34d818738a

Entrypoint

Return Type
Ollama
Example
dagger -m github.com/shykes/daggerverse/ollama@792b8449b95393100866720e26a27e34d818738a call \
func (m *myModule) example() *Ollama  {
	return dag.
			Ollama()
}
@function
def example() -> dag.Ollama:
	return (
		dag.ollama()
	)
@func()
example(): Ollama {
	return dag
		.ollama()
}

Types

Ollama 🔗

llama2() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
promptString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/ollama@792b8449b95393100866720e26a27e34d818738a call \
 llama-2 --prompt string
func (m *myModule) example(ctx context.Context, prompt string) string  {
	return dag.
			Ollama().
			Llama2(ctx, prompt)
}
@function
async def example(prompt: str) -> str:
	return await (
		dag.ollama()
		.llama2(prompt)
	)
@func()
async example(prompt: string): Promise<string> {
	return dag
		.ollama()
		.llama2(prompt)
}

client() 🔗

Return Type
Container !
Example
dagger -m github.com/shykes/daggerverse/ollama@792b8449b95393100866720e26a27e34d818738a call \
 client
func (m *myModule) example() *Container  {
	return dag.
			Ollama().
			Client()
}
@function
def example() -> dagger.Container:
	return (
		dag.ollama()
		.client()
	)
@func()
example(): Container {
	return dag
		.ollama()
		.client()
}

base() 🔗

Return Type
Container !
Example
dagger -m github.com/shykes/daggerverse/ollama@792b8449b95393100866720e26a27e34d818738a call \
 base
func (m *myModule) example() *Container  {
	return dag.
			Ollama().
			Base()
}
@function
def example() -> dagger.Container:
	return (
		dag.ollama()
		.base()
	)
@func()
example(): Container {
	return dag
		.ollama()
		.base()
}

server() 🔗

Return Type
Service !
Example
dagger -m github.com/shykes/daggerverse/ollama@792b8449b95393100866720e26a27e34d818738a call \
 server
func (m *myModule) example() *Service  {
	return dag.
			Ollama().
			Server()
}
@function
def example() -> dagger.Service:
	return (
		dag.ollama()
		.server()
	)
@func()
example(): Service {
	return dag
		.ollama()
		.server()
}