reader-workspace
No long description provided.
Installation
dagger install github.com/jasonmccallister/tech-summarizer-agent/reader-workspace@923d3da647467563b09f4db6a3aab980a79a1dfd
Entrypoint
Return Type
ReaderWorkspace !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
minLength | Integer ! | - | No description provided |
maxLength | Integer ! | - | No description provided |
forbiddenWords | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/jasonmccallister/tech-summarizer-agent/reader-workspace@923d3da647467563b09f4db6a3aab980a79a1dfd call \
--min-length integer --max-length integer --forbidden-words string1 --forbidden-words string2
func (m *MyModule) Example(minLength int, maxLength int, forbiddenWords []string) *dagger.ReaderWorkspace {
return dag.
ReaderWorkspace(minLength, maxLength, forbiddenWords)
}
@function
def example(min_length: int, max_length: int, forbidden_words: List[str]) -> dagger.ReaderWorkspace:
return (
dag.reader_workspace(min_length, max_length, forbidden_words)
)
@func()
example(minLength: number, maxLength: number, forbiddenWords: string[]): ReaderWorkspace {
return dag
.readerWorkspace(minLength, maxLength, forbiddenWords)
}
Types
ReaderWorkspace 🔗
getContent() 🔗
Get the content of the url and return it as plain text without any HTML.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
url | String ! | - | No description provided |
Example
dagger -m github.com/jasonmccallister/tech-summarizer-agent/reader-workspace@923d3da647467563b09f4db6a3aab980a79a1dfd call \
--min-length integer --max-length integer --forbidden-words string1 --forbidden-words string2 get-content --url string
func (m *MyModule) Example(ctx context.Context, minLength int, maxLength int, forbiddenWords []string, url string) string {
return dag.
ReaderWorkspace(minLength, maxLength, forbiddenWords).
GetContent(ctx, url)
}
@function
async def example(min_length: int, max_length: int, forbidden_words: List[str], url: str) -> str:
return await (
dag.reader_workspace(min_length, max_length, forbidden_words)
.get_content(url)
)
@func()
async example(minLength: number, maxLength: number, forbiddenWords: string[], url: string): Promise<string> {
return dag
.readerWorkspace(minLength, maxLength, forbiddenWords)
.getContent(url)
}
checkContent() 🔗
Check the content of the workspace against the forbidden words list and the length limit. Returns false if the content is invalid with a reason.
Return Type
Boolean !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
content | String ! | - | No description provided |
Example
dagger -m github.com/jasonmccallister/tech-summarizer-agent/reader-workspace@923d3da647467563b09f4db6a3aab980a79a1dfd call \
--min-length integer --max-length integer --forbidden-words string1 --forbidden-words string2 check-content --content string
func (m *MyModule) Example(ctx context.Context, minLength int, maxLength int, forbiddenWords []string, content string) bool {
return dag.
ReaderWorkspace(minLength, maxLength, forbiddenWords).
CheckContent(ctx, content)
}
@function
async def example(min_length: int, max_length: int, forbidden_words: List[str], content: str) -> bool:
return await (
dag.reader_workspace(min_length, max_length, forbidden_words)
.check_content(content)
)
@func()
async example(minLength: number, maxLength: number, forbiddenWords: string[], content: string): Promise<boolean> {
return dag
.readerWorkspace(minLength, maxLength, forbiddenWords)
.checkContent(content)
}